Chromium Code Reviews| 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 settings-startup-url-entry represents a UI component that | 6 * @fileoverview settings-startup-url-entry represents a UI component that |
| 7 * displayes a URL that is loaded during startup. It includes a menu that allows | 7 * displayes a URL that is loaded during startup. It includes a menu that allows |
| 8 * the user to edit/remove the entry. | 8 * the user to edit/remove the entry. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 cr.exportPath('settings'); | 11 cr.exportPath('settings'); |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * The name of the event fired from this element when the "Edit" option is | 14 * The name of the event fired from this element when the "Edit" option is |
| 15 * tapped. | 15 * tapped. |
| 16 * @const {string} | 16 * @const {string} |
| 17 */ | 17 */ |
| 18 settings.EDIT_STARTUP_URL_EVENT = 'edit-startup-url'; | 18 settings.EDIT_STARTUP_URL_EVENT = 'edit-startup-url'; |
| 19 | 19 |
| 20 Polymer({ | 20 Polymer({ |
| 21 is: 'settings-startup-url-entry', | 21 is: 'settings-startup-url-entry', |
|
Dan Beam
2017/03/18 00:09:56
\n
scottchen
2017/03/18 01:05:47
That's weird, I had \n and `git cl format --js` re
| |
| 22 | 22 behaviors: [FocusRowBehavior], |
|
Dan Beam
2017/03/18 00:09:56
\n
scottchen
2017/03/18 01:05:47
Done.
| |
| 23 properties: { | 23 properties: { |
| 24 editable: { | 24 editable: { |
| 25 type: Boolean, | 25 type: Boolean, |
| 26 reflectToAttribute: true, | 26 reflectToAttribute: true, |
| 27 }, | 27 }, |
| 28 | 28 |
| 29 /** @type {!StartupPageInfo} */ | 29 /** @type {!StartupPageInfo} */ |
| 30 model: Object, | 30 model: Object, |
| 31 }, | 31 }, |
| 32 | 32 |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 56 this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model); | 56 this.fire(settings.EDIT_STARTUP_URL_EVENT, this.model); |
| 57 }, | 57 }, |
| 58 | 58 |
| 59 /** @private */ | 59 /** @private */ |
| 60 onDotsTap_: function() { | 60 onDotsTap_: function() { |
| 61 var actionMenu = /** @type {!CrActionMenuElement} */( | 61 var actionMenu = /** @type {!CrActionMenuElement} */( |
| 62 this.$$('#menu').get()); | 62 this.$$('#menu').get()); |
| 63 actionMenu.showAt(assert(this.$$('#dots'))); | 63 actionMenu.showAt(assert(this.$$('#dots'))); |
| 64 }, | 64 }, |
| 65 }); | 65 }); |
| OLD | NEW |