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', |
(...skipping 18 matching lines...) Expand all Loading... |
29 }, | 29 }, |
30 | 30 |
31 /** @private */ | 31 /** @private */ |
32 onDisableTap_: function() { | 32 onDisableTap_: function() { |
33 this.closePopupMenu_(); | 33 this.closePopupMenu_(); |
34 this.browserProxy_.disableExtension(this.engine.extension.id); | 34 this.browserProxy_.disableExtension(this.engine.extension.id); |
35 }, | 35 }, |
36 | 36 |
37 /** @private */ | 37 /** @private */ |
38 closePopupMenu_: function() { | 38 closePopupMenu_: function() { |
39 this.$$('iron-dropdown').close(); | 39 this.$$('dialog[is=settings-action-menu]').close(); |
40 }, | 40 }, |
41 | 41 |
42 /** | 42 /** |
43 * @param {string} url | 43 * @param {string} url |
44 * @return {string} A set of icon URLs. | 44 * @return {string} A set of icon URLs. |
45 * @private | 45 * @private |
46 */ | 46 */ |
47 getIconSet_: function(url) { | 47 getIconSet_: function(url) { |
48 return cr.icon.getFavicon(url); | 48 return cr.icon.getFavicon(url); |
49 }, | 49 }, |
| 50 |
| 51 /** @private */ |
| 52 onDotsTap_: function() { |
| 53 /** @type {!SettingsActionMenuElement} */ ( |
| 54 this.$$('dialog[is=settings-action-menu]')).showAt( |
| 55 assert(this.$$('paper-icon-button'))); |
| 56 }, |
50 }); | 57 }); |
OLD | NEW |