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-omnibox-extension-entry' is a component for showing | 6 * @fileoverview 'settings-omnibox-extension-entry' is a component for showing |
7 * an omnibox extension with its name and keyword. | 7 * an omnibox extension with its name and keyword. |
8 */ | 8 */ |
9 Polymer({ | 9 Polymer({ |
10 is: 'settings-omnibox-extension-entry', | 10 is: 'settings-omnibox-extension-entry', |
11 | 11 |
12 properties: { | 12 properties: { |
13 /** @type {!SearchEngine} */ | 13 /** @type {!SearchEngine} */ |
14 engine: Object, | 14 engine: Object, |
15 }, | 15 }, |
16 | 16 |
| 17 behaviors: [FocusRowBehavior], |
| 18 |
17 /** @private {?settings.ExtensionControlBrowserProxy} */ | 19 /** @private {?settings.ExtensionControlBrowserProxy} */ |
18 browserProxy_: null, | 20 browserProxy_: null, |
19 | 21 |
20 /** @override */ | 22 /** @override */ |
21 created: function() { | 23 created: function() { |
22 this.browserProxy_ = | 24 this.browserProxy_ = |
23 settings.ExtensionControlBrowserProxyImpl.getInstance(); | 25 settings.ExtensionControlBrowserProxyImpl.getInstance(); |
24 }, | 26 }, |
25 | 27 |
26 /** @private */ | 28 /** @private */ |
(...skipping 22 matching lines...) Expand all Loading... |
49 return cr.icon.getFavicon(url); | 51 return cr.icon.getFavicon(url); |
50 }, | 52 }, |
51 | 53 |
52 /** @private */ | 54 /** @private */ |
53 onDotsTap_: function() { | 55 onDotsTap_: function() { |
54 /** @type {!CrActionMenuElement} */ ( | 56 /** @type {!CrActionMenuElement} */ ( |
55 this.$$('dialog[is=cr-action-menu]')).showAt( | 57 this.$$('dialog[is=cr-action-menu]')).showAt( |
56 assert(this.$$('paper-icon-button'))); | 58 assert(this.$$('paper-icon-button'))); |
57 }, | 59 }, |
58 }); | 60 }); |
OLD | NEW |