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 | 6 * @fileoverview |
7 * 'cr-settings-search-page' is the settings page containing search settings. | 7 * 'cr-settings-search-page' is the settings page containing search settings. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
11 * <iron-animated-pages> | 11 * <iron-animated-pages> |
12 * <cr-settings-search-page prefs="{{prefs}}"></cr-settings-search-page> | 12 * <cr-settings-search-page prefs="{{prefs}}"></cr-settings-search-page> |
13 * ... other pages ... | 13 * ... other pages ... |
14 * </iron-animated-pages> | 14 * </iron-animated-pages> |
15 * | 15 * |
16 * @group Chrome Settings Elements | 16 * @group Chrome Settings Elements |
17 * @element cr-settings-search-page | 17 * @element cr-settings-search-page |
18 */ | 18 */ |
19 Polymer({ | 19 Polymer({ |
20 is: 'cr-settings-search-page', | 20 is: 'cr-settings-search-page', |
21 | 21 |
22 properties: { | 22 properties: { |
23 /** | 23 /** |
24 * The current active route. | 24 * The current active route. |
25 */ | 25 */ |
26 currentRoute: { | 26 currentRoute: { |
27 type: Object, | 27 type: Array, |
dschuyler
2015/09/14 21:08:28
After chatting with Tommy, he suggested this shoul
stevenjb
2015/09/14 23:12:35
Yes, you're right, this came up elsewhere, I was p
| |
28 notify: true, | 28 notify: true, |
29 }, | 29 }, |
30 | 30 |
31 /** | 31 /** |
32 * List of default search engines available. | 32 * List of default search engines available. |
33 * @type {?Array<!SearchEngine>} | 33 * @type {?Array<!SearchEngine>} |
34 */ | 34 */ |
35 searchEngines: { | 35 searchEngines: { |
36 type: Array, | 36 type: Array, |
37 value: function() { return []; }, | 37 value: function() { return []; }, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 /** @private */ | 86 /** @private */ |
87 onSearchEnginesTap_: function() { | 87 onSearchEnginesTap_: function() { |
88 this.$.pages.setSubpageChain(['search-engines']); | 88 this.$.pages.setSubpageChain(['search-engines']); |
89 }, | 89 }, |
90 | 90 |
91 /** @private */ | 91 /** @private */ |
92 onSearchEnginesAdvancedTap_: function() { | 92 onSearchEnginesAdvancedTap_: function() { |
93 this.$.pages.setSubpageChain(['search-engines', 'search-engines-advanced']); | 93 this.$.pages.setSubpageChain(['search-engines', 'search-engines-advanced']); |
94 }, | 94 }, |
95 }); | 95 }); |
OLD | NEW |