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

Unified Diff: chrome/browser/resources/md_history/history_toolbar.html

Issue 2684493002: MD History: Delete Grouped History (Closed)
Patch Set: Rebase Created 3 years, 10 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
Index: chrome/browser/resources/md_history/history_toolbar.html
diff --git a/chrome/browser/resources/md_history/history_toolbar.html b/chrome/browser/resources/md_history/history_toolbar.html
index 2b5708c182bfd6c1a9a91431f2b1e7de6cbbaa2e..8cebe69e6e24a42fb756217c6959c0b36600a73d 100644
--- a/chrome/browser/resources/md_history/history_toolbar.html
+++ b/chrome/browser/resources/md_history/history_toolbar.html
@@ -7,8 +7,7 @@
<link rel="import" href="chrome://history/icons.html">
<link rel="import" href="chrome://history/shared_style.html">
-<!-- Lazy loaded: iron-dropdown, paper-button, paper-icon-button-light,
- paper-tab, paper-tabs. -->
+<!-- Lazy loaded: iron-dropdown, paper-button, paper-icon-button-light. -->
<dom-module id="history-toolbar">
<template>
@@ -108,82 +107,6 @@
-webkit-margin-end: 24px;
-webkit-margin-start: 2px;
}
-
- /* Grouped toolbar. */
-
- paper-tabs {
- --paper-tabs: {
- font-size: inherit;
- };
- --paper-tabs-selection-bar-color: #fff;
- height: calc(var(--toolbar-grouped-height) - var(--toolbar-height));
- min-width: 300px;
- }
-
- paper-tab {
- --paper-tab-ink: rgba(255, 255, 255, 0.4);
- text-transform: uppercase;
- }
-
- #grouped-buttons-container {
- @apply(--card-sizing);
- align-items: center;
- display: flex;
- max-height: 0;
- opacity: 0;
- transition: opacity 300ms, max-height 300ms;
- }
-
- :host([show-grouped-controls]) #grouped-buttons-container {
- max-height: calc(var(--toolbar-grouped-height) - var(--toolbar-height));
- opacity: 1;
- }
-
- #grouped-spacer {
- -webkit-margin-start: var(--side-bar-width);
- }
-
- :host([has-drawer]) #grouped-spacer {
- -webkit-margin-start: 0;
- }
-
- #grouped-nav-container {
- -webkit-margin-end: 16px;
- align-items: center;
- display: flex;
- flex: 1;
- justify-content: flex-end;
- overflow: hidden;
- transition: opacity 150ms;
- }
-
- :host([grouped-range='0']) #grouped-nav-container {
- opacity: 0;
- pointer-events: none;
- }
-
- #grouped-date {
- -webkit-margin-end: 8px;
- flex: 0 1 auto;
- opacity: 0.7;
- overflow: hidden;
- text-align: right;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- #grouped-nav-container button {
- -webkit-margin-start: 8px;
- flex: 0 0 auto;
- }
-
- #grouped-nav-container button[disabled] {
- color: rgba(255, 255, 255, 0.5);
- }
-
- :host-context([dir=rtl]) .rtl-reversible {
- transform: rotate(180deg);
- }
</style>
<div id="toolbar-container">
<cr-toolbar id="main-toolbar"
@@ -233,47 +156,6 @@
</div>
</template>
</div>
- <template is="dom-if" if="[[isGroupedMode]]">
- <div id="grouped-spacer">
- <div id="grouped-buttons-container">
- <paper-tabs attr-for-selected="value" selected="[[groupedRange]]"
- on-iron-select="onTabSelected_">
- <paper-tab value="0">$i18n{rangeAllTime}</paper-tab>
- <paper-tab value="1">$i18n{rangeWeek}</paper-tab>
- <paper-tab value="2">$i18n{rangeMonth}</paper-tab>
- </paper-tabs>
- <div id="grouped-nav-container">
- <span id="grouped-date">
- [[getHistoryInterval_(queryInfo)]]
- </span>
- <button is="paper-icon-button-light"
- id="today-button"
- class="icon-button"
- title="$i18n{rangeToday}"
- on-click="onTodayTap_"
- disabled="[[isToday_(groupedOffset)]]">
- <iron-icon icon="history:today"></iron-icon>
- </button>
- <button is="paper-icon-button-light"
- id="prev-button"
- title="$i18n{rangePrevious}"
- class="icon-button rtl-reversible"
- on-click="onPrevTap_"
- disabled="[[!hasMoreResults]]">
- <iron-icon icon="history:chevron-left"></iron-icon>
- </button>
- <button is="paper-icon-button-light"
- id="next-button"
- title="$i18n{rangeNext}"
- class="icon-button rtl-reversible"
- on-click="onNextTap_"
- disabled="[[isToday_(groupedOffset)]]">
- <iron-icon icon="cr:chevron-right"></iron-icon>
- </button>
- </div>
- </div>
- </div>
- </template>
</template>
<script src="chrome://history/history_toolbar.js"></script>
</dom-module>
« no previous file with comments | « chrome/browser/resources/md_history/history_item.js ('k') | chrome/browser/resources/md_history/history_toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698