blob: 57040fcea1c3814159351bb2dfcdba5bc7e7dee7 [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;
// All methods operate on the shelf on the primary display.
interface ShelfTestApi {
// Returns true if the shelf is visible (e.g. not auto-hidden).
IsVisible() => (bool visible);
// Forces a visibility update and then runs the callback.
UpdateVisibility() => ();
// Returns true if a window is overlapping the shelf, which changes its
// appearance slightly.
HasOverlappingWindow() => (bool overlap);
// Returns true if the shelf alignment is BOTTOM_LOCKED, which is not exposed
// via prefs.
IsAlignmentBottomLocked() => (bool locked);
};