blob: 3dbd259b0937cddf7e058497ea3cc96cfa97d7e7 [file] [log] [blame]
// 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.
// Set the minimum velocity to cause fling gesture.
SetMinFlingVelocity(float velocity);