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
3 // found in the LICENSE file.
5 // API for integration testing. To be used on test images with a test component
7 namespace autotestPrivate
{
9 dictionary LoginStatusDict
{
12 // Is the logged-in user the owner?
14 // Is the screen locked?
15 boolean isScreenLocked
;
17 // Is the logged-in user a regular user?
18 boolean isRegularUser
;
19 // Are we logged into the guest account?
21 // Are we logged into kiosk-app mode?
25 DOMString displayEmail
;
26 // User image: 'file', 'profile' or a number.
29 callback LoginStatusCallback
= void (LoginStatusDict status
);
31 dictionary ExtensionInfoDict
{
36 DOMString description
;
37 DOMString backgroundUrl
;
40 DOMString
[] hostPermissions
;
41 DOMString
[] effectiveHostPermissions
;
42 DOMString
[] apiPermissions
;
46 boolean isUserInstalled
;
48 boolean allowedInIncognito
;
49 boolean hasPageAction
;
51 dictionary ExtensionsInfoArray
{
52 ExtensionInfoDict
[] extensions
;
54 callback ExtensionsInfoCallback
= void (ExtensionsInfoArray info
);
57 // Logout of a user session.
60 // Restart the browser.
61 static
void restart
();
63 // Shutdown the browser.
64 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers.
65 static
void shutdown
(boolean force
);
68 static
void loginStatus
(LoginStatusCallback
callback);
71 static
void lockScreen
();
73 // Get info about installed extensions.
74 static
void getExtensionsInfo
(ExtensionsInfoCallback
callback);
76 // Simulates a memory access bug for asan testing.
77 static
void simulateAsanMemoryBug
();
79 // Set the touchpad pointer sensitivity setting.
80 // |value|: the pointer sensitivity setting index.
81 static
void setTouchpadSensitivity
(long value
);
83 // Turn on/off tap-to-click for the touchpad.
84 // |enabled|: if set, enable tap-to-click.
85 static
void setTapToClick
(boolean enabled
);
87 // Turn on/off three finger click for the touchpad.
88 // |enabled|: if set, enable three finger click.
89 static
void setThreeFingerClick
(boolean enabled
);
91 // Turn on/off tap dragging for the touchpad.
92 // |enabled|: if set, enable tap dragging.
93 static
void setTapDragging
(boolean enabled
);
95 // Turn on/off Australian scrolling for devices other than wheel mouse.
96 // |enabled|: if set, enable Australian scrolling.
97 static
void setNaturalScroll
(boolean enabled
);
99 // Set the mouse pointer sensitivity setting.
100 // |value|: the pointer sensitivity setting index.
101 static
void setMouseSensitivity
(long value
);
103 // Swap the primary mouse button for left click.
104 // |right|: if set, swap the primary mouse button.
105 static
void setPrimaryButtonRight
(boolean right
);