OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_ |
6 #define ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_ | 6 #define ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_ |
7 | 7 |
8 #include "ash/keyboard/keyboard_ui_observer.h" | 8 #include "ash/keyboard/keyboard_ui_observer.h" |
9 #include "ash/system/tray/tray_background_view.h" | 9 #include "ash/system/tray/tray_background_view.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public views::ButtonListener, | 23 public views::ButtonListener, |
24 public KeyboardUIObserver { | 24 public KeyboardUIObserver { |
25 public: | 25 public: |
26 explicit VirtualKeyboardTray(StatusAreaWidget* status_area_widget); | 26 explicit VirtualKeyboardTray(StatusAreaWidget* status_area_widget); |
27 ~VirtualKeyboardTray() override; | 27 ~VirtualKeyboardTray() override; |
28 | 28 |
29 // TrayBackgroundView: | 29 // TrayBackgroundView: |
30 void SetShelfAlignment(wm::ShelfAlignment alignment) override; | 30 void SetShelfAlignment(wm::ShelfAlignment alignment) override; |
31 base::string16 GetAccessibleNameForTray() override; | 31 base::string16 GetAccessibleNameForTray() override; |
32 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; | 32 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; |
33 bool ClickedOutsideBubble() override; | 33 void ClickedOutsideBubble() override; |
34 bool PerformAction(const ui::Event& event) override; | 34 bool PerformAction(const ui::Event& event) override; |
35 | 35 |
36 // views::ButtonListener: | 36 // views::ButtonListener: |
37 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 37 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
38 | 38 |
39 // KeyboardUIObserver: | 39 // KeyboardUIObserver: |
40 void OnKeyboardEnabledStateChanged(bool new_value) override; | 40 void OnKeyboardEnabledStateChanged(bool new_value) override; |
41 | 41 |
42 private: | 42 private: |
43 views::ImageButton* button_; // Not owned. | 43 views::ImageButton* button_; // Not owned. |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardTray); | 45 DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardTray); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace ash | 48 } // namespace ash |
49 | 49 |
50 #endif // ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_ | 50 #endif // ASH_SYSTEM_CHROMEOS_VIRTUAL_KEYBOARD_VIRTUAL_KEYBOARD_TRAY_H_ |
OLD | NEW |