diff options
Diffstat (limited to 'chromium/components/ntp_tiles/webui/resources/ntp_tiles_internals.html')
-rw-r--r-- | chromium/components/ntp_tiles/webui/resources/ntp_tiles_internals.html | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/chromium/components/ntp_tiles/webui/resources/ntp_tiles_internals.html b/chromium/components/ntp_tiles/webui/resources/ntp_tiles_internals.html new file mode 100644 index 00000000000..0fb7e6f250e --- /dev/null +++ b/chromium/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 < 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 > 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> + |