Bug 1400115 - Part 1: Create a base pane. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Thu, 26 Oct 2017 16:54:49 +0900
changeset 686832 2fe14696634d9c131440f76c509399e1ef107b0e
parent 686540 64bab5cbb9b63808d04babfbcfba3175fd99f69d
child 686833 17af98c2ad907d28e10278b25e723ea111ca5b39
push id86312
push userbmo:dakatsuka@mozilla.com
push dateThu, 26 Oct 2017 14:07:59 +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,21 @@
+/* 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");
+
+class AnimationInspector {
+  constructor() {
+    this.init();
+  }
+
+  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,19 @@
+/* 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 { DOM: dom, PureComponent } = require("devtools/client/shared/vendor/react");
+
+class App extends PureComponent {
+  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',