Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(765)

Unified Diff: content/browser/resources/service_worker/serviceworker_internals.html

Issue 305353002: Clean-up serviceworker-internals page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/resources/service_worker/serviceworker_internals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resources/service_worker/serviceworker_internals.html
diff --git a/content/browser/resources/service_worker/serviceworker_internals.html b/content/browser/resources/service_worker/serviceworker_internals.html
index b36406d25f7e5442c2cc84f0ceaeb4beff4dbe84..7707c7f50b5d54a85464f67ad825faa89ecb6840 100644
--- a/content/browser/resources/service_worker/serviceworker_internals.html
+++ b/content/browser/resources/service_worker/serviceworker_internals.html
@@ -8,117 +8,131 @@
<link rel="stylesheet" href="serviceworker_internals.css">
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
- <!-- templates -->
- <div style="display:none">
- <div id="serviceworker-version-template" class="serviceworker-version">
- <div class="serviceworker-status">
- <span>Installation Status:</span>
- <span jscontent="$this.status"></span>
- </div>
- <div class="serviceworker-running-status">
- <span>Running Status:</span>
- <span jscontent="$this.running_status"></span>
- </div>
- <div class="serviceworker-vid">
- <span>Version ID:</span>
- <span jscontent="$this.version_id"></span>
- </div>
- <div class="serviceworker-pid">
- <span>Renderer process ID:</span>
- <span jscontent="$this.process_id"></span>
- </div>
- <div class="serviceworker-tid">
- <span>Renderer thread ID:</span>
- <span jscontent="$this.thread_id"></span>
- </div>
- <div class="serviceworker-rid">
- <span>DevTools agent route ID:</span>
- <span jscontent="$this.devtools_agent_route_id"></span>
- </div>
- <div>
- <div>Log:</div>
- <textarea class="serviceworker-log"
- jsvalues=".partition_id:$partition_id;.version_id:$this.version_id"
- rows="3" cols="120" readonly jscontent="$this.log"></textarea>
- </div>
- <div class="worker-controls">
- <button href="#" class="stop" jsdisplay="$this.running_status == 'RUNNING'"
- jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}">Stop</button>
- <button href="#" class="sync" jsdisplay="$this.running_status == 'RUNNING'"
- jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}">Sync</button>
- <button href="#" class="inspect" jsdisplay="$this.running_status == 'RUNNING'"
- jsvalues=".cmdArgs:{process_id:process_id,devtools_agent_route_id:devtools_agent_route_id}">Inspect</button>
- <span class="operation-status" style="display: none">Running...</span>
- </div>
- </div>
- <div id="serviceworker-registration-template" class="serviceworker-registration">
- <div class="serviceworker-scope">
- <span>Scope:</span>
- <span jscontent="scope"></span>
- </div>
- <div class="serviceworker-script_url">
- <span>Script:</span>
- <span jscontent="script_url"></span>
- </div>
- <div class="serviceworker-rid">
- <span>Registration ID:</span>
- <span jscontent="registration_id"></span>
- <span jsdisplay="$this.unregistered">(unregistered)</span>
- </div>
- <div jsselect="$this.active">
- Active worker:
- <div transclude="serviceworker-version-template"></div>
- </div>
- <div jsselect="$this.pending">
- Pending worker:
- <div transclude="serviceworker-version-template"></div>
- </div>
- <div class="registration-controls" jsdisplay="!$this.unregistered">
- <button href="#" class="unregister"
- jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">Unregister</button>
- <button href="#" class="start" jsdisplay="$this.active.running_status != 'RUNNING'"
- jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">Start</button>
- <span class="operation-status" style="display: none">Running...</span>
- </div>
- </div>
- <div id="serviceworker-list-template"
- jsvalues="$partition_id:$this.partition_id;$partition_path:$this.partition_path;.partition_path:$this.partition_path">
- <div class="serviceworker-summary">
- <span>Registrations in: </span>
- <span jscontent="$this.partition_path"></span>
- <span jscontent="'(' + $this.stored_registrations.length + ')'"></span>
- </div>
- <div class="serviceworker-item" jsselect="$this.stored_registrations">
- <div transclude="serviceworker-registration-template"></div>
- </div>
- <div class="serviceworker-item" jsselect="$this.unregistered_registrations">
- <div transclude="serviceworker-registration-template"></div>
- </div>
- <div class="serviceworker-item" jsselect="$this.unregistered_versions">
- Unregistered worker:
- <div transclude="serviceworker-version-template"></div>
- </div>
- </div>
- <div id="serviceworker-options-template">
- <div>
- <span>
- <input type="checkbox" class="debug_on_start" jsvalues=".checked:$this.debug_on_start">
- </span>
- <span>Opens the DevTools window for ServiceWorker on start for debugging.</span>
- </div>
- </div>
+ <!-- templates -->
+ <div style="display:none">
+ <div id="serviceworker-version-template" class="serviceworker-version">
+ <div class="serviceworker-status">
+ <span>Installation Status:</span>
+ <span jscontent="$this.status"></span>
+ </div>
+ <div class="serviceworker-running-status">
+ <span>Running Status:</span>
+ <span jscontent="$this.running_status"></span>
+ </div>
+ <div class="serviceworker-vid">
+ <span>Version ID:</span>
+ <span jscontent="$this.version_id"></span>
+ </div>
+ <div class="serviceworker-pid">
+ <span>Renderer process ID:</span>
+ <span jscontent="$this.process_id"></span>
+ </div>
+ <div class="serviceworker-tid">
+ <span>Renderer thread ID:</span>
+ <span jscontent="$this.thread_id"></span>
+ </div>
+ <div class="serviceworker-rid">
+ <span>DevTools agent route ID:</span>
+ <span jscontent="$this.devtools_agent_route_id"></span>
+ </div>
+ <div>
+ <div>Log:</div>
+ <textarea class="serviceworker-log"
+ jsvalues=".partition_id:$partition_id;.version_id:$this.version_id"
+ rows="3" cols="120" readonly jscontent="$this.log"></textarea>
+ </div>
+ <div class="worker-controls">
+ <button href="#" class="stop"
+ jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}"
+ jsdisplay="$this.running_status == 'RUNNING'">Stop</button>
+ <button href="#" class="sync"
+ jsvalues=".cmdArgs:{partition_id:$partition_id,version_id:version_id}"
+ jsdisplay="$this.running_status == 'RUNNING'">Sync</button>
+ <button href="#" class="inspect"
+ jsvalues=".cmdArgs:{process_id:process_id,devtools_agent_route_id:devtools_agent_route_id}"
+ jsdisplay="$this.running_status == 'RUNNING'">Inspect</button>
+ <span class="operation-status" style="display: none">Running...</span>
+ </div>
</div>
- <h1>ServiceWorker</h1>
- <div class="content">
- <div id="serviceworker-options"></div>
- <div id="serviceworker-list"></div>
+ <div id="serviceworker-registration-template"
+ class="serviceworker-registration">
+ <div class="serviceworker-scope">
+ <span>Scope:</span>
+ <span jscontent="scope"></span>
+ </div>
+ <div class="serviceworker-script_url">
+ <span>Script:</span>
+ <span jscontent="script_url"></span>
+ </div>
+ <div class="serviceworker-rid">
+ <span>Registration ID:</span>
+ <span jscontent="registration_id"></span>
+ <span jsdisplay="$this.unregistered">(unregistered)</span>
+ </div>
+ <div jsselect="$this.active">
+ Active worker:
+ <div transclude="serviceworker-version-template"></div>
+ </div>
+ <div jsselect="$this.pending">
+ Pending worker:
+ <div transclude="serviceworker-version-template"></div>
+ </div>
+ <div class="registration-controls" jsdisplay="!$this.unregistered">
+ <button href="#" class="unregister"
+ jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">
+ Unregister
+ </button>
+ <button href="#" class="start"
+ jsdisplay="$this.active.running_status != 'RUNNING'"
+ jsvalues=".cmdArgs:{partition_id:$partition_id,scope:scope}">
+ Start
+ </button>
+ <span class="operation-status" style="display: none">Running...</span>
+ </div>
</div>
- <script src="chrome://resources/js/util.js"></script>
- <script src="chrome://resources/js/cr.js"></script>
- <script src="serviceworker_internals.js"></script>
- <script src="chrome://resources/js/load_time_data.js"></script>
- <script src="chrome://resources/js/jstemplate_compiled.js"></script>
- <script src="strings.js"></script>
- <script src="chrome://resources/js/i18n_template2.js"></script>
+ <div id="serviceworker-list-template"
+ jsvalues="$partition_id:$this.partition_id;.partition_id:$this.partition_id"
+ jsdisplay="$this.stored_registrations.length+$this.unregistered_registrations.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.
+ <div class="serviceworker-summary">
+ <span>Registrations in: </span>
+ <span jscontent="$this.partition_path"></span>
+ <span jscontent="'(' + $this.stored_registrations.length + ')'"></span>
+ </div>
+ <div class="serviceworker-item" jsselect="$this.stored_registrations">
+ <div transclude="serviceworker-registration-template"></div>
+ </div>
+ <div class="serviceworker-item"
+ jsselect="$this.unregistered_registrations">
+ <div transclude="serviceworker-registration-template"></div>
+ </div>
+ <div class="serviceworker-item" jsselect="$this.unregistered_versions">
+ Unregistered worker:
+ <div transclude="serviceworker-version-template"></div>
+ </div>
+ </div>
+ <div id="serviceworker-options-template">
+ <div>
+ <span>
+ <input type="checkbox" class="debug_on_start"
+ jsvalues=".checked:$this.debug_on_start">
+ </span>
+ <span>
+ Opens the DevTools window for ServiceWorker on start for debugging.
+ </span>
+ </div>
+ </div>
+ </div>
+ <h1>ServiceWorker</h1>
+ <div class="content">
+ <div id="serviceworker-options"></div>
+ <div id="serviceworker-list"></div>
+ </div>
+ <script src="chrome://resources/js/util.js"></script>
+ <script src="chrome://resources/js/cr.js"></script>
+ <script src="serviceworker_internals.js"></script>
+ <script src="chrome://resources/js/load_time_data.js"></script>
+ <script src="chrome://resources/js/jstemplate_compiled.js"></script>
+ <script src="strings.js"></script>
+ <script src="chrome://resources/js/i18n_template2.js"></script>
</body>
</html>
« no previous file with comments | « no previous file | content/browser/resources/service_worker/serviceworker_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698