OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 window.addEventListener('popstate', function(e) { | 86 window.addEventListener('popstate', function(e) { |
87 this.$.drawer.closeDrawer(); | 87 this.$.drawer.closeDrawer(); |
88 }.bind(this)); | 88 }.bind(this)); |
89 | 89 |
90 if (loadTimeData.getBoolean('isGuest')) { | 90 if (loadTimeData.getBoolean('isGuest')) { |
91 this.pageVisibility_ = { | 91 this.pageVisibility_ = { |
92 people: false, | 92 people: false, |
93 onStartup: false, | 93 onStartup: false, |
94 reset: false, | 94 reset: false, |
95 <if expr="not chromeos"> | 95 // <if expr="not chromeos"> |
96 appearance: false, | 96 appearance: false, |
97 defaultBrowser: false, | 97 defaultBrowser: false, |
98 advancedSettings: false, | 98 advancedSettings: false, |
99 </if> | 99 // </if> |
100 <if expr="chromeos"> | 100 // <if expr="chromeos"> |
101 appearance: { | 101 appearance: { |
102 setWallpaper: false, | 102 setWallpaper: false, |
103 setTheme: false, | 103 setTheme: false, |
104 homeButton: false, | 104 homeButton: false, |
105 bookmarksBar: false, | 105 bookmarksBar: false, |
106 pageZoom: false, | 106 pageZoom: false, |
107 }, | 107 }, |
108 advancedSettings: true, | 108 advancedSettings: true, |
109 privacy: { | 109 privacy: { |
110 searchPrediction: false, | 110 searchPrediction: false, |
111 networkPrediction: false, | 111 networkPrediction: false, |
112 }, | 112 }, |
113 passwordsAndForms: false, | 113 passwordsAndForms: false, |
114 downloads: { | 114 downloads: { |
115 googleDrive: false, | 115 googleDrive: false, |
116 }, | 116 }, |
117 </if> | 117 // </if> |
118 }; | 118 }; |
119 } | 119 } |
120 | 120 |
121 this.showAndroidApps_ = loadTimeData.valueExists('androidAppsAllowed') && | 121 this.showAndroidApps_ = loadTimeData.valueExists('androidAppsAllowed') && |
122 loadTimeData.getBoolean('androidAppsAllowed'); | 122 loadTimeData.getBoolean('androidAppsAllowed'); |
123 }, | 123 }, |
124 | 124 |
125 /** @override */ | 125 /** @override */ |
126 attached: function() { | 126 attached: function() { |
127 // Preload bold Roboto so it doesn't load and flicker the first time used. | 127 // Preload bold Roboto so it doesn't load and flicker the first time used. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 onMenuButtonTap_: function() { | 194 onMenuButtonTap_: function() { |
195 this.$.drawer.toggle(); | 195 this.$.drawer.toggle(); |
196 }, | 196 }, |
197 | 197 |
198 /** @private */ | 198 /** @private */ |
199 directionDelegateChanged_: function() { | 199 directionDelegateChanged_: function() { |
200 this.$.drawer.align = this.directionDelegate.isRtl() ? | 200 this.$.drawer.align = this.directionDelegate.isRtl() ? |
201 'right' : 'left'; | 201 'right' : 'left'; |
202 }, | 202 }, |
203 }); | 203 }); |
OLD | NEW |