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('cr.ui', function() { | 5 cr.define('cr.ui', function() { |
6 /** @const */ var BubbleButton = cr.ui.BubbleButton; | 6 /** @const */ var BubbleButton = cr.ui.BubbleButton; |
7 | 7 |
8 /** | 8 /** |
9 * An indicator that can be placed on a UI element as a hint to the user that | 9 * An indicator that can be placed on a UI element as a hint to the user that |
10 * the value is controlled by some external entity such as policy or an | 10 * the value is controlled by some external entity such as policy or an |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 * - 'recommended': A value is recommended by policy. The user could | 110 * - 'recommended': A value is recommended by policy. The user could |
111 * override this recommendation but has not done so. | 111 * override this recommendation but has not done so. |
112 * - 'hasRecommendation': A value is recommended by policy. The user has | 112 * - 'hasRecommendation': A value is recommended by policy. The user has |
113 * overridden this recommendation. | 113 * overridden this recommendation. |
114 * - 'owner': A value is controlled by the owner of the device | 114 * - 'owner': A value is controlled by the owner of the device |
115 * (Chrome OS only). | 115 * (Chrome OS only). |
116 * - 'shared': A value belongs to the primary user but can be | 116 * - 'shared': A value belongs to the primary user but can be |
117 * modified (Chrome OS only). | 117 * modified (Chrome OS only). |
118 * - unset: The value is controlled by the user alone. | 118 * - unset: The value is controlled by the user alone. |
119 */ | 119 */ |
120 cr.defineProperty(ControlledIndicator, 'controlledBy', | 120 cr.defineProperty(ControlledIndicator, 'controlledBy', cr.PropertyKind.ATTR); |
121 cr.PropertyKind.ATTR); | |
122 | 121 |
123 return { | 122 return {ControlledIndicator: ControlledIndicator}; |
124 ControlledIndicator: ControlledIndicator | |
125 }; | |
126 }); | 123 }); |
OLD | NEW |