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

Unified Diff: ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html

Issue 1963503002: MD WebUI: Add shared cr-toolbar element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style review comments Created 4 years, 7 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: ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html
diff --git a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html
index 4ff9b93481b3e62971fb3e0c4ba27660d77017e9..3d6da01e0e2c52f2fc032ce3b0d0c8f5629459be 100644
--- a/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html
+++ b/ui/webui/resources/cr_elements/cr_search_field/cr_search_field.html
@@ -1,3 +1,4 @@
+<link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field_behavior.html">
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/polymer.html">
@@ -7,20 +8,18 @@
<dom-module id="cr-search-field">
<template>
- <paper-icon-button icon="cr:search" id="search-button"
- disabled$="[[showingSearch_]]" title="[[label]]"
+ <paper-icon-button icon="cr:search" id="searchButton"
+ disabled$="[[showingSearch]]" title="[[label]]"
on-click="toggleShowingSearch_"></paper-icon-button>
- <template is="dom-if" if="[[showingSearch_]]" id="search-container">
- <paper-input-container id="search-term" on-search="onSearchTermSearch_"
- on-keydown="onSearchTermKeydown_" hidden$="[[!showingSearch_]]"
- no-label-float>
- <input is="iron-input" id="search-input" type="search"
- placeholder="[[label]]" incremental>
- <paper-icon-button icon="cr:cancel" id="clear-search"
- on-click="toggleShowingSearch_" title="[[clearLabel]]"
- hidden$="[[!showingSearch_]]"></paper-icon-button>
- </paper-input-container>
- </template>
+ <paper-input-container id="searchTerm" on-search="onSearchTermSearch_"
+ on-keydown="onSearchTermKeydown_" hidden$="[[!showingSearch]]"
+ no-label-float>
+ <input is="iron-input" id="searchInput" type="search"
+ placeholder="[[label]]" incremental>
+ <paper-icon-button icon="cr:cancel" id="clearSearch"
+ on-click="toggleShowingSearch_" title="[[clearLabel]]"
+ hidden$="[[!showingSearch]]"></paper-icon-button>
+ </paper-input-container>
</template>
<link rel="import" type="css" href="cr_search_field.css">
<script src="cr_search_field.js"></script>

Powered by Google App Engine
This is Rietveld 408576698