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

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

Issue 1308893009: [MD Extensions] Move search field out of downloads, use it in extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: License + Nit Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html
diff --git a/ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html b/ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html
new file mode 100644
index 0000000000000000000000000000000000000000..7fda23cc114d500fa9a4d8c9d32b49e2c9923ccd
--- /dev/null
+++ b/ui/webui/resources/cr_elements/v1_0/cr_search_field/cr_search_field.html
@@ -0,0 +1,28 @@
+<link rel="import" href="chrome://resources/html/assert.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/iron-input/iron-input.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input-container.html">
+
+<dom-module id="cr-search-field">
+ <template>
+ <paper-icon-button icon="search" id="search-button"
+ disabled$="[[showingSearch_]]"
+ i18n-values="title:search"
Dan Beam 2015/09/17 00:33:59 i think this ...
+ 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"
+ i18n-values="placeholder:search" incremental>
Dan Beam 2015/09/17 00:33:59 ... and this may have broken
+ <paper-icon-button icon="cancel" id="clear-search"
+ on-click="toggleShowingSearch_"
+ hidden$="[[!showingSearch_]]"></paper-icon-button>
+ </paper-input-container>
+ </template>
+ </template>
+ <link rel="import" type="css" href="cr_search_field.css">
+ <script src="cr_search_field.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698