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

Unified Diff: chromecast/shell/browser/resources/shell_devtools_discovery_page.html

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 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
Index: chromecast/shell/browser/resources/shell_devtools_discovery_page.html
diff --git a/chromecast/shell/browser/resources/shell_devtools_discovery_page.html b/chromecast/shell/browser/resources/shell_devtools_discovery_page.html
deleted file mode 100644
index 00c937473ba1a8a34d744c34a7850724de1ac1bf..0000000000000000000000000000000000000000
--- a/chromecast/shell/browser/resources/shell_devtools_discovery_page.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<html>
-<head>
-<title>Cast shell remote debugging</title>
-<style>
-</style>
-
-<script>
-function onLoad() {
- var tabs_list_request = new XMLHttpRequest();
- tabs_list_request.open("GET", "/json/list?t=" + new Date().getTime(), true);
- tabs_list_request.onreadystatechange = onReady;
- tabs_list_request.send();
-}
-
-function onReady() {
- if(this.readyState == 4 && this.status == 200) {
- if(this.response != null) {
- var responseJSON = JSON.parse(this.response);
- for (var i = 0; i < responseJSON.length; ++i) {
- appendItem(responseJSON[i]);
- }
- }
- }
-}
-
-function appendItem(item_object) {
- var frontend_ref;
- if (item_object.devtoolsFrontendUrl) {
- frontend_ref = document.createElement("a");
- frontend_ref.href = item_object.devtoolsFrontendUrl;
- frontend_ref.title = item_object.title;
- } else {
- frontend_ref = document.createElement("div");
- frontend_ref.title = "The tab already has active debugging session";
- }
-
- var text = document.createElement("div");
- if (item_object.title)
- text.innerText = item_object.title;
- else
- text.innerText = "(untitled tab)";
- text.style.cssText = "background-image:url(" + item_object.faviconUrl + ")";
- frontend_ref.appendChild(text);
-
- var item = document.createElement("p");
- item.appendChild(frontend_ref);
-
- document.getElementById("items").appendChild(item);
-}
-</script>
-</head>
-<body onload='onLoad()'>
- <div id='caption'>Inspectable WebContents</div>
- <div id='items'></div>
-</body>
-</html>
« no previous file with comments | « chromecast/shell/browser/resources/resource_ids ('k') | chromecast/shell/browser/resources/shell_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698