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

Side by Side Diff: chrome/common/extensions/api/settings_private.idl

Issue 1342033002: Add tooltips to cr-policy-indicator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_521791_settings_policy_1
Patch Set: Feedback Created 5 years, 2 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 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 // Use the <code>chrome.settingsPrivate</code> API to get or set preferences 5 // Use the <code>chrome.settingsPrivate</code> API to get or set preferences
6 // from the settings UI. 6 // from the settings UI.
7 namespace settingsPrivate { 7 namespace settingsPrivate {
8 // Type of a pref. 8 // Type of a pref.
9 enum PrefType { BOOLEAN, NUMBER, STRING, URL, LIST }; 9 enum PrefType { BOOLEAN, NUMBER, STRING, URL, LIST };
10 10
(...skipping 16 matching lines...) Expand all
27 // The type of the pref (e.g., boolean, string, etc.). 27 // The type of the pref (e.g., boolean, string, etc.).
28 PrefType type; 28 PrefType type;
29 29
30 // The current value of the pref. 30 // The current value of the pref.
31 any value; 31 any value;
32 32
33 // The policy source of the pref; an undefined value means there is no 33 // The policy source of the pref; an undefined value means there is no
34 // policy. 34 // policy.
35 PolicySource? policySource; 35 PolicySource? policySource;
36 36
37 // The owner name if policySource == OWNER.
38 // The primary user name if policySource == PRIMARY_USER.
39 // The extension name if policySource == EXTENSION.
40 DOMString? policySourceName;
41
37 // The policy enforcement of the pref; must be specified if policySource is 42 // The policy enforcement of the pref; must be specified if policySource is
38 // also present. 43 // also present.
39 PolicyEnforcement? policyEnforcement; 44 PolicyEnforcement? policyEnforcement;
40 45
41 // The recommended value if policyEnforcement == RECOMMENDED. 46 // The recommended value if policyEnforcement == RECOMMENDED.
42 any? recommendedValue; 47 any? recommendedValue;
43 48
44 // The extension ID if policySource == EXTENSION. 49 // The extension ID if policySource == EXTENSION.
45 DOMString? extensionId; 50 DOMString? extensionId;
46 51
(...skipping 22 matching lines...) Expand all
69 static void getPref(DOMString name, GetPrefCallback callback); 74 static void getPref(DOMString name, GetPrefCallback callback);
70 }; 75 };
71 76
72 interface Events { 77 interface Events {
73 // Fired when a set of prefs has changed. 78 // Fired when a set of prefs has changed.
74 // 79 //
75 // |prefs| The prefs that changed. 80 // |prefs| The prefs that changed.
76 static void onPrefsChanged(PrefObject[] prefs); 81 static void onPrefsChanged(PrefObject[] prefs);
77 }; 82 };
78 }; 83 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698