OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html i18n-values="dir:textdirection;"> | 2 <html i18n-values="dir:textdirection;"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title>ServiceWorker</title> | 5 <title>ServiceWorker</title> |
6 <link rel="stylesheet" href="chrome://resources/css/tabs.css"> | 6 <link rel="stylesheet" href="chrome://resources/css/tabs.css"> |
7 <link rel="stylesheet" href="chrome://resources/css/widgets.css"> | 7 <link rel="stylesheet" href="chrome://resources/css/widgets.css"> |
8 <link rel="stylesheet" href="serviceworker_internals.css"> | 8 <link rel="stylesheet" href="serviceworker_internals.css"> |
9 </head> | 9 </head> |
10 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> | 10 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
11 <!-- templates --> | 11 <!-- templates --> |
12 <div style="display:none"> | 12 <div style="display:none"> |
13 <div id="serviceworker-version-template" class="serviceworker-version"> | 13 <div id="serviceworker-version-template" class="serviceworker-version"> |
14 <div class="serviceworker-status"> | 14 <div class="serviceworker-status"> |
15 <span>Installation Status:</span> | 15 <span>Installation Status:</span> |
16 <span jscontent="$this.status"></span> | 16 <span jscontent="$this.status"></span> |
17 </div> | 17 </div> |
18 <div class="serviceworker-running-status"> | 18 <div class="serviceworker-running-status"> |
19 <span>Running Status:</span> | 19 <span>Running Status:</span> |
20 <span jscontent="$this.running_status"></span> | 20 <span jscontent="$this.running_status"></span> |
21 </div> | 21 </div> |
22 <div class="serviceworker-vid"> | 22 <div class="serviceworker-vid"> |
23 <span>Version ID:</span> | 23 <span>Version ID:</span> |
24 <span jscontent="$this.version_id"></span> | 24 <span jscontent="$this.version_id"></span> |
25 </div> | 25 </div> |
26 <div class="serviceworker-pid"> | 26 <div class="serviceworker-pid"> |
27 <span>Renderer process ID:</span> | 27 <span>Renderer process ID:</span> |
28 <span jscontent="$this.process_id"></span> | 28 <span jscontent="$this.process_id"></span> |
29 </div> | 29 </div> |
30 <div class="serviceworker-tid"> | 30 <div class="serviceworker-tid"> |
31 <span>Renderer thread ID:</span> | 31 <span>Renderer thread ID:</span> |
32 <span jscontent="$this.thread_id"></span> | 32 <span jscontent="$this.thread_id"></span> |
33 </div> | 33 </div> |
34 <div class="serviceworker-rid"> | 34 <div class="serviceworker-rid"> |
35 <span>DevTools agent route ID:</span> | 35 <span>DevTools agent route ID:</span> |
36 <span jscontent="$this.devtools_agent_route_id"></span> | 36 <span jscontent="$this.devtools_agent_route_id"></span> |
37 </div> | 37 </div> |
38 <div> | 38 <div> |
39 <div>Log:</div> | 39 <div>Log:</div> |
40 <textarea class="serviceworker-log" | 40 <textarea class="serviceworker-log" |
41 jsvalues=".partition_id:$partition_id;.version_id:$this.versio n_id" | 41 jsvalues=".partition_id:$partition_id;.version_id:$this.version_id" |
42 rows="3" cols="120" readonly jscontent="$this.log"></textarea> | 42 rows="3" cols="120" readonly jscontent="$this.log"></textarea> |
43 </div> | 43 </div> |
44 <div class="worker-controls"> | 44 <div class="worker-controls"> |
45 <button href="#" class="stop" jsdisplay="$this.running_status == 'RUNNING'" | 45 <button href="#" class="stop" |
46 jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:ver sion_id}">Stop</button> | 46 jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id }" |
47 <button href="#" class="sync" jsdisplay="$this.running_status == 'RUNNING'" | 47 jsdisplay="$this.running_status == 'RUNNING'">Stop</button> |
48 jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:ver sion_id}">Sync</button> | 48 <button href="#" class="sync" |
49 <button href="#" class="inspect" jsdisplay="$this.running_status == 'RUNNING'" | 49 jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id }" |
50 jsvalues=".cmdArgs:{process_id:process_id,devtools_agent_rout e_id:devtools_agent_route_id}">Inspect</button> | 50 jsdisplay="$this.running_status == 'RUNNING'">Sync</button> |
51 <span class="operation-status" style="display: none">Running...< /span> | 51 <button href="#" class="inspect" |
52 </div> | 52 jsvalues=".cmdArgs:{process_id:process_id,devtools_agent_route_id:de vtools_agent_route_id}" |
53 </div> | 53 jsdisplay="$this.running_status == 'RUNNING'">Inspect</button> |
54 <div id="serviceworker-registration-template" class="serviceworker-regis tration"> | 54 <span class="operation-status" style="display: none">Running...</span> |
55 <div class="serviceworker-scope"> | 55 </div> |
56 <span>Scope:</span> | |
57 <span jscontent="scope"></span> | |
58 </div> | |
59 <div class="serviceworker-script_url"> | |
60 <span>Script:</span> | |
61 <span jscontent="script_url"></span> | |
62 </div> | |
63 <div class="serviceworker-rid"> | |
64 <span>Registration ID:</span> | |
65 <span jscontent="registration_id"></span> | |
66 <span jsdisplay="$this.unregistered">(unregistered)</span> | |
67 </div> | |
68 <div jsselect="$this.active"> | |
69 Active worker: | |
70 <div transclude="serviceworker-version-template"></div> | |
71 </div> | |
72 <div jsselect="$this.pending"> | |
73 Pending worker: | |
74 <div transclude="serviceworker-version-template"></div> | |
75 </div> | |
76 <div class="registration-controls" jsdisplay="!$this.unregistered"> | |
77 <button href="#" class="unregister" | |
78 jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}"> Unregister</button> | |
79 <button href="#" class="start" jsdisplay="$this.active.running_s tatus != 'RUNNING'" | |
80 jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}"> Start</button> | |
81 <span class="operation-status" style="display: none">Running...< /span> | |
82 </div> | |
83 </div> | |
84 <div id="serviceworker-list-template" | |
85 jsvalues="$partition_id:$this.partition_id;$partition_path:$this.pa rtition_path;.partition_path:$this.partition_path"> | |
86 <div class="serviceworker-summary"> | |
87 <span>Registrations in: </span> | |
88 <span jscontent="$this.partition_path"></span> | |
89 <span jscontent="'(' + $this.stored_registrations.length + ')'"> </span> | |
90 </div> | |
91 <div class="serviceworker-item" jsselect="$this.stored_registrations "> | |
92 <div transclude="serviceworker-registration-template"></div> | |
93 </div> | |
94 <div class="serviceworker-item" jsselect="$this.unregistered_registr ations"> | |
95 <div transclude="serviceworker-registration-template"></div> | |
96 </div> | |
97 <div class="serviceworker-item" jsselect="$this.unregistered_version s"> | |
98 Unregistered worker: | |
99 <div transclude="serviceworker-version-template"></div> | |
100 </div> | |
101 </div> | |
102 <div id="serviceworker-options-template"> | |
103 <div> | |
104 <span> | |
105 <input type="checkbox" class="debug_on_start" jsvalues=".che cked:$this.debug_on_start"> | |
106 </span> | |
107 <span>Opens the DevTools window for ServiceWorker on start for d ebugging.</span> | |
108 </div> | |
109 </div> | |
110 </div> | 56 </div> |
111 <h1>ServiceWorker</h1> | 57 <div id="serviceworker-registration-template" |
112 <div class="content"> | 58 class="serviceworker-registration"> |
113 <div id="serviceworker-options"></div> | 59 <div class="serviceworker-scope"> |
114 <div id="serviceworker-list"></div> | 60 <span>Scope:</span> |
61 <span jscontent="scope"></span> | |
62 </div> | |
63 <div class="serviceworker-script_url"> | |
64 <span>Script:</span> | |
65 <span jscontent="script_url"></span> | |
66 </div> | |
67 <div class="serviceworker-rid"> | |
68 <span>Registration ID:</span> | |
69 <span jscontent="registration_id"></span> | |
70 <span jsdisplay="$this.unregistered">(unregistered)</span> | |
71 </div> | |
72 <div jsselect="$this.active"> | |
73 Active worker: | |
74 <div transclude="serviceworker-version-template"></div> | |
75 </div> | |
76 <div jsselect="$this.pending"> | |
77 Pending worker: | |
78 <div transclude="serviceworker-version-template"></div> | |
79 </div> | |
80 <div class="registration-controls" jsdisplay="!$this.unregistered"> | |
81 <button href="#" class="unregister" | |
82 jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}"> | |
83 Unregister | |
84 </button> | |
85 <button href="#" class="start" | |
86 jsdisplay="$this.active.running_status != 'RUNNING'" | |
87 jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}"> | |
88 Start | |
89 </button> | |
90 <span class="operation-status" style="display: none">Running...</span> | |
91 </div> | |
115 </div> | 92 </div> |
116 <script src="chrome://resources/js/util.js"></script> | 93 <div id="serviceworker-list-template" |
117 <script src="chrome://resources/js/cr.js"></script> | 94 jsvalues="$partition_id:$this.partition_id;.partition_id:$this.partition _id" |
118 <script src="serviceworker_internals.js"></script> | 95 jsdisplay="$this.stored_registrations.length+$this.unregistered_registra tions.length+$this.unregistered_versions.length>0"> |
falken
2014/06/02 04:19:05
Other uses of jsdisplay in the codebase format the
horo
2014/06/02 04:25:32
Done.
| |
119 <script src="chrome://resources/js/load_time_data.js"></script> | 96 <div class="serviceworker-summary"> |
120 <script src="chrome://resources/js/jstemplate_compiled.js"></script> | 97 <span>Registrations in: </span> |
121 <script src="strings.js"></script> | 98 <span jscontent="$this.partition_path"></span> |
122 <script src="chrome://resources/js/i18n_template2.js"></script> | 99 <span jscontent="'(' + $this.stored_registrations.length + ')'"></span> |
100 </div> | |
101 <div class="serviceworker-item" jsselect="$this.stored_registrations"> | |
102 <div transclude="serviceworker-registration-template"></div> | |
103 </div> | |
104 <div class="serviceworker-item" | |
105 jsselect="$this.unregistered_registrations"> | |
106 <div transclude="serviceworker-registration-template"></div> | |
107 </div> | |
108 <div class="serviceworker-item" jsselect="$this.unregistered_versions"> | |
109 Unregistered worker: | |
110 <div transclude="serviceworker-version-template"></div> | |
111 </div> | |
112 </div> | |
113 <div id="serviceworker-options-template"> | |
114 <div> | |
115 <span> | |
116 <input type="checkbox" class="debug_on_start" | |
117 jsvalues=".checked:$this.debug_on_start"> | |
118 </span> | |
119 <span> | |
120 Opens the DevTools window for ServiceWorker on start for debugging. | |
121 </span> | |
122 </div> | |
123 </div> | |
124 </div> | |
125 <h1>ServiceWorker</h1> | |
126 <div class="content"> | |
127 <div id="serviceworker-options"></div> | |
128 <div id="serviceworker-list"></div> | |
129 </div> | |
130 <script src="chrome://resources/js/util.js"></script> | |
131 <script src="chrome://resources/js/cr.js"></script> | |
132 <script src="serviceworker_internals.js"></script> | |
133 <script src="chrome://resources/js/load_time_data.js"></script> | |
134 <script src="chrome://resources/js/jstemplate_compiled.js"></script> | |
135 <script src="strings.js"></script> | |
136 <script src="chrome://resources/js/i18n_template2.js"></script> | |
123 </body> | 137 </body> |
124 </html> | 138 </html> |
OLD | NEW |