| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| module ash.mojom; |
| |
| interface ShellTestApi { |
| // Returns true if a system modal window is open (e.g. the Wi-Fi network |
| // password dialog). |
| IsSystemModalWindowOpen() => (bool visible); |
| |
| // Enables or disables the tablet mode window manager. |
| EnableTabletModeWindowManager(bool enable); |
| |
| // Enables the keyboard and associates it with the primary root window |
| // controller. In tablet mode, enables the virtual keyboard. |
| EnableVirtualKeyboard() => (); |
| |
| // Tells the SplitViewController to snap the given window to the left or |
| // right. The client name is used to find the client's WindowTree. |
| SnapWindowInSplitView(string client_name, uint64 window_id, bool left) => (); |
| |
| // Fullscreens the active window, as if the user had pressed the hardware |
| // fullscreen button. |
| ToggleFullscreen() => (); |
| |
| // Enters or exits overview mode. |
| ToggleOverviewMode() => (); |
| |
| // Used to emulate display change when run in a desktop environment instead |
| // of on a device. |
| AddRemoveDisplay(); |
| |
| // Set the minimum velocity to cause fling gesture. |
| SetMinFlingVelocity(float velocity); |
| |
| // Returns the number of child windows for the given container in the primary |
| // root window. |
| GetChildWindowCountInContainer(int32 container_id) => (int32 count); |
| }; |