Elim cr-checkbox
[chromium-blink-merge.git] / ash / system / chromeos / virtual_keyboard / virtual_keyboard_tray.h
blob0a0230a5acdb5ee03bedd8d47aed3398f90e03bf
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_
6 #define ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_
8 #include "ash/system/tray/tray_background_view.h"
9 #include "ash/system/tray_accessibility.h"
10 #include "ash/system/user/login_status.h"
11 #include "base/basictypes.h"
12 #include "ui/views/controls/button/button.h"
14 namespace views {
15 class ImageButton;
18 namespace ash {
19 class StatusAreaWidget;
21 class VirtualKeyboardTray : public TrayBackgroundView,
22 public views::ButtonListener,
23 public AccessibilityObserver {
24 public:
25 explicit VirtualKeyboardTray(StatusAreaWidget* status_area_widget);
26 ~VirtualKeyboardTray() override;
28 // TrayBackgroundView:
29 void SetShelfAlignment(ShelfAlignment alignment) override;
30 base::string16 GetAccessibleNameForTray() override;
31 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override;
32 bool ClickedOutsideBubble() override;
33 bool PerformAction(const ui::Event& event) override;
35 // views::ButtonListener:
36 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
38 // AccessibilityObserver:
39 void OnAccessibilityModeChanged(
40 ui::AccessibilityNotificationVisibility notify) override;
42 private:
43 views::ImageButton* button_; // Not owned.
45 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardTray);
48 } // namespace ash
50 #endif // ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_