| 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 * @fileoverview 'settings-search-engine-entry' is a component for showing a | 6 * @fileoverview 'settings-search-engine-entry' is a component for showing a |
| 7 * search engine with its name, domain and query URL. | 7 * search engine with its name, domain and query URL. |
| 8 */ | 8 */ |
| 9 Polymer({ | 9 Polymer({ |
| 10 is: 'settings-search-engine-entry', | 10 is: 'settings-search-engine-entry', |
| 11 | 11 |
| 12 behaviors: [FocusableIronListItemBehavior], | 12 behaviors: [FocusRowBehavior], |
| 13 | 13 |
| 14 properties: { | 14 properties: { |
| 15 /** @type {!SearchEngine} */ | 15 /** @type {!SearchEngine} */ |
| 16 engine: Object, | 16 engine: Object, |
| 17 | 17 |
| 18 /** @type {boolean} */ | 18 /** @type {boolean} */ |
| 19 isDefault: { | 19 isDefault: { |
| 20 reflectToAttribute: true, | 20 reflectToAttribute: true, |
| 21 type: Boolean, | 21 type: Boolean, |
| 22 computed: 'computeIsDefault_(engine)' | 22 computed: 'computeIsDefault_(engine)' |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 }.bind(this)); | 109 }.bind(this)); |
| 110 }.bind(this)); | 110 }.bind(this)); |
| 111 }, | 111 }, |
| 112 | 112 |
| 113 /** @private */ | 113 /** @private */ |
| 114 onMakeDefaultTap_: function() { | 114 onMakeDefaultTap_: function() { |
| 115 this.closePopupMenu_(); | 115 this.closePopupMenu_(); |
| 116 this.browserProxy_.setDefaultSearchEngine(this.engine.modelIndex); | 116 this.browserProxy_.setDefaultSearchEngine(this.engine.modelIndex); |
| 117 }, | 117 }, |
| 118 }); | 118 }); |
| OLD | NEW |