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

Side by Side Diff: chrome/browser/resources/settings/settings_ui/settings_ui.js

Issue 1880063004: [MD settings] drawer menu icon into title bar; icon colors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-ui' implements the UI for the Settings page. 7 * 'settings-ui' implements the UI for the Settings page.
8 * 8 *
9 * Example: 9 * Example:
10 * 10 *
11 * <settings-ui prefs="{{prefs}}"></settings-ui> 11 * <settings-ui prefs="{{prefs}}"></settings-ui>
12 */ 12 */
13 Polymer({ 13 Polymer({
14 is: 'settings-ui', 14 is: 'settings-ui',
15 15
16 behaviors: [I18nBehavior],
17
16 properties: { 18 properties: {
17 /** 19 /**
18 * Preferences state. 20 * Preferences state.
19 * @type {?CrSettingsPrefsElement} 21 * @type {?CrSettingsPrefsElement}
20 */ 22 */
21 prefs: Object, 23 prefs: Object,
22 24
23 /** @type {?settings.DirectionDelegate} */ 25 /** @type {?settings.DirectionDelegate} */
24 directionDelegate: { 26 directionDelegate: {
25 observer: 'directionDelegateChanged_', 27 observer: 'directionDelegateChanged_',
26 type: Object, 28 type: Object,
27 }, 29 },
30
31 /** @private */
32 mainTitle_: String,
33
34 /** @private */
35 showSearch_: Boolean,
28 }, 36 },
29 37
30 /** @private */ 38 /** @private */
31 directionDelegateChanged_: function() { 39 directionDelegateChanged_: function() {
32 this.$.panel.rightDrawer = this.directionDelegate.isRtl(); 40 this.$.panel.rightDrawer = this.directionDelegate.isRtl();
33 }, 41 },
42
43 /** @private */
44 onNarrow_: function(e) {
tommycli 2016/04/13 20:39:29 Since it's not always narrowed (sometimes it's exp
dschuyler 2016/04/13 22:19:50 Done.
45 this.mainTitle_ = e.detail.narrow ? this.i18n('settings') : '';
46 },
47
48 /** @private */
49 toggleSearch_: function() {
50 this.showSearch_ = !this.showSearch_;
51 },
34 }); 52 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698