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

Unified 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: Implementing last suggestions from Bernhard 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/snippets_internals.css ('k') | chrome/browser/resources/snippets_internals.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/snippets_internals.html
diff --git a/chrome/browser/resources/snippets_internals.html b/chrome/browser/resources/snippets_internals.html
new file mode 100644
index 0000000000000000000000000000000000000000..c34a0d90d50baa568a11cc7529d1a0f363ab59cf
--- /dev/null
+++ b/chrome/browser/resources/snippets_internals.html
@@ -0,0 +1,127 @@
+<!--
+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>
+<meta charset="utf-8">
+<if expr="is_android or is_ios">
+<meta name="viewport" content="width=device-width, initial-scale=1.0,
+ maximum-scale=1.0, user-scalable=no">
+</if>
+<title>Snippets Internals</title>
+<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
+<link rel="stylesheet" href="snippets_internals.css">
+<script src="chrome://resources/js/cr.js"></script>
+<script src="chrome://resources/js/jstemplate_compiled.js"></script>
+<script src="chrome://resources/js/util.js"></script>
+<script src="snippets_internals.js"></script>
+
+<div id="info">
+ <div class="section">
+ <h2>Properties</h2>
+ <table class="section-details">
+ <tr>
+ <td class="name">Snippets enabled
+ <td id="flag-snippets" class="value">
+ <tr>
+ <td class="name">Snippets restricted to hosts
+ <td id="switch-restrict-to-hosts" class="value">
+ </table>
+ </div>
+
+ <div id="snippets" class="section">
+ <h2>Snippets <span class="detail">(click for details)</span></h2>
+ <table class="section-details">
+ <tr jsselect="list" style="display:none">
+ <td class="title-link">
+ <span class="snippet-title" jsvalues="snippet-id:id">
+ <span jscontent="title"></span>&gt;&gt;</span>
+ <div jsvalues="id:id" class="snippet-detail snippet-hidden">
+ <table>
+ <tr>
+ <td>Validity
+ <td class="expiry">
+ <span class="date" jscontent="published"></span> &ndash;
+ <span class="date" jscontent="expires"></span>
+ <tr>
+ <td>Site title
+ <td jscontent="siteTitle">
+ <tr>
+ <td>Text
+ <td jscontent="snippet">
+ <tr>
+ <td>URL
+ <td><a class="url" jsvalues="href:url" jscontent="url"></a>
+ <tr>
+ <td>Favicon
+ <td><a class="url" jsvalues="href:faviconUrl"
+ jscontent="faviconUrl"></a>
+ <tr>
+ <td>Salient image
+ <td><a class="url" jsvalues="href:salientImageUrl"
+ jscontent="salientImageUrl"></a>
+ </table>
+ </div>
+ </table>
+ <div class="detail" id="snippets-empty"></div>
+ <div class="forms">
+ <input id="submit-clear" type="submit" value="Clear the list">
+ </div>
+ <div class="forms">
+ <input id="submit-download" type="submit" value="Add snippets">
+ from hosts <input id="hosts-input" type="text" placeholder=
+ "www.wired.com www.bbc.co.uk">
+ <div id="hosts-help" class="detail"></div>
+ </div>
+ </div>
+
+ <div id="discarded-snippets" class="section">
+ <h2>Discarded snippets <span class="detail">(click for details)</span></h2>
+ <table class="section-details">
+ <tr jsselect="list" style="display:none">
+ <td class="title-link">
+ <span class="discarded-snippet-title" jsvalues="snippet-id:id">
+ <span jscontent="title"></span> &gt;&gt;</span>
+ <div jsvalues="id:id" class="snippet-detail snippet-hidden">
+ <table>
+ <tr>
+ <td>Validity
+ <td class="expiry">
+ <span class="date" jscontent="published"></span> &ndash;
+ <span class="date" jscontent="expires"></span>
+ <tr>
+ <td>Site title
+ <td jscontent="siteTitle">
+ <tr>
+ <td>Text
+ <td jscontent="snippet">
+ <tr>
+ <td>URL
+ <td><a class="url" jsvalues="href:url" jscontent="url"></a>
+ <tr>
+ <td>Favicon
+ <td><a class="url" jsvalues="href:faviconUrl"
+ jscontent="faviconUrl"></a>
+ <tr>
+ <td>Salient image
+ <td><a class="url" jsvalues="href:salientImageUrl"
+ jscontent="salientImageUrl"></a>
+ </table>
+ </div>
+ </table>
+ <div class="detail" id="discarded-snippets-empty"></div>
+ <div class="forms">
+ <input id="discarded-snippets-clear" type="submit" value="Clear list">
+ </div>
+ </div>
+
+ <div id="hosts" class="section">
+ <h2>Suggestion hosts</h2>
+ <table class="section-details">
+ <tr jsselect="list">
+ <td jscontent="url">
+ </table>
+ <div class="detail" id="hosts-empty"></div>
+ </div>
+</div>
« no previous file with comments | « chrome/browser/resources/snippets_internals.css ('k') | chrome/browser/resources/snippets_internals.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698