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

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

Issue 2801173002: arc: Provide API to control Play Store state from autotests (Closed)
Patch Set: nits Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // API for integration testing. To be used on test images with a test component 5 // API for integration testing. To be used on test images with a test component
6 // extension. 6 // extension.
7 namespace autotestPrivate { 7 namespace autotestPrivate {
8 8
9 dictionary LoginStatusDict { 9 dictionary LoginStatusDict {
10 // Are we logged in? 10 // Are we logged in?
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 dictionary Notification { 56 dictionary Notification {
57 DOMString id; 57 DOMString id;
58 DOMString type; 58 DOMString type;
59 DOMString title; 59 DOMString title;
60 DOMString message; 60 DOMString message;
61 long priority; 61 long priority;
62 long progress; 62 long progress;
63 }; 63 };
64 callback NotificationArrayCallback = void (Notification[] notifications); 64 callback NotificationArrayCallback = void (Notification[] notifications);
65 65
66 dictionary PlayStoreState {
67 // Whether the Play Store allowed for the current user.
68 boolean allowed;
69 // Whether the Play Store currently enabled.
70 boolean? enabled;
71 // Whether the Play Store managed by policy.
72 boolean? managed;
73 };
74 callback PlayStoreStateCallback = void (PlayStoreState result);
75
76 callback VoidCallback = void ();
77
66 interface Functions { 78 interface Functions {
67 // Logout of a user session. 79 // Logout of a user session.
68 static void logout(); 80 static void logout();
69 81
70 // Restart the browser. 82 // Restart the browser.
71 static void restart(); 83 static void restart();
72 84
73 // Shutdown the browser. 85 // Shutdown the browser.
74 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers. 86 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers.
75 static void shutdown(boolean force); 87 static void shutdown(boolean force);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // Set the mouse pointer sensitivity setting. 121 // Set the mouse pointer sensitivity setting.
110 // |value|: the pointer sensitivity setting index. 122 // |value|: the pointer sensitivity setting index.
111 static void setMouseSensitivity(long value); 123 static void setMouseSensitivity(long value);
112 124
113 // Swap the primary mouse button for left click. 125 // Swap the primary mouse button for left click.
114 // |right|: if set, swap the primary mouse button. 126 // |right|: if set, swap the primary mouse button.
115 static void setPrimaryButtonRight(boolean right); 127 static void setPrimaryButtonRight(boolean right);
116 128
117 // Get visible notifications on the system. 129 // Get visible notifications on the system.
118 static void getVisibleNotifications(NotificationArrayCallback callback); 130 static void getVisibleNotifications(NotificationArrayCallback callback);
131
132 // Get state of the Play Store.
133 static void getPlayStoreState(PlayStoreStateCallback callback);
134
135 // Enable/disable the Play Store.
136 // |enabled|: if set, enable the Play Store.
137 // |callback|: Called when the operation has completed.
138 static void setPlayStoreEnabled(boolean enabled, VoidCallback callback);
119 }; 139 };
120 }; 140 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698