naiveproxy/ash/public/interfaces/shelf_test_api.mojom
2018-01-28 13:32:06 -05:00

23 lines
749 B
Plaintext

// 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);
};