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

Side by Side Diff: chrome/browser/resources/md_downloads/vulcanized.html

Issue 2311093002: MD WebUI: Use dom-if to control hidden elements in <cr-toolbar> (Closed)
Patch Set: Fix tests 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 <!DOCTYPE html><html dir="$i18n{textdirection}" lang="$i18n{language}"><head><!- - 1 <!DOCTYPE html><html dir="$i18n{textdirection}" lang="$i18n{language}"><head><!- -
2 @license 2 @license
3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved. 3 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt 4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also 7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><!-- 9 --><!--
10 @license 10 @license
(...skipping 3240 matching lines...) Expand 10 before | Expand all | Expand 10 after
3251 3251
3252 :host([narrow][showing-search]) { 3252 :host([narrow][showing-search]) {
3253 width: 100%; 3253 width: 100%;
3254 } 3254 }
3255 3255
3256 :host([narrow][showing-search]) #icon, :host([narrow][showing-search]) paper-spi nner-lite { 3256 :host([narrow][showing-search]) #icon, :host([narrow][showing-search]) paper-spi nner-lite {
3257 -webkit-margin-start: 18px; 3257 -webkit-margin-start: 18px;
3258 } 3258 }
3259 3259
3260 </style> 3260 </style>
3261 <paper-spinner-lite active="[[isSpinnerShown_(spinnerActive, showingSearch)] ]"> 3261 <template is="dom-if" if="[[isSpinnerShown_]]">
3262 </paper-spinner-lite> 3262 <paper-spinner-lite active="">
3263 </paper-spinner-lite>
3264 </template>
3263 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" tabindex$="[ [computeIconTabIndex_(narrow)]]"> 3265 <paper-icon-button id="icon" icon="cr:search" title="[[label]]" tabindex$="[ [computeIconTabIndex_(narrow)]]">
3264 </paper-icon-button> 3266 </paper-icon-button>
3265 <paper-input-container id="searchTerm" on-search="onSearchTermSearch" on-key down="onSearchTermKeydown" no-label-float=""> 3267 <paper-input-container id="searchTerm" on-search="onSearchTermSearch" on-key down="onSearchTermKeydown" no-label-float="">
3266 <label id="prompt" for="searchInput">[[label]]</label> 3268 <label id="prompt" for="searchInput">[[label]]</label>
3267 <input is="iron-input" id="searchInput" type="search" on-blur="onInputBlur _" incremental="" autofocus=""> 3269 <input is="iron-input" id="searchInput" type="search" on-blur="onInputBlur _" incremental="" autofocus="">
3268 </paper-input-container> 3270 </paper-input-container>
3269 <paper-icon-button icon="cr:cancel" id="clearSearch" title="[[clearLabel]]" hidden$="[[!hasSearchText_]]" on-tap="hideSearch_"> 3271 <template is="dom-if" if="[[hasSearchText_]]">
3270 </paper-icon-button> 3272 <paper-icon-button icon="cr:cancel" id="clearSearch" title="[[clearLabel]] " on-tap="hideSearch_">
3273 </paper-icon-button>
3274 </template>
3271 </template> 3275 </template>
3272 </dom-module> 3276 </dom-module>
3273 <dom-module id="cr-toolbar" assetpath="chrome://resources/cr_elements/cr_toolbar /" css-build="shadow"> 3277 <dom-module id="cr-toolbar" assetpath="chrome://resources/cr_elements/cr_toolbar /" css-build="shadow">
3274 <template> 3278 <template>
3275 <style scope="cr-toolbar">:host { 3279 <style scope="cr-toolbar">:host {
3276 --cr-toolbar-field-width: 580px; 3280 --cr-toolbar-field-width: 580px;
3277 color: #fff; 3281 color: #fff;
3278 display: flex; 3282 display: flex;
3279 height: 56px; 3283 height: 56px;
3280 } 3284 }
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
3548 <command id="undo-command" shortcut="Meta|z"></command> 3552 <command id="undo-command" shortcut="Meta|z"></command>
3549 <command id="find-command" shortcut="Meta|f"></command> 3553 <command id="find-command" shortcut="Meta|f"></command>
3550 </if> 3554 </if>
3551 <if expr="not is_macosx"> 3555 <if expr="not is_macosx">
3552 <command id="clear-all-command" shortcut="Alt|c"></command> 3556 <command id="clear-all-command" shortcut="Alt|c"></command>
3553 <command id="undo-command" shortcut="Ctrl|z"></command> 3557 <command id="undo-command" shortcut="Ctrl|z"></command>
3554 <command id="find-command" shortcut="Ctrl|f"></command> 3558 <command id="find-command" shortcut="Ctrl|f"></command>
3555 </if> 3559 </if>
3556 <link rel="import" href="chrome://resources/html/polymer.html"> 3560 <link rel="import" href="chrome://resources/html/polymer.html">
3557 <script src="crisper.js"></script></body></html> 3561 <script src="crisper.js"></script></body></html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698