OLD | NEW |
---|---|
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 text-align: right; | 163 text-align: right; |
163 text-overflow: ellipsis; | 164 text-overflow: ellipsis; |
164 white-space: nowrap; | 165 white-space: nowrap; |
165 } | 166 } |
166 | 167 |
167 :host-context([dir=rtl]) .rtl-reversible { | 168 :host-context([dir=rtl]) .rtl-reversible { |
168 transform: rotate(180deg); | 169 transform: rotate(180deg); |
169 } | 170 } |
170 </style> | 171 </style> |
171 <div id="toolbar-container"> | 172 <div id="toolbar-container"> |
172 <cr-toolbar id="main-toolbar" page-name="$i18n{title}" | 173 <cr-toolbar id="main-toolbar" |
173 clear-label="$i18n{clearSearch}" search-prompt="$i18n{searchPrompt}" | 174 page-name="$i18n{title}" |
174 hidden$="[[itemsSelected_]]" spinner-active="[[spinnerActive]]" | 175 clear-label="$i18n{clearSearch}" |
175 show-menu="[[hasDrawer]]" menu-label="$i18n{historyMenuButton}" | 176 search-prompt="$i18n{searchPrompt}" |
176 on-search-changed="onSearchChanged_"> | 177 hidden$="[[itemsSelected_]]" |
178 spinner-active="[[spinnerActive]]" | |
179 show-menu="[[hasDrawer]]" | |
180 show-menu-promo="[[showMenuPromo_]]" | |
181 menu-label="$i18n{historyMenuButton}" | |
182 menu-promo="$i18n{menuPromo}" | |
183 close-menu-promo="$i18n{closeMenuPromo}" | |
184 on-search-changed="onSearchChanged_" | |
185 on-cr-menu-promo-shown="onMenuPromoShown_"> | |
Pam (message me for reviews)
2016/09/21 04:44:12
Yay readability! :)
Dan Beam
2016/09/21 06:09:42
except for this one :) which we made pretty
| |
177 <div class="more-actions"> | 186 <div class="more-actions"> |
178 <template is="dom-if" if="[[showSyncNotice]]"> | 187 <template is="dom-if" if="[[showSyncNotice]]"> |
179 <button is="paper-icon-button-light" id="info-button" | 188 <button is="paper-icon-button-light" id="info-button" |
180 on-tap="onInfoButtonTap_" | 189 on-tap="onInfoButtonTap_" |
181 aria-label="$i18n{hasSyncedResultsDescription}"> | 190 aria-label="$i18n{hasSyncedResultsDescription}"> |
182 <iron-icon icon="history:info-outline" id="info-button-icon"> | 191 <iron-icon icon="history:info-outline" id="info-button-icon"> |
183 </iron-icon> | 192 </iron-icon> |
184 </button> | 193 </button> |
185 </template> | 194 </template> |
186 </div> | 195 </div> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 class="rtl-reversible"></paper-icon-button> | 238 class="rtl-reversible"></paper-icon-button> |
230 <paper-icon-button icon="cr:chevron-right" | 239 <paper-icon-button icon="cr:chevron-right" |
231 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" | 240 alt="$i18n{rangeNext}" title="$i18n{rangeNext}" |
232 class="rtl-reversible"></paper-icon-button> | 241 class="rtl-reversible"></paper-icon-button> |
233 </div> | 242 </div> |
234 </div> | 243 </div> |
235 </template> | 244 </template> |
236 </template> | 245 </template> |
237 <script src="chrome://history/history_toolbar.js"></script> | 246 <script src="chrome://history/history_toolbar.js"></script> |
238 </dom-module> | 247 </dom-module> |
OLD | NEW |