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

Side by Side Diff: chrome/browser/resources/options/hotword_search_setting_indicator.js

Issue 517413002: Compile chrome://settings, part 1: remove all warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: s/event/Event/ Created 6 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 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 {HTMLSpanElement} 14 * @extends {HTMLSpanElement}
15 */ 15 */
16 var HotwordSearchSettingIndicator = cr.ui.define('span'); 16 var HotwordSearchSettingIndicator = cr.ui.define('span');
17 17
18 HotwordSearchSettingIndicator.prototype = { 18 HotwordSearchSettingIndicator.prototype = {
19 __proto__: ControlledSettingIndicator.prototype, 19 __proto__: ControlledSettingIndicator.prototype,
20 20
21 /** 21 /**
22 * Decorates the base element to show the proper icon. 22 * Decorates the base element to show the proper icon.
23 * @override 23 * @override
24 */ 24 */
25 decorate: function() { 25 decorate: function() {
26 ControlledSettingIndicator.prototype.decorate.call(this); 26 ControlledSettingIndicator.prototype.decorate.call(this);
27 this.hidden = true; 27 this.hidden = true;
28 }, 28 },
29 29
30 /* Handle changes to the associated pref by hiding any currently visible 30 /**
31 * Handle changes to the associated pref by hiding any currently visible
31 * bubble. 32 * bubble.
32 * @param {Event} event Pref change event. 33 * @param {Event} event Pref change event.
33 * @override 34 * @override
34 */ 35 */
35 handlePrefChange: function(event) { 36 handlePrefChange: function(event) {
36 PageManager.hideBubble(); 37 PageManager.hideBubble();
37 }, 38 },
38 39
39 /** 40 /**
40 * Returns the current error. 41 * Returns the current error.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 99
99 PageManager.showBubble(content, this.image, this, this.location); 100 PageManager.showBubble(content, this.image, this, this.location);
100 }, 101 },
101 }; 102 };
102 103
103 // Export 104 // Export
104 return { 105 return {
105 HotwordSearchSettingIndicator: HotwordSearchSettingIndicator 106 HotwordSearchSettingIndicator: HotwordSearchSettingIndicator
106 }; 107 };
107 }); 108 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/hotword_confirm_dialog.js ('k') | chrome/browser/resources/options/import_data_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698