Commit 256f47b4 authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Add tabs to chrome://safe-browsing page

Just a cosmetic change, because I was tired of scrolling through many
sections.

Render: https://screenshot.googleplex.com/mgoTZ4qfD0n

Change-Id: Idaf6b98eb9835f3f9cf440f800985da154fefb10
Reviewed-on: https://chromium-review.googlesource.com/1140528
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarJialiu Lin <jialiul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575909}
parent c8fd4739
...@@ -5,54 +5,82 @@ ...@@ -5,54 +5,82 @@
<title>Safe Browsing</title> <title>Safe Browsing</title>
<link rel="stylesheet" href="safe_browsing.css"> <link rel="stylesheet" href="safe_browsing.css">
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<link rel="stylesheet" href="chrome://resources/css/tabs.css">
<script src="chrome://resources/js/promise_resolver.js"></script> <script src="chrome://resources/js/promise_resolver.js"></script>
<script src="chrome://resources/js/cr.js"></script> <script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/load_time_data.js"></script> <script src="chrome://resources/js/load_time_data.js"></script>
<script src="chrome://resources/js/util.js"></script> <script src="chrome://resources/js/util.js"></script>
<script src="safe_browsing.js"></script> <script src="chrome://resources/js/cr/ui.js"></script>
<script src="chrome://resources/js/cr/ui/focus_outline_manager.js"></script>
<script src="chrome://resources/js/cr/ui/tabs.js"></script>
</head> </head>
<body> <body>
<div id="header"> <div id="header">
<h1 id="sb-title">Safe Browsing</h1> <h1 id="sb-title">Safe Browsing</h1>
</div> </div>
<h2>Experiments</h2> <tabbox>
<div class="content"> <tabs>
<p id="experiments-list"></p> <tab>Preferences</tab>
</div> <tab>Database Manager</tab>
<h2>Preferences</h2> <tab>Hash Cache</tab>
<div class="content"> <tab>ClientSafeBrowsingReportRequests</tab>
<p id="preferences-list"></p> <tab>Download Protection</tab>
</div> <tab>Password Protection</tab>
<h2>Database Manager</h2> </tabs>
<div class="content"> <tabpanels>
<p id="database-info-list"></p> <tabpanel>
</div> <h2>Experiments</h2>
<h2>Full Hash Cache</h2> <div class="content">
<div class="content"> <p id="experiments-list"></p>
<p id="full-hash-cache-info"></p> </div>
</div> <h2>Preferences</h2>
<h2>CSBRRs (ClientSafeBrowsingReportRequest) sent</h2> <div class="content">
<div class="content"> <p id="preferences-list"></p>
<p id="sent-csbrrs-list"></p> </div>
</div> </tabpanel>
<h2>Download requests (ClientDownloadRequest) sent</h2> <tabpanel>
<div class="content"> <h2>Database Manager</h2>
<p id="sent-client-download-requests-list"></p> <div class="content">
</div> <p id="database-info-list"></p>
<h2>Download responses (ClientDownloadResponse) received</h2> </div>
<div class="content"> </tabpanel>
<p id="received-client-download-response-list"></p> <tabpanel>
</div> <h2>Full Hash Cache</h2>
<h2>PhishGuard Events</h2> <div class="content">
<div class="content"> <p id="full-hash-cache-info"></p>
<p id="pg-event-log"></p> </div>
</div> </tabpanel>
<h2>Saved Password Hashes</h2> <tabpanel>
<div class="content"> <h2>CSBRRs (ClientSafeBrowsingReportRequest) sent</h2>
<p id="saved-passwords"></p> <div class="content">
</div> <p id="sent-csbrrs-list"></p>
<h2>PhishGuard Pings</h2> </div>
<table id="pg-ping-list" class="request-response"></table> </tabpanel>
<tabpanel>
<h2>Download requests (ClientDownloadRequest) sent</h2>
<div class="content">
<p id="sent-client-download-requests-list"></p>
</div>
<h2>Download responses (ClientDownloadResponse) received</h2>
<div class="content">
<p id="received-client-download-response-list"></p>
</div>
</tabpanel>
<tabpanel>
<h2>Saved Password Hashes</h2>
<div class="content">
<p id="saved-passwords"></p>
</div>
<h2>Password Protection Events</h2>
<div class="content">
<p id="pg-event-log"></p>
</div>
<h2>Password Protection Pings</h2>
<table id="pg-ping-list" class="request-response"></table>
</tabpanel>
</tabpanels>
</tabbox>
<script src="chrome://resources/js/i18n_template.js"></script> <script src="chrome://resources/js/i18n_template.js"></script>
<script src="safe_browsing.js"></script>
</body> </body>
</html> </html>
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* Use of this source code is governed by a BSD-style license that can be * Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */ * found in the LICENSE file. */
cr.ui.decorate('tabbox', cr.ui.TabBox);
cr.define('safe_browsing', function() { cr.define('safe_browsing', function() {
'use strict'; 'use strict';
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment