| 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-default-browser-page' is the settings page that contains | 7 * 'settings-default-browser-page' is the settings page that contains |
| 8 * settings to change the default browser (i.e. which the OS will open). | 8 * settings to change the default browser (i.e. which the OS will open). |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'settings-default-browser-page', | 11 is: 'settings-default-browser-page', |
| 12 | 12 |
| 13 properties: { | 13 properties: { |
| 14 /** | 14 /** |
| 15 * The current active route. | |
| 16 */ | |
| 17 currentRoute: { | |
| 18 type: Object, | |
| 19 notify: true, | |
| 20 }, | |
| 21 | |
| 22 /** | |
| 23 * A message about whether Chrome is the default browser. | 15 * A message about whether Chrome is the default browser. |
| 24 */ | 16 */ |
| 25 message_: { | 17 message_: { |
| 26 type: String, | 18 type: String, |
| 27 }, | 19 }, |
| 28 | 20 |
| 29 /** | 21 /** |
| 30 * Indicates if the next updateDefaultBrowserState_ invocation is following | 22 * Indicates if the next updateDefaultBrowserState_ invocation is following |
| 31 * a call to SettingsDefaultBrowser.setAsDefaultBrowser(). | 23 * a call to SettingsDefaultBrowser.setAsDefaultBrowser(). |
| 32 */ | 24 */ |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 canBeDefault ? 'defaultBrowserDefault' : 'defaultBrowserUnknown'); | 76 canBeDefault ? 'defaultBrowserDefault' : 'defaultBrowserUnknown'); |
| 85 } | 77 } |
| 86 }, | 78 }, |
| 87 | 79 |
| 88 /** @private */ | 80 /** @private */ |
| 89 onSetDefaultBrowserTap_: function() { | 81 onSetDefaultBrowserTap_: function() { |
| 90 this.startedSetAsDefault_ = true; | 82 this.startedSetAsDefault_ = true; |
| 91 chrome.send('SettingsDefaultBrowser.setAsDefaultBrowser'); | 83 chrome.send('SettingsDefaultBrowser.setAsDefaultBrowser'); |
| 92 }, | 84 }, |
| 93 }); | 85 }); |
| OLD | NEW |