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 * @typedef {{ | |
7 * 'title': string, | |
8 * 'tooltip': string, | |
9 * 'url': string | |
10 * }} | |
11 */ | |
12 var StartupPageInfo; | |
13 | |
14 /** | |
15 * @fileoverview 'settings-startup-urls-page' is the settings page | 6 * @fileoverview 'settings-startup-urls-page' is the settings page |
16 * containing the urls that will be opened when chrome is started. | 7 * containing the urls that will be opened when chrome is started. |
17 */ | 8 */ |
| 9 |
| 10 /** |
| 11 * @typedef {{ |
| 12 * title: string, |
| 13 * tooltip: string, |
| 14 * url: string |
| 15 * }} |
| 16 */ |
| 17 var StartupPageInfo; |
| 18 |
18 Polymer({ | 19 Polymer({ |
19 is: 'settings-startup-urls-page', | 20 is: 'settings-startup-urls-page', |
20 | 21 |
21 behaviors: [WebUIListenerBehavior], | 22 behaviors: [WebUIListenerBehavior], |
22 | 23 |
23 properties: { | 24 properties: { |
24 /** @type {settings.StartupUrlsPageBrowserProxy} */ | 25 /** @type {settings.StartupUrlsPageBrowserProxy} */ |
25 browserProxy_: Object, | 26 browserProxy_: Object, |
26 | 27 |
27 /** | 28 /** |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 }, | 74 }, |
74 | 75 |
75 /** | 76 /** |
76 * @param {!{model: !{index: number}}} e | 77 * @param {!{model: !{index: number}}} e |
77 * @private | 78 * @private |
78 */ | 79 */ |
79 onRemoveUrlTap_: function(e) { | 80 onRemoveUrlTap_: function(e) { |
80 this.browserProxy_.removeStartupPage(e.model.index); | 81 this.browserProxy_.removeStartupPage(e.model.index); |
81 }, | 82 }, |
82 }); | 83 }); |
OLD | NEW |