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

Side by Side Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js

Issue 2275653002: MD Downloads: use "big search" box like MD history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-menu-rtl
Patch Set: fix tests Created 4 years, 4 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
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer({ 5 Polymer({
6 is: 'cr-toolbar', 6 is: 'cr-toolbar',
7 7
8 properties: { 8 properties: {
9 // Name to display in the toolbar, in titlecase. 9 // Name to display in the toolbar, in titlecase.
10 pageName: String, 10 pageName: String,
11 11
12 // Prompt text to display in the search field. 12 // Prompt text to display in the search field.
13 searchPrompt: String, 13 searchPrompt: String,
14 14
15 // Tooltip to display on the clear search button. 15 // Tooltip to display on the clear search button.
16 clearLabel: String, 16 clearLabel: String,
17 17
18 // Tooltip to display on the menu button. 18 // Tooltip to display on the menu button.
19 menuLabel: String, 19 menuLabel: String,
20 20
21 // Value is proxied through to cr-toolbar-search-field. When true, 21 // Value is proxied through to cr-toolbar-search-field. When true,
22 // the search field will show a processing spinner. 22 // the search field will show a processing spinner.
23 spinnerActive: Boolean, 23 spinnerActive: Boolean,
24 24
25 // Controls whether the menu button is shown at the start of the menu. 25 // Controls whether the menu button is shown at the start of the menu.
26 showMenu: { 26 showMenu: {
27 type: Boolean, 27 type: Boolean,
28 reflectToAttribute: true, 28 value: false
29 value: true
30 }, 29 },
31 30
32 /** @private */ 31 /** @private */
33 narrow_: { 32 narrow_: {
34 type: Boolean, 33 type: Boolean,
35 reflectToAttribute: true 34 reflectToAttribute: true
36 }, 35 },
37 36
38 /** @private */ 37 /** @private */
39 showingSearch_: { 38 showingSearch_: {
40 type: Boolean, 39 type: Boolean,
41 reflectToAttribute: true, 40 reflectToAttribute: true,
42 }, 41 },
43 }, 42 },
44 43
45 /** @return {!CrToolbarSearchFieldElement} */ 44 /** @return {!CrToolbarSearchFieldElement} */
46 getSearchField: function() { 45 getSearchField: function() {
47 return this.$.search; 46 return this.$.search;
48 }, 47 },
49 48
50 /** @private */ 49 /** @private */
51 onMenuTap_: function(e) { 50 onMenuTap_: function(e) {
52 this.fire('cr-menu-tap'); 51 this.fire('cr-menu-tap');
53 } 52 }
54 }); 53 });
OLDNEW
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698