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

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

Issue 2153013003: MD Settings: Show/hide spinner when searching starts/ends. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change observer to be a simple callback function. 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 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 *
(...skipping 14 matching lines...) Expand all
25 observer: 'directionDelegateChanged_', 25 observer: 'directionDelegateChanged_',
26 type: Object, 26 type: Object,
27 }, 27 },
28 28
29 appealClosed_: { 29 appealClosed_: {
30 type: Boolean, 30 type: Boolean,
31 value: function() { 31 value: function() {
32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_); 32 return !!(sessionStorage.appealClosed_ || localStorage.appealClosed_);
33 }, 33 },
34 }, 34 },
35
36 /** @private {boolean} */
37 toolbarSpinnerActive_: {
dpapad 2016/07/19 00:36:42 This boolean variable is bound to |spinnerActive|
38 type: Boolean,
39 value: false,
40 },
35 }, 41 },
36 42
37 listeners: { 43 listeners: {
38 'sideNav.iron-activate': 'onIronActivate_', 44 'sideNav.iron-activate': 'onIronActivate_',
39 }, 45 },
40 46
41 /** @private */ 47 /** @private */
42 onCloseAppealTap_: function() { 48 onCloseAppealTap_: function() {
43 sessionStorage.appealClosed_ = this.appealClosed_ = true; 49 sessionStorage.appealClosed_ = this.appealClosed_ = true;
44 }, 50 },
(...skipping 18 matching lines...) Expand all
63 this.$$('settings-main').searchContents(e.detail); 69 this.$$('settings-main').searchContents(e.detail);
64 }.bind(this)); 70 }.bind(this));
65 }, 71 },
66 72
67 /** @private */ 73 /** @private */
68 directionDelegateChanged_: function() { 74 directionDelegateChanged_: function() {
69 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? 75 this.$$('app-drawer').align = this.directionDelegate.isRtl() ?
70 'right' : 'left'; 76 'right' : 'left';
71 }, 77 },
72 }); 78 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698