| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * 'android-apps-page' is the settings page for enabling android apps. | 7 * 'android-apps-page' is the settings page for enabling android apps. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'settings-android-apps-page', | 11 is: 'settings-android-apps-page', |
| 12 | 12 |
| 13 behaviors: [I18nBehavior, PrefsBehavior], | 13 behaviors: [I18nBehavior, PrefsBehavior], |
| 14 | 14 |
| 15 properties: { | 15 properties: { |
| 16 /** Preferences state. */ | 16 /** Preferences state. */ |
| 17 prefs: { | 17 prefs: { |
| 18 type: Object, | 18 type: Object, |
| 19 notify: true, | 19 notify: true, |
| 20 }, | 20 }, |
| 21 | 21 |
| 22 /** @private {!AndroidAppsInfo|undefined} */ | 22 /** @private {!AndroidAppsInfo|undefined} */ |
| 23 androidAppsInfo_: Object, | 23 androidAppsInfo_: Object, |
| 24 |
| 25 /** @private {!Map<string, string>} */ |
| 26 focusConfig_: { |
| 27 type: Object, |
| 28 value: function() { |
| 29 var map = new Map(); |
| 30 map.set( |
| 31 settings.Route.ANDROID_APPS_DETAILS.path, |
| 32 '#android-apps .subpage-arrow'); |
| 33 return map; |
| 34 }, |
| 35 }, |
| 24 }, | 36 }, |
| 25 | 37 |
| 26 /** @private {?settings.AndroidAppsBrowserProxy} */ | 38 /** @private {?settings.AndroidAppsBrowserProxy} */ |
| 27 browserProxy_: null, | 39 browserProxy_: null, |
| 28 | 40 |
| 29 /** @override */ | 41 /** @override */ |
| 30 created: function() { | 42 created: function() { |
| 31 this.browserProxy_ = settings.AndroidAppsBrowserProxyImpl.getInstance(); | 43 this.browserProxy_ = settings.AndroidAppsBrowserProxyImpl.getInstance(); |
| 32 }, | 44 }, |
| 33 | 45 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 53 this.setPrefValue('arc.enabled', true); | 65 this.setPrefValue('arc.enabled', true); |
| 54 event.stopPropagation(); | 66 event.stopPropagation(); |
| 55 }, | 67 }, |
| 56 | 68 |
| 57 /** @private */ | 69 /** @private */ |
| 58 onSubpageTap_: function() { | 70 onSubpageTap_: function() { |
| 59 if (this.androidAppsInfo_.appReady) | 71 if (this.androidAppsInfo_.appReady) |
| 60 settings.navigateTo(settings.Route.ANDROID_APPS_DETAILS); | 72 settings.navigateTo(settings.Route.ANDROID_APPS_DETAILS); |
| 61 }, | 73 }, |
| 62 }); | 74 }); |
| OLD | NEW |