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

Unified Diff: ui/webui/resources/html/cr/ui/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: 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/html/cr/ui/search_field.html
diff --git a/ui/webui/resources/html/cr/ui/search_field.html b/ui/webui/resources/html/cr/ui/search_field.html
new file mode 100644
index 0000000000000000000000000000000000000000..fa0e15f9a9a373df2f07d09fa2fa164b8deb4e91
--- /dev/null
+++ b/ui/webui/resources/html/cr/ui/search_field.html
@@ -0,0 +1,27 @@
+<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-input/paper-input-container.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html">
+<link rel="import" href="chrome://resources/html/assert.html">
+<link rel="import" href="chrome://resources/html/cr.html">
+
+<dom-module id="search-field">
+ <template>
+ <paper-icon-button icon="search" id="search-button"
+ on-click="toggleShowingSearch_"></paper-icon-button>
Dan Beam 2015/09/14 19:22:05 it may be worthwhile to put this in a <template
Devlin 2015/09/14 21:47:19 I tried this out, but it makes other things quite
Dan Beam 2015/09/14 23:16:05 yeah, forgot about that. in the past I've used bi
Devlin 2015/09/15 17:24:06 TL;DR: TODO'd. document.querySelector (and this.q
+ <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>
+ <paper-icon-button icon="cancel" id="clear-search"
+ on-click="toggleShowingSearch_"
+ hidden$="[[!showingSearch_]]"></paper-icon-button>
+ </paper-input-container>
+ </template>
+ <link rel="import" type="css"
+ href="chrome://resources/css/cr/ui/search_field.css">
+ <script src="chrome://resources/js/cr/ui/search_field.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698