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

Side by Side Diff: chrome/browser/resources/snippets_internals.html

Issue 1883523002: chrome://snippets-internals page for debugging NTP snippets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Third code review ( rebase-update) Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright 2016 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6 <!DOCTYPE html>
7 <meta charset="utf-8">
8 <if expr="is_android or is_ios">
9 <meta name="viewport" content="width=device-width, initial-scale=1.0,
10 maximum-scale=1.0, user-scalable=no">
11 </if>
12 <title>Snippets Internals</title>
13 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
14 <link rel="stylesheet" href="snippets_internals.css">
15 <script src="chrome://resources/js/cr.js"></script>
16 <script src="chrome://resources/js/jstemplate_compiled.js"></script>
17 <script src="chrome://resources/js/util.js"></script>
18 <script src="snippets_internals.js"></script>
19
20 <div id="info">
21 <div class="section" jsskip="true">
22 <h2>Properties</h2>
23 <table class="section-details">
24 <tr>
25 <td class="name">Snippets enabled
26 <td id="flag-snippets" class="value">
27 <tr>
28 <td class="name">Snippets restricted to hosts
29 <td id="switch-restrict-to-hosts" class="value">
30 </table>
31 </div>
32
33 <div id="snippets" class="section">
34 <h2>Snippets <span class="detail">(click for details)</span></h2>
35 <table class="section-details">
36 <tr jsselect="list" style="display:none">
37 <td class="title-link">
38 <span class="snippet-title" jsvalues="myid:id">
39 <span jscontent="title"></span>
40 &gt;&gt;
41 </span>
42 <div jsvalues="id:id" class="snippet-detail snippet-hidden">
43 <table>
44 <tr>
45 <td>Validity
46 <td class="expiry">
47 <span class="date" jscontent="published"></span> &ndash;
48 <span class="date" jscontent="expires"></span>
49 <tr>
50 <td>Site title
51 <td jscontent="siteTitle">
52 <tr>
53 <td>Text
54 <td jscontent="snippet">
55 <tr>
56 <td>URL
57 <td><a class="url" jsvalues="href:url" jscontent="url"></a>
58 <tr>
59 <td>Favicon
60 <td><a class="url" jsvalues="href:faviconUrl"
61 jscontent="faviconUrl"></a>
62 <tr>
63 <td>Salient image
64 <td><a class="url" jsvalues="href:salientImageUrl"
65 jscontent="salientImageUrl"></a>
66 </table>
67 </div>
68 </table>
69 <div class="detail" id="snippets-empty" jsskip="1"></div>
70 <div class="forms" jsskip="1">
71 <input id="submit-clear" type="submit" value="Clear the list">
72 </div>
73 <div class="forms" jsskip="1">
74 <input id="submit-download" type="submit" value="Add snippets">
75 from hosts <input id="hosts-input" type="text">
76 <div class="detail">
77 e.g. "www.wired.com www.bbc.co.uk", <span id="hosts-help"></span>.
78 </div>
79 </div>
80 </div>
81
82 <div id="discarded-snippets" class="section">
83 <h2>Discarded snippets <span class="detail">(click for details)</span></h2>
84 <table class="section-details">
85 <tr jsselect="list" style="display:none">
86 <td class="title-link">
87 <span class="discarded-snippet-title" jsvalues="myid:id">
88 <span jscontent="title"></span> &gt;&gt;</span>
89 <div jsvalues="id:id" class="snippet-detail snippet-hidden">
90 <table>
91 <tr>
92 <td>Validity
93 <td class="expiry">
94 <span class="date" jscontent="published"></span> &ndash;
95 <span class="date" jscontent="expires"></span>
96 <tr>
97 <td>Text
98 <td jscontent="snippet">
99 <tr>
100 <td>URL
101 <td><a class="url" jsvalues="href:url" jscontent="url"></a>
102 <tr>
103 <td>Favicon
104 <td><a class="url" jsvalues="href:faviconUrl"
105 jscontent="faviconUrl"></a>
106 <tr>
107 <td>Salient image
108 <td><a class="url" jsvalues="href:salientImageUrl"
109 jscontent="salientImageUrl"></a>
110 </table>
111 </div>
112 </table>
113 <div class="detail" id="discarded-snippets-empty" jsskip="1"></div>
114 <div class="forms" jsskip="1">
115 <input id="discarded-snippets-clear" type="submit" value="Clear list">
116 </div>
117 </div>
118
119 <div id="hosts" class="section">
120 <h2>Suggestion hosts</h2>
121 <table class="section-details">
122 <tr jsselect="list">
123 <td jscontent="url">
124 </table>
125 <div class="detail" id="hosts-empty" jsskip="1"></div>
126 </div>
127 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698