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

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

Issue 1978513002: Getting the personalization info in chrome://snippets-internals correct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After code review #2 Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/snippets_internals.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The Chromium Authors. All rights reserved. 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 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 <!DOCTYPE html> 6 <!DOCTYPE html>
7 <meta charset="utf-8"> 7 <meta charset="utf-8">
8 <if expr="is_android or is_ios"> 8 <if expr="is_android or is_ios">
9 <meta name="viewport" content="width=device-width, initial-scale=1.0, 9 <meta name="viewport" content="width=device-width, initial-scale=1.0,
10 maximum-scale=1.0, user-scalable=no"> 10 maximum-scale=1.0, user-scalable=no">
11 </if> 11 </if>
12 <title>Snippets Internals</title> 12 <title>Snippets Internals</title>
13 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> 13 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
14 <link rel="stylesheet" href="snippets_internals.css"> 14 <link rel="stylesheet" href="snippets_internals.css">
15 <script src="chrome://resources/js/cr.js"></script> 15 <script src="chrome://resources/js/cr.js"></script>
16 <script src="chrome://resources/js/jstemplate_compiled.js"></script> 16 <script src="chrome://resources/js/jstemplate_compiled.js"></script>
17 <script src="chrome://resources/js/util.js"></script> 17 <script src="chrome://resources/js/util.js"></script>
18 <script src="snippets_internals.js"></script> 18 <script src="snippets_internals.js"></script>
19 19
20 <div id="info"> 20 <div id="info">
21 <div> 21 <div>
22 <h2>Properties</h2> 22 <h2>Properties</h2>
23 <table class="section-details"> 23 <table class="section-details">
24 <tr> 24 <tr>
25 <td class="name">Snippets enabled 25 <td class="name">Snippets enabled
26 <td id="flag-snippets" class="value"> 26 <td id="flag-snippets" class="value">
27 <tr> 27 <tr>
28 <td class="name">Snippets restricted to hosts 28 <td class="name">Snippets restricted to hosts
29 <td id="switch-restrict-to-hosts" class="value"> 29 <td id="switch-restrict-to-hosts" class="value">
30 <tr>
31 <td class="name">Snippets type
32 <td id="switch-personalized" class="value">
30 </table> 33 </table>
31 </div> 34 </div>
32 35
33 <div id="snippets"> 36 <div id="snippets">
34 <h2>Snippets <span class="detail">(click for details)</span></h2> 37 <h2>Snippets <span class="detail">(click for details)</span></h2>
35 <table class="section-details"> 38 <table class="section-details">
36 <tr jsselect="list" style="display:none"> 39 <tr jsselect="list" style="display:none">
37 <td class="title-link"> 40 <td class="title-link">
38 <span class="snippet-title" jsvalues="snippet-id:id"> 41 <span class="snippet-title" jsvalues="snippet-id:id">
39 <span jscontent="title"></span>&gt;&gt;</span> 42 <span jscontent="title"></span>&gt;&gt;</span>
(...skipping 30 matching lines...) Expand all
70 </table> 73 </table>
71 </div> 74 </div>
72 </table> 75 </table>
73 <div class="detail" id="snippets-empty"></div> 76 <div class="detail" id="snippets-empty"></div>
74 <div class="forms"> 77 <div class="forms">
75 <input id="submit-clear" type="submit" value="Clear the list"> 78 <input id="submit-clear" type="submit" value="Clear the list">
76 <input id="submit-dump" type="submit" value="Dump the list"> 79 <input id="submit-dump" type="submit" value="Dump the list">
77 </div> 80 </div>
78 <div class="forms"> 81 <div class="forms">
79 <input id="submit-download" type="submit" value="Add snippets"> 82 <input id="submit-download" type="submit" value="Add snippets">
80 from hosts <span id="hosts-help" class="detail"></span>: 83 <span id="hosts-restrict">from hosts <span class="detail">(specify at
81 <textarea id="hosts-input" placeholder="www.wired.com www.bbc.co.uk" 84 least one host)</span>:
82 rows="5" autocapitalize="none"></textarea> 85 <textarea id="hosts-input" placeholder="www.wired.com www.bbc.co.uk"
86 rows="5" autocapitalize="none"></textarea>
87 </span>
83 <span id="hosts-status" class="detail"></span> 88 <span id="hosts-status" class="detail"></span>
84 </div> 89 </div>
85 </div> 90 </div>
86 91
87 <div id="last-json" class="hidden"> 92 <div id="last-json" class="hidden">
88 <h2>Last JSON</h2> 93 <h2>Last JSON</h2>
89 <a id="last-json-button">Show the last JSON &gt;&gt;</a> 94 <a id="last-json-button">Show the last JSON &gt;&gt;</a>
90 <div id="last-json-container" class="hidden"> 95 <div id="last-json-container" class="hidden">
91 <div id="last-json-text"></div> 96 <div id="last-json-text"></div>
92 <input id="last-json-dump" type="submit" value="Dump the last JSON"> 97 <input id="last-json-dump" type="submit" value="Dump the last JSON">
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 140
136 <div id="hosts"> 141 <div id="hosts">
137 <h2>Suggestion hosts</h2> 142 <h2>Suggestion hosts</h2>
138 <table class="section-details"> 143 <table class="section-details">
139 <tr jsselect="list"> 144 <tr jsselect="list">
140 <td jscontent="url"> 145 <td jscontent="url">
141 </table> 146 </table>
142 <div class="detail" id="hosts-empty"></div> 147 <div class="detail" id="hosts-empty"></div>
143 </div> 148 </div>
144 </div> 149 </div>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/snippets_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698