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

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

Issue 2106103006: MD Settings: cr/cros - Guest mode page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Itr#2 Created 4 years, 5 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 // 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,
(...skipping 12 matching lines...) Expand all
23 narrow_: { 23 narrow_: {
24 type: Boolean, 24 type: Boolean,
25 reflectToAttribute: true 25 reflectToAttribute: true
26 }, 26 },
27 27
28 /** @private */ 28 /** @private */
29 showingSearch_: { 29 showingSearch_: {
30 type: Boolean, 30 type: Boolean,
31 reflectToAttribute: true, 31 reflectToAttribute: true,
32 }, 32 },
33
34 /**
35 * Whether search field should be hidden.
36 * @type {boolean}
37 */
38 hideSearch: {
michaelpg 2016/07/13 00:01:36 unused?
Moe 2016/07/13 20:17:17 No, it's used in cr_toolbar.html to hide the searc
michaelpg 2016/07/14 00:31:28 but where is it set?
Moe 2016/07/14 17:19:55 in settings_ui.html
39 type: Boolean,
40 value: false,
41 },
33 }, 42 },
34 43
35 /** @return {!CrToolbarSearchFieldElement} */ 44 /** @return {CrToolbarSearchFieldElement} */
36 getSearchField: function() { 45 getSearchField: function() {
37 return this.$.search; 46 return /** @type {CrToolbarSearchFieldElement} */ (this.$$('#search'));
38 }, 47 },
39 48
40 /** @private */ 49 /** @private */
41 onMenuTap_: function(e) { 50 onMenuTap_: function(e) {
42 this.fire('cr-menu-tap'); 51 this.fire('cr-menu-tap');
43 } 52 }
44 }); 53 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698