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-engines-page' is the settings page | 6 * @fileoverview 'settings-search-engines-page' is the settings page |
7 * containing search engines settings. | 7 * containing search engines settings. |
8 */ | 8 */ |
9 Polymer({ | 9 Polymer({ |
10 is: 'settings-search-engines-page', | 10 is: 'settings-search-engines-page', |
(...skipping 24 matching lines...) Expand all Loading... |
35 return []; | 35 return []; |
36 } | 36 } |
37 }, | 37 }, |
38 | 38 |
39 /** | 39 /** |
40 * Needed by GlobalScrollTargetBehavior. | 40 * Needed by GlobalScrollTargetBehavior. |
41 * @override | 41 * @override |
42 */ | 42 */ |
43 subpageRoute: { | 43 subpageRoute: { |
44 type: Object, | 44 type: Object, |
45 value: settings.Route.SEARCH_ENGINES, | 45 value: settings.routes.SEARCH_ENGINES, |
46 }, | 46 }, |
47 | 47 |
48 /** @private {boolean} */ | 48 /** @private {boolean} */ |
49 showAddSearchEngineDialog_: Boolean, | 49 showAddSearchEngineDialog_: Boolean, |
50 | 50 |
51 /** @private {boolean} */ | 51 /** @private {boolean} */ |
52 showExtensionsList_: { | 52 showExtensionsList_: { |
53 type: Boolean, | 53 type: Boolean, |
54 computed: 'computeShowExtensionsList_(extensions)', | 54 computed: 'computeShowExtensionsList_(extensions)', |
55 }, | 55 }, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 cr.ui.focusWithoutInk(assert(this.$.addSearchEngine)); | 115 cr.ui.focusWithoutInk(assert(this.$.addSearchEngine)); |
116 }.bind(this)); | 116 }.bind(this)); |
117 }.bind(this)); | 117 }.bind(this)); |
118 }, | 118 }, |
119 | 119 |
120 /** @private */ | 120 /** @private */ |
121 computeShowExtensionsList_: function() { | 121 computeShowExtensionsList_: function() { |
122 return this.extensions.length > 0; | 122 return this.extensions.length > 0; |
123 }, | 123 }, |
124 }); | 124 }); |
OLD | NEW |