blob: 4d5828fdcfbfb35a5af85d362ed5248d2ffc2be9 [file] [log] [blame]
<!--
Copyright 2017 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.
This is an internal only page meant for debugging. It is not intended for
general use and is not localized.
-->
<!doctype html>
<html lang="en">
<head>
<title>Discards</title>
<meta charset="utf-8">
<link rel="stylesheet" href="chrome://resources/css/action_link.css">
<link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/mojo_bindings.js"></script>
<script src="chrome://resources/js/util.js"></script>
<script src="chrome/browser/ui/webui/discards/discards.mojom.js"></script>
<script src="discards.js"></script>
<link rel="stylesheet" type="text/css" href="discards.css">
</head>
<body>
<h1>Discards</h1>
<div is="action-link" id="discard-now-link">
[Discard a tab now]
</div>
<div is="action-link" id="discard-now-urgent-link">
[Urgent discard a tab now]
</div>
<table id="tab-discard-info-table">
<thead>
<tr id="tab-discards-info-table-header">
<th data-sort-key="utilityRank" class="sort-column">Utility Rank</th>
<th data-sort-key="title">Tab Title</th>
<th data-sort-key="tabUrl">Tab URL</th>
<th data-sort-key="isMedia">Media</th>
<th data-sort-key="isDiscarded">Discarded</th>
<th data-sort-key="discardCount">Discard Count</th>
<th data-sort-key="isAutoDiscardable">Auto Discardable</th>
<th data-sort-key="lastActiveSeconds">Last Active</th>
</tr>
</thead>
<tbody id="tab-discards-info-table-body">
</tbody>
</table>
<template id="tab-discard-info-row">
<tr>
<td class="utility-rank-cell"></td>
<td class="title-cell">
<div class="title-cell-container">
<div class="favicon-div">
<img class="favicon" alt="FavIcon">
</div>
<div class="title-div"></div>
</div>
</td>
<td class="tab-url-cell"></td>
<td class="is-media-cell boolean-cell"></td>
<td class="is-discarded-cell boolean-cell"></td>
<td class="discard-count-cell"></td>
<td class="is-auto-discardable-cell boolean-cell">
<div class="is-auto-discardable-div"></div>
<div is="action-link" class="is-auto-discardable-link">
Toggle
</div>
</td>
<td class="last-active-cell"></td>
<td class="discard-links-cell">
<div is="action-link" class="discard-link">[Discard]</div>
<div is="action-link" class="discard-urgent-link">
[Urgent Discard]
</div>
</td>
</tr>
</template>
</body>
</html>