OLD | NEW |
---|---|
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 | 55 |
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 callback EnabledCallback = void (boolean enabled); | |
Devlin
2017/04/10 21:53:54
nit: just use one:
callback BooleanCallback = void
khmel
2017/04/11 21:16:28
Done.
| |
66 callback ManagedCallback = void (boolean managed); | |
65 | 67 |
66 interface Functions { | 68 interface Functions { |
67 // Logout of a user session. | 69 // Logout of a user session. |
68 static void logout(); | 70 static void logout(); |
69 | 71 |
70 // Restart the browser. | 72 // Restart the browser. |
71 static void restart(); | 73 static void restart(); |
72 | 74 |
73 // Shutdown the browser. | 75 // Shutdown the browser. |
74 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers. | 76 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 // Set the mouse pointer sensitivity setting. | 111 // Set the mouse pointer sensitivity setting. |
110 // |value|: the pointer sensitivity setting index. | 112 // |value|: the pointer sensitivity setting index. |
111 static void setMouseSensitivity(long value); | 113 static void setMouseSensitivity(long value); |
112 | 114 |
113 // Swap the primary mouse button for left click. | 115 // Swap the primary mouse button for left click. |
114 // |right|: if set, swap the primary mouse button. | 116 // |right|: if set, swap the primary mouse button. |
115 static void setPrimaryButtonRight(boolean right); | 117 static void setPrimaryButtonRight(boolean right); |
116 | 118 |
117 // Get visible notifications on the system. | 119 // Get visible notifications on the system. |
118 static void getVisibleNotifications(NotificationArrayCallback callback); | 120 static void getVisibleNotifications(NotificationArrayCallback callback); |
121 | |
122 // Return true if Play Store is currently enabled on device. | |
Devlin
2017/04/10 21:53:54
Function comments should be descriptive, not imper
khmel
2017/04/11 21:16:28
Tried to rephrase.
| |
123 static void isPlayStoreEnabled(EnabledCallback callback); | |
124 | |
125 // Return true in callback if Play Store is managed by policy. | |
126 static void isPlayStoreManaged(ManagedCallback callback); | |
stevenjb
2017/04/11 15:58:56
Do we anticipate any additional play store related
khmel
2017/04/11 21:16:28
I think this is not very applicable for current si
stevenjb
2017/04/11 21:36:05
I meant that we can return a dictionary:
dictiona
khmel
2017/04/13 00:15:30
Sorry, did not get you that time. Yes, this sounds
| |
127 | |
128 // Enable or disable Play Store on device. Return true in callback if Play | |
Devlin
2017/04/10 21:53:54
This seems like the result is basically just wheth
stevenjb
2017/04/11 15:58:56
Agreed. Specifically, make this a void callback an
khmel
2017/04/11 21:16:28
Good points, thanks
| |
129 // Store was enabled. | |
130 static void setPlayStoreEnabled(boolean enabled, EnabledCallback callback); | |
119 }; | 131 }; |
120 }; | 132 }; |
OLD | NEW |