Skip to content

Commit

Permalink
Bug 1400115 - Part 1: Create a base pane. r=gl
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: Af3lI8gO3sl

--HG--
extra : rebase_source : fd2280d9d706e4fdb061f5b6057a053f350e4f61
  • Loading branch information
dadaa committed Oct 26, 2017
1 parent f3c859e commit c4d3e38
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
21 changes: 21 additions & 0 deletions devtools/client/inspector/animation/animation.js
Original file line number Diff line number Diff line change
@@ -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;
19 changes: 19 additions & 0 deletions devtools/client/inspector/animation/components/App.js
Original file line number Diff line number Diff line change
@@ -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;
7 changes: 7 additions & 0 deletions devtools/client/inspector/animation/components/moz.build
Original file line number Diff line number Diff line change
@@ -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'
)
11 changes: 11 additions & 0 deletions devtools/client/inspector/animation/moz.build
Original file line number Diff line number Diff line change
@@ -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'
)
1 change: 1 addition & 0 deletions devtools/client/inspector/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIRS += [
'animation',
'boxmodel',
'changes',
'components',
Expand Down

0 comments on commit c4d3e38

Please sign in to comment.