naiveproxy/ash/public/interfaces/system_tray_test_api.mojom
2018-01-29 00:30:36 +08:00

31 lines
953 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;
import "mojo/common/string16.mojom";
// Top-level items in the system tray bubble.
// TODO(jamescook): Consolidate with SystemTrayItem::UmaType.
enum TrayItem {
kEnterprise,
kNetwork,
};
// All methods operate on the system tray on the primary display.
interface SystemTrayTestApi {
// Shows the system tray bubble menu.
ShowBubble() => ();
// Shows the submenu view for |item| in the system tray bubble menu.
ShowDetailedView(TrayItem item) => ();
// Returns true if the view exists in the bubble and is visible.
IsBubbleViewVisible(int32 view_id) => (bool visible);
// Returns the tooltip for a bubble view, or the empty string if the view
// does not exist.
GetBubbleViewTooltip(int32 view_id) => (mojo.common.mojom.String16 tooltip);
};