* indicator that the value is controlled by some external entity such as
* policy or an extension.
* @constructor
- * @extends {HTMLSpanElement}
+ * @extends {cr.ui.BubbleButton}
*/
var ControlledSettingIndicator = cr.ui.define('span');
Preferences.clearPref(this.pref, !this.dialogPref);
},
- /* Handle changes to the associated pref by hiding any currently visible
+ /**
+ * Handle changes to the associated pref by hiding any currently visible
* bubble and updating the controlledBy property.
* @param {Event} event Pref change event.
*/
/**
* Open or close a bubble with further information about the pref.
- * @private
+ * @override
*/
- toggleBubble_: function() {
+ toggleBubble: function() {
if (this.showingBubble) {
PageManager.hideBubble();
} else {
/**
* The name of the associated preference.
- * @type {string}
*/
cr.defineProperty(ControlledSettingIndicator, 'pref', cr.PropertyKind.ATTR);
* only actually committed when the user confirms the dialog. If the user
* cancels the dialog instead, the changes are rolled back in the settings UI
* and never committed.
- * @type {boolean}
*/
cr.defineProperty(ControlledSettingIndicator, 'dialogPref',
cr.PropertyKind.BOOL_ATTR);
/**
* The status of the associated preference:
- * - 'policy': A specific value is enfoced by policy.
+ * - 'policy': A specific value is enforced by policy.
* - 'extension': A specific value is enforced by an extension.
* - 'recommended': A value is recommended by policy. The user could
* override this recommendation but has not done so.
* - 'shared': A value belongs to the primary user but can be
* modified (Chrome OS only).
* - unset: The value is controlled by the user alone.
- * @type {string}
*/
cr.defineProperty(ControlledSettingIndicator, 'controlledBy',
cr.PropertyKind.ATTR);