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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 value: false, | 47 value: false, |
48 }, | 48 }, |
49 | 49 |
50 /** | 50 /** |
51 * Dictionary defining page visibility. | 51 * Dictionary defining page visibility. |
52 * @private {!GuestModePageVisibility} | 52 * @private {!GuestModePageVisibility} |
53 */ | 53 */ |
54 pageVisibility_: Object, | 54 pageVisibility_: Object, |
55 | 55 |
56 /** @private */ | 56 /** @private */ |
| 57 showAndroidApps_: Boolean, |
| 58 |
| 59 /** @private */ |
57 lastSearchQuery_: { | 60 lastSearchQuery_: { |
58 type: String, | 61 type: String, |
59 value: '', | 62 value: '', |
60 } | 63 } |
61 }, | 64 }, |
62 | 65 |
63 listeners: { | 66 listeners: { |
64 'refresh-pref': 'onRefreshPref_', | 67 'refresh-pref': 'onRefreshPref_', |
65 }, | 68 }, |
66 | 69 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 searchPrediction: false, | 111 searchPrediction: false, |
109 networkPrediction: false, | 112 networkPrediction: false, |
110 }, | 113 }, |
111 passwordsAndForms: false, | 114 passwordsAndForms: false, |
112 downloads: { | 115 downloads: { |
113 googleDrive: false, | 116 googleDrive: false, |
114 }, | 117 }, |
115 </if> | 118 </if> |
116 }; | 119 }; |
117 } | 120 } |
| 121 |
| 122 this.showAndroidApps_ = loadTimeData.valueExists('androidAppsAllowed') && |
| 123 loadTimeData.getBoolean('androidAppsAllowed'); |
118 }, | 124 }, |
119 | 125 |
120 /** @override */ | 126 /** @override */ |
121 attached: function() { | 127 attached: function() { |
122 // Preload bold Roboto so it doesn't load and flicker the first time used. | 128 // Preload bold Roboto so it doesn't load and flicker the first time used. |
123 document.fonts.load('bold 12px Roboto'); | 129 document.fonts.load('bold 12px Roboto'); |
124 settings.setGlobalScrollTarget(this.$.headerPanel.scroller); | 130 settings.setGlobalScrollTarget(this.$.headerPanel.scroller); |
125 }, | 131 }, |
126 | 132 |
127 /** @param {!settings.Route} route */ | 133 /** @param {!settings.Route} route */ |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 onMenuButtonTap_: function() { | 195 onMenuButtonTap_: function() { |
190 this.$$('app-drawer').toggle(); | 196 this.$$('app-drawer').toggle(); |
191 }, | 197 }, |
192 | 198 |
193 /** @private */ | 199 /** @private */ |
194 directionDelegateChanged_: function() { | 200 directionDelegateChanged_: function() { |
195 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? | 201 this.$$('app-drawer').align = this.directionDelegate.isRtl() ? |
196 'right' : 'left'; | 202 'right' : 'left'; |
197 }, | 203 }, |
198 }); | 204 }); |
OLD | NEW |