| 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>>></span>
|
| + <div jsvalues="id:id" class="snippet-detail snippet-hidden">
|
| + <table>
|
| + <tr>
|
| + <td>Validity
|
| + <td class="expiry">
|
| + <span class="date" jscontent="published"></span> –
|
| + <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> >></span>
|
| + <div jsvalues="id:id" class="snippet-detail snippet-hidden">
|
| + <table>
|
| + <tr>
|
| + <td>Validity
|
| + <td class="expiry">
|
| + <span class="date" jscontent="published"></span> –
|
| + <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>
|
|
|