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

Side by Side Diff: chrome/browser/resources/md_history/history_toolbar.html

Issue 2280513002: MD History: promote menu button to show clear browsing data in narrow mode (Closed)
Patch Set: merge Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop down.html"> 2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-dropdown/iron-drop down.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht ml"> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tab.ht ml">
8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h tml"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tabs/paper-tabs.h tml">
9 <link rel="import" href="chrome://resources/cr_elements/icons.html"> 9 <link rel="import" href="chrome://resources/cr_elements/icons.html">
10 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r ender.html"> 10 <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_r ender.html">
11 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml"> 11 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.ht ml">
12 <link rel="import" href="chrome://history/browser_service.html">
12 <link rel="import" href="chrome://history/icons.html"> 13 <link rel="import" href="chrome://history/icons.html">
13 <link rel="import" href="chrome://history/shared_style.html"> 14 <link rel="import" href="chrome://history/shared_style.html">
14 15
15 <dom-module id="history-toolbar"> 16 <dom-module id="history-toolbar">
16 <template> 17 <template>
17 <style include="shared-style"> 18 <style include="shared-style">
18 :host { 19 :host {
19 color: #fff; 20 color: #fff;
20 display: block; 21 display: block;
21 transition: background-color 150ms; 22 transition: background-color 150ms;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 text-align: right; 156 text-align: right;
156 text-overflow: ellipsis; 157 text-overflow: ellipsis;
157 white-space: nowrap; 158 white-space: nowrap;
158 } 159 }
159 160
160 :host-context([dir=rtl]) .rtl-reversible { 161 :host-context([dir=rtl]) .rtl-reversible {
161 transform: rotate(180deg); 162 transform: rotate(180deg);
162 } 163 }
163 </style> 164 </style>
164 <div id="toolbar-container"> 165 <div id="toolbar-container">
165 <cr-toolbar id="main-toolbar" page-name="$i18n{title}" 166 <cr-toolbar id="main-toolbar"
166 clear-label="$i18n{clearSearch}" search-prompt="$i18n{searchPrompt}" 167 page-name="$i18n{title}"
167 hidden$="[[itemsSelected_]]" spinner-active="[[spinnerActive]]" 168 clear-label="$i18n{clearSearch}"
168 show-menu="[[hasDrawer]]" menu-label="$i18n{historyMenuButton}" 169 search-prompt="$i18n{searchPrompt}"
169 on-search-changed="onSearchChanged_"> 170 hidden$="[[itemsSelected_]]"
171 spinner-active="[[spinnerActive]]"
172 show-menu="[[hasDrawer]]"
173 show-menu-promo="[[showMenuPromo_]]"
174 menu-label="$i18n{historyMenuButton}"
175 menu-promo="$i18n{menuPromo}"
176 close-menu-promo="$i18n{closeMenuPromo}"
177 on-search-changed="onSearchChanged_"
178 on-cr-menu-promo-shown="onMenuPromoShown_">
170 <div class="more-actions"> 179 <div class="more-actions">
171 <template is="dom-if" if="[[showSyncNotice]]"> 180 <template is="dom-if" if="[[showSyncNotice]]">
172 <button is="paper-icon-button-light" id="info-button" 181 <button is="paper-icon-button-light" id="info-button"
173 on-tap="onInfoButtonTap_" 182 on-tap="onInfoButtonTap_"
174 aria-label="$i18n{hasSyncedResultsDescription}"> 183 aria-label="$i18n{hasSyncedResultsDescription}">
175 <iron-icon icon="history:info-outline" id="info-button-icon"> 184 <iron-icon icon="history:info-outline" id="info-button-icon">
176 </iron-icon> 185 </iron-icon>
177 </button> 186 </button>
178 </template> 187 </template>
179 </div> 188 </div>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 class="rtl-reversible"></paper-icon-button> 231 class="rtl-reversible"></paper-icon-button>
223 <paper-icon-button icon="cr:chevron-right" 232 <paper-icon-button icon="cr:chevron-right"
224 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" 233 alt="$i18n{rangeNext}" title="$i18n{rangeNext}"
225 class="rtl-reversible"></paper-icon-button> 234 class="rtl-reversible"></paper-icon-button>
226 </div> 235 </div>
227 </div> 236 </div>
228 </template> 237 </template>
229 </template> 238 </template>
230 <script src="chrome://history/history_toolbar.js"></script> 239 <script src="chrome://history/history_toolbar.js"></script>
231 </dom-module> 240 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698