File tree Expand file tree Collapse file tree 5 files changed +93
-0
lines changed Expand file tree Collapse file tree 5 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ # <native-developer-tools >
2
+
3
+ Adds interface options for interacting with the V8 developer tools within nativeweb applications.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " native-developer-tools" ,
3
+ "version" : " 0.1.0" ,
4
+ "description" : " Adds interface options for interacting with the V8 developer tools." ,
5
+ "private" : true ,
6
+ "authors" : [
7
+ " Donald Atkinson"
8
+ ],
9
+ "keywords" : [
10
+ " web-components" ,
11
+ " polymer" ,
12
+ " hotkey"
13
+ ],
14
+ "main" : " index.html" ,
15
+ "repository" : {
16
+ "type" : " git" ,
17
+ "url" : " git://github.com/FuzzicalLogic/native-developer-tools.git"
18
+ },
19
+ "license" : " http://polymer.github.io/LICENSE.txt" ,
20
+ "homepage" : " https://github.com/FuzzicalLogic/native-developer-tools" ,
21
+ "ignore" : [],
22
+ "dependencies" : {
23
+ "polymer" : " Polymer/polymer#^1.0.0" ,
24
+ "liquid-hotkey-event" : " FuzzicalLogic/liquid-hotkey-event"
25
+ },
26
+ "devDependencies" : {
27
+ "iron-component-page" : " polymerelements/iron-component-page#^1.0.0" ,
28
+ "iron-image" : " polymerelements/iron-image#^1.0.0" ,
29
+ "paper-styles" : " polymerelements/paper-styles#^1.0.0" ,
30
+ "test-fixture" : " polymerelements/test-fixture#^1.0.0" ,
31
+ "web-component-tester" : " polymer/web-component-tester#^3.4.0" ,
32
+ "webcomponentsjs" : " webcomponents/webcomponentsjs#^0.7.0"
33
+ }
34
+ }
Original file line number Diff line number Diff line change
1
+ <!-- Component Dependencies -->
2
+ < link rel ="import " href ="../polymer/polymer.html ">
3
+ < link rel ="import " href ="../liquid-hotkey-event/index.html ">
4
+
5
+ <!-- Component Definition and Template -->
6
+ < dom-module id ="native-developer-tools ">
7
+ < link rel ="import " type ="css " href ="style.css ">
8
+ < template >
9
+ < button on-click ="_onDevTools "> < content > </ content > </ button >
10
+ < liquid-hotkey-event emits ="devtools " keys ="f12 " keyevent ="up " on ="document "> </ liquid-hotkey-event >
11
+ </ template >
12
+ </ dom-module >
13
+ < script src ="register.js "> </ script >
Original file line number Diff line number Diff line change
1
+ ( function registerElement ( ) {
2
+ Polymer ( {
3
+ is : 'native-developer-tools' ,
4
+
5
+ created : onElementCreated ,
6
+ attached : onElementAttached ,
7
+ ready : onElementReady ,
8
+ detached : onElementDetached ,
9
+
10
+ listeners : {
11
+ 'devtools' : '_onDevTools'
12
+ } ,
13
+
14
+ _onDevTools : onToggleDeveloperTools
15
+ } ) ;
16
+
17
+ function onElementCreated ( ) {
18
+
19
+ }
20
+
21
+ function onElementAttached ( ) {
22
+
23
+ }
24
+
25
+ function onElementReady ( ) {
26
+
27
+ }
28
+
29
+ function onToggleDeveloperTools ( ) {
30
+ var win = require ( 'electron' ) . remote . getCurrentWindow ( ) ;
31
+ if ( win . isDevToolsOpened ( ) )
32
+ win . closeDevTools ( ) ;
33
+ else win . openDevTools ( { detach :true } ) ;
34
+ }
35
+
36
+ function onElementDetached ( ) {
37
+
38
+ }
39
+
40
+ } ) ( ) ;
Original file line number Diff line number Diff line change
1
+ : host {
2
+
3
+ }
You can’t perform that action at this time.
0 commit comments