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

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

Issue 2866463002: Revert of MD Settings: Elim SettingsSubpageBrowsertest and SettingsPageVisibility (Closed)
Patch Set: Created 3 years, 7 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 30 matching lines...) Expand all
41 notify: true, 41 notify: true,
42 }, 42 },
43 43
44 /** @private {boolean} */ 44 /** @private {boolean} */
45 toolbarSpinnerActive_: { 45 toolbarSpinnerActive_: {
46 type: Boolean, 46 type: Boolean,
47 value: false, 47 value: false,
48 }, 48 },
49 49
50 /** 50 /**
51 * Dictionary defining page visibility. Pages are hidden when their entry 51 * Dictionary defining page visibility.
52 * is set to *false*. i.e. visibility defaults to true. 52 * This is only set when in guest mode. All pages are visible when not set
53 * @private {!PageVisibility} 53 * because polymer only notifies after a property is set.
54 * @private {!GuestModePageVisibility}
54 */ 55 */
55 pageVisibility_: { 56 pageVisibility_: Object,
56 type: Object, 57
57 value: function() { 58 /** @private */
58 return {}; 59 showAndroidApps_: Boolean,
59 },
60 },
61 60
62 /** @private */ 61 /** @private */
63 lastSearchQuery_: { 62 lastSearchQuery_: {
64 type: String, 63 type: String,
65 value: '', 64 value: '',
66 } 65 }
67 }, 66 },
68 67
69 listeners: { 68 listeners: {
70 'refresh-pref': 'onRefreshPref_', 69 'refresh-pref': 'onRefreshPref_',
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 searchPrediction: false, 149 searchPrediction: false,
151 networkPrediction: false, 150 networkPrediction: false,
152 }, 151 },
153 downloads: { 152 downloads: {
154 googleDrive: false, 153 googleDrive: false,
155 }, 154 },
156 // </if> 155 // </if>
157 }; 156 };
158 } 157 }
159 158
160 // <if expr="chromeos"> 159 this.showAndroidApps_ = loadTimeData.valueExists('androidAppsAllowed') &&
161 this.pageVisibility_.androidApps =
162 loadTimeData.valueExists('androidAppsAllowed') &&
163 loadTimeData.getBoolean('androidAppsAllowed'); 160 loadTimeData.getBoolean('androidAppsAllowed');
164 // </if>
165 }, 161 },
166 162
167 /** @private {?IntersectionObserver} */ 163 /** @private {?IntersectionObserver} */
168 intersectionObserver_: null, 164 intersectionObserver_: null,
169 165
170 /** @override */ 166 /** @override */
171 attached: function() { 167 attached: function() {
172 document.documentElement.classList.remove('loading'); 168 document.documentElement.classList.remove('loading');
173 169
174 setTimeout(function() { 170 setTimeout(function() {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 this.$.container.removeAttribute('tabindex'); 276 this.$.container.removeAttribute('tabindex');
281 }.bind(this)); 277 }.bind(this));
282 }, 278 },
283 279
284 /** @private */ 280 /** @private */
285 directionDelegateChanged_: function() { 281 directionDelegateChanged_: function() {
286 this.$.drawer.align = this.directionDelegate.isRtl() ? 282 this.$.drawer.align = this.directionDelegate.isRtl() ?
287 'right' : 'left'; 283 'right' : 'left';
288 }, 284 },
289 }); 285 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698