OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 /** @const */ var ControlledSettingIndicator = | 6 /** @const */ var ControlledSettingIndicator = |
7 options.ControlledSettingIndicator; | 7 options.ControlledSettingIndicator; |
8 | 8 |
9 /** | 9 /** |
10 * A variant of the {@link ControlledSettingIndicator} that shows the status | 10 * A variant of the {@link ControlledSettingIndicator} that shows the status |
11 * of the hotword search setting, including a bubble to show setup errors | 11 * of the hotword search setting, including a bubble to show setup errors |
12 * (such as failures to download extension resources). | 12 * (such as failures to download extension resources). |
13 * @constructor | 13 * @constructor |
14 * @extends {options.ControlledSettingIndicator} | 14 * @extends {options.ControlledSettingIndicator} |
15 */ | 15 */ |
16 var HotwordSearchSettingIndicator = cr.ui.define('span'); | 16 var HotwordSearchSettingIndicator = cr.ui.define('span'); |
17 | 17 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 container.appendChild(textDiv); | 109 container.appendChild(textDiv); |
110 | 110 |
111 var content = document.createElement('div'); | 111 var content = document.createElement('div'); |
112 content.appendChild(container); | 112 content.appendChild(container); |
113 | 113 |
114 PageManager.showBubble(content, this.image, this, this.location); | 114 PageManager.showBubble(content, this.image, this, this.location); |
115 }, | 115 }, |
116 }; | 116 }; |
117 | 117 |
118 // Export | 118 // Export |
119 return { | 119 return {HotwordSearchSettingIndicator: HotwordSearchSettingIndicator}; |
120 HotwordSearchSettingIndicator: HotwordSearchSettingIndicator | |
121 }; | |
122 }); | 120 }); |
OLD | NEW |