Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/browser/resources/settings/search_engines_page/omnibox_extension_entry.js

Issue 2331423008: MD Settings: Search Engines: Move dropdown menu to search_engines_list (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
16 /** @private {!settings.SearchEnginesBrowserProxy} */
17 browserProxy_: Object,
18 },
19
20 /** @override */
21 created: function() {
22 this.browserProxy_ = settings.SearchEnginesBrowserProxyImpl.getInstance();
23 },
24
25 /** @private */
26 onManageTap_: function() {
27 this.closePopupMenu_();
28 this.browserProxy_.manageExtension(this.engine.extension.id);
29 },
30
31 /** @private */
32 onDisableTap_: function() {
33 this.closePopupMenu_();
34 this.browserProxy_.disableExtension(this.engine.extension.id);
35 },
36
37 /** @private */
38 closePopupMenu_: function() {
39 this.$$('iron-dropdown').close();
40 }, 15 },
41 16
42 /** 17 /**
43 * @param {string} url 18 * @param {string} url
44 * @return {string} A set of icon URLs. 19 * @return {string} A set of icon URLs.
45 * @private 20 * @private
46 */ 21 */
47 getIconSet_: function(url) { 22 getIconSet_: function(url) {
48 return cr.icon.getFavicon(url); 23 return cr.icon.getFavicon(url);
49 }, 24 },
25
26 /** @private */
27 onOpenMenuTap_() {
28 this.fire('open-menu', this.engine);
29 },
50 }); 30 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698