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

Unified Diff: components/ntp_tiles/webui/resources/ntp_tiles_internals.html

Issue 2557103004: Add chrome://site-tiles-internals/ (Closed)
Patch Set: rebase Created 4 years 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: components/ntp_tiles/webui/resources/ntp_tiles_internals.html
diff --git a/components/ntp_tiles/webui/resources/ntp_tiles_internals.html b/components/ntp_tiles/webui/resources/ntp_tiles_internals.html
new file mode 100644
index 0000000000000000000000000000000000000000..0fb7e6f250e00e3830be6f14d042390e0d14e66c
--- /dev/null
+++ b/components/ntp_tiles/webui/resources/ntp_tiles_internals.html
@@ -0,0 +1,117 @@
+<!--
+Copyright 2016 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<if expr="is_android or is_ios">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+</if>
+<title>NTP Tiles Internals</title>
+<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
+<link rel="stylesheet" href="chrome://resources/css/list.css">
+<link rel="stylesheet" href="ntp_tiles_internals.css">
+<script src="chrome://resources/js/cr.js"></script>
+<script src="chrome://resources/js/jstemplate_compiled.js"></script>
+<script src="chrome://resources/js/load_time_data.js"></script>
+<script src="chrome://resources/js/util.js"></script>
+<if expr="is_ios">
+<!-- TODO(crbug.com/487000): Remove this once injected by web. -->
+<script src="chrome://resources/js/ios/web_ui.js"></script>
+</if>
+<script src="ntp_tiles_internals.js"></script>
+</head>
+
+<body>
+<div>
+ <div id="sources" class="section">
+ <h2>Sources</h2>
+ <table class="section-details">
+ <tbody jsselect="topSites">
+ <tr>
+ <th colspan="2">TOP_SITES</th>
+ </tr>
+ <tr>
+ <td class="detail">enabled</td>
+ <td class="value" jsdisplay="$this">yes</td>
+ <td class="value" jsdisplay="!$this">no</td>
+ </tr>
+ <tr>
+ <th colspan="2">SUGGESTIONS_SERVICE</th>
+ </tr>
+ </tbody>
+ <tbody jsselect="suggestionsService">
+ <tr>
+ <td class="detail">enabled</td>
+ <td class="value" jsdisplay="$this">yes</td>
+ <td class="value" jsdisplay="!$this">no</td>
+ </tr>
+ </tbody>
+ <tbody jsselect="popular">
+ <tr>
+ <th colspan="2">POPULAR</th>
+ </tr>
+ <tr jsdisplay="$this">
+ <td class="detail">URL</td>
+ <td class="value"><input id="override-url" type="text" jsvalues="value:overrideURL;placeholder:url"></td>
+ </tr>
+ <tr jsdisplay="$this">
+ <td class="detail">Country</td>
+ <td class="value"><input id="override-country" type="text" jsvalues="value:overrideCountry;placeholder:country"></td>
+ </tr>
+ <tr jsdisplay="$this">
+ <td class="detail">Version</td>
+ <td class="value"><input id="override-version" type="text" jsvalues="values:overrideVersion;placeholder:version"></td>
+ </tr>
+ <tr jsdisplay="!$this">
+ <td class="detail">enabled</td>
+ <td class="value">no</td>
+ </tr>
+ </tbody>
+ <tbody jsselect="whitelist">
+ <tr>
+ <th colspan="2">WHITELIST</th>
+ </tr>
+ <tr>
+ <td class="detail">enabled</td>
+ <td class="value" jsdisplay="$this">yes</td>
+ <td class="value" jsdisplay="!$this">no</td>
+ </tr>
+ <tr jsskip="true">
+ <th colspan="2"><input id="submit-update" type="submit" value="Update"></input></th>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
+ <div id="sites" class="section">
+ <h2>Sites</h2>
+ <table class="section-details">
+ <tbody jsselect="sites">
+ <tr>
+ <th colspan="2" jscontent="title"></th>
+ </tr>
+ <tr>
+ <td class="detail">Source</td>
+ <td class="value" jsdisplay="source &lt; 0">???</td>
+ <td class="value" jsdisplay="source == 0">TOP_SITES</td>
+ <td class="value" jsdisplay="source == 1">SUGGESTIONS_SERVICE</td>
+ <td class="value" jsdisplay="source == 2">POPULAR</td>
+ <td class="value" jsdisplay="source == 3">WHITELIST</td>
+ <td class="value" jsdisplay="source &gt; 3">???</td>
+ </tr>
+ <tr>
+ <td class="detail">URL</td>
+ <td class="value"><a jsvalues="href:url" jscontent="url"></a></td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+</div>
+
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698