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({ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 /** | 52 /** |
53 * Opens the dialog and registers a listener for removing the dialog from the | 53 * Opens the dialog and registers a listener for removing the dialog from the |
54 * DOM once is closed. The listener is destroyed when the dialog is removed | 54 * DOM once is closed. The listener is destroyed when the dialog is removed |
55 * (because of 'restamp'). | 55 * (because of 'restamp'). |
56 * @private | 56 * @private |
57 */ | 57 */ |
58 openDialog_: function() { | 58 openDialog_: function() { |
59 this.showStartupUrlDialog_ = true; | 59 this.showStartupUrlDialog_ = true; |
60 this.async(function() { | 60 this.async(function() { |
61 var dialog = this.$$('settings-startup-url-dialog'); | 61 var dialog = this.$$('settings-startup-url-dialog'); |
62 dialog.addEventListener('iron-overlay-closed', function() { | 62 dialog.addEventListener('close', function() { |
63 this.showStartupUrlDialog_ = false; | 63 this.showStartupUrlDialog_ = false; |
64 this.startupUrlDialogModel_ = null; | 64 this.startupUrlDialogModel_ = null; |
65 }.bind(this)); | 65 }.bind(this)); |
66 }.bind(this)); | 66 }.bind(this)); |
67 }, | 67 }, |
68 | 68 |
69 /** @private */ | 69 /** @private */ |
70 onUseCurrentPagesTap_: function() { | 70 onUseCurrentPagesTap_: function() { |
71 this.browserProxy_.useCurrentPages(); | 71 this.browserProxy_.useCurrentPages(); |
72 }, | 72 }, |
73 }); | 73 }); |
OLD | NEW |