| 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 'settings-startup-urls-page' is the settings page | 6 * @fileoverview 'settings-startup-urls-page' is the settings page |
| 7 * containing the urls that will be opened when chrome is started. | 7 * containing the urls that will be opened when chrome is started. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'settings-startup-urls-page', | 11 is: 'settings-startup-urls-page', |
| 12 | 12 |
| 13 behaviors: [CrScrollableBehavior, WebUIListenerBehavior], | 13 behaviors: [CrScrollableBehavior, WebUIListenerBehavior], |
| 14 | 14 |
| 15 properties: { | 15 properties: { |
| 16 prefs: Object, |
| 17 |
| 16 /** @type {settings.StartupUrlsPageBrowserProxy} */ | 18 /** @type {settings.StartupUrlsPageBrowserProxy} */ |
| 17 browserProxy_: Object, | 19 browserProxy_: Object, |
| 18 | 20 |
| 19 /** | 21 /** |
| 20 * Pages to load upon browser startup. | 22 * Pages to load upon browser startup. |
| 21 * @private {!Array<!StartupPageInfo>} | 23 * @private {!Array<!StartupPageInfo>} |
| 22 */ | 24 */ |
| 23 startupPages_: Array, | 25 startupPages_: Array, |
| 24 | 26 |
| 25 /** @private */ | 27 /** @private */ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 destroyUrlDialog_: function() { | 60 destroyUrlDialog_: function() { |
| 59 this.showStartupUrlDialog_ = false; | 61 this.showStartupUrlDialog_ = false; |
| 60 this.startupUrlDialogModel_ = null; | 62 this.startupUrlDialogModel_ = null; |
| 61 }, | 63 }, |
| 62 | 64 |
| 63 /** @private */ | 65 /** @private */ |
| 64 onUseCurrentPagesTap_: function() { | 66 onUseCurrentPagesTap_: function() { |
| 65 this.browserProxy_.useCurrentPages(); | 67 this.browserProxy_.useCurrentPages(); |
| 66 }, | 68 }, |
| 67 }); | 69 }); |
| OLD | NEW |