Chromium Code Reviews| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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? | |
|
Devlin
2017/04/14 14:34:24
nit: Replace '?' with a '.' (we want to avoid "que
khmel
2017/04/14 15:39:19
Done.
| |
| 68 boolean allowed; | |
| 69 // Is the Play Store currently enabled? | |
|
Devlin
2017/04/14 14:34:24
For this one, too, s/Is/Whether, s/?/.
Whether the
khmel
2017/04/14 15:39:19
Done.
| |
| 70 boolean? enabled; | |
| 71 // Is the Play Store managed by policy? | |
| 72 boolean? managed; | |
|
Devlin
2017/04/14 14:34:24
ditto:
Whether the Play Store is managed by policy
khmel
2017/04/14 15:39:19
Done.
| |
| 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 Loading... | |
| 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 }; |
| OLD | NEW |