Bug 1400115 - Part 1: Create a base pane. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Tue, 17 Oct 2017 10:27:51 +0900
changeset 681128 ca48da636b1b5345eceebb61d227a7abf3d89d7a
parent 681127 bcb976e5ff3f2929adb886c4a941333ffbc07d1a
child 681129 bde8f17a2f48d3e8245693410ded84b68fa1001e
push id84767
push userbmo:dakatsuka@mozilla.com
push dateTue, 17 Oct 2017 01:29:29 +0000
reviewersgl
bugs1400115
milestone58.0a1
Bug 1400115 - Part 1: Create a base pane. r?gl MozReview-Commit-ID: Af3lI8gO3sl
devtools/client/inspector/animation/animation.js
devtools/client/inspector/animation/components/App.js
devtools/client/inspector/animation/components/moz.build
devtools/client/inspector/animation/moz.build
devtools/client/inspector/moz.build
new file mode 100644
--- /dev/null
+++ b/devtools/client/inspector/animation/animation.js
@@ -0,0 +1,22 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+"use strict";
+
+const { createElement } = require("devtools/client/shared/vendor/react");
+
+const App = require("./components/App");
+
+function AnimationInspector() {
+  this.init();
+}
+
+AnimationInspector.prototype = {
+
+  init() {
+    this.provider = createElement(App);
+  }
+};
+
+module.exports = AnimationInspector;
new file mode 100644
--- /dev/null
+++ b/devtools/client/inspector/animation/components/App.js
@@ -0,0 +1,17 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+"use strict";
+
+const { createClass, DOM: dom } = require("devtools/client/shared/vendor/react");
+
+const App = createClass({
+  displayName: "AnimationInspector",
+
+  render() {
+    return dom.div({ id: "animation-container" });
+  }
+});
+
+module.exports = App;
new file mode 100644
--- /dev/null
+++ b/devtools/client/inspector/animation/components/moz.build
@@ -0,0 +1,7 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DevToolsModules(
+    'App.js'
+)
new file mode 100644
--- /dev/null
+++ b/devtools/client/inspector/animation/moz.build
@@ -0,0 +1,11 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+DIRS += [
+    'components'
+]
+
+DevToolsModules(
+    'animation.js'
+)
--- a/devtools/client/inspector/moz.build
+++ b/devtools/client/inspector/moz.build
@@ -1,13 +1,14 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 DIRS += [
+    'animation',
     'boxmodel',
     'components',
     'computed',
     'extensions',
     'fonts',
     'grids',
     'layout',
     'markup',