OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_IME_MENU_IME_MENU_TRAY_H_ | 5 #ifndef ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ |
6 #define ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ | 6 #define ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/system/ime/ime_observer.h" | 9 #include "ash/system/ime/ime_observer.h" |
10 #include "ash/system/tray/ime_info.h" | 10 #include "ash/system/tray/ime_info.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // A button in the tray which displays the short name of the currently-activated | 25 // A button in the tray which displays the short name of the currently-activated |
26 // IME (e.g., 'GB', 'US'). Clicking this button opens the opt-in IME menu, | 26 // IME (e.g., 'GB', 'US'). Clicking this button opens the opt-in IME menu, |
27 // a standalone bubble displaying a list of available IMEs along with buttons | 27 // a standalone bubble displaying a list of available IMEs along with buttons |
28 // for emoji, handwriting, and voice. | 28 // for emoji, handwriting, and voice. |
29 class ASH_EXPORT ImeMenuTray : public TrayBackgroundView, | 29 class ASH_EXPORT ImeMenuTray : public TrayBackgroundView, |
30 public IMEObserver, | 30 public IMEObserver, |
31 public views::TrayBubbleView::Delegate, | 31 public views::TrayBubbleView::Delegate, |
32 public keyboard::KeyboardControllerObserver, | 32 public keyboard::KeyboardControllerObserver, |
33 public VirtualKeyboardObserver { | 33 public VirtualKeyboardObserver { |
34 public: | 34 public: |
35 explicit ImeMenuTray(WmShelf* wm_shelf); | 35 explicit ImeMenuTray(Shelf* shelf); |
36 ~ImeMenuTray() override; | 36 ~ImeMenuTray() override; |
37 | 37 |
38 // Shows the IME menu bubble and highlights the button. | 38 // Shows the IME menu bubble and highlights the button. |
39 void ShowImeMenuBubble(); | 39 void ShowImeMenuBubble(); |
40 | 40 |
41 // Hides the IME menu bubble and lowlights the button. | 41 // Hides the IME menu bubble and lowlights the button. |
42 void HideImeMenuBubble(); | 42 void HideImeMenuBubble(); |
43 | 43 |
44 // Returns true if the IME menu bubble has been shown. | 44 // Returns true if the IME menu bubble has been shown. |
45 bool IsImeMenuBubbleShown(); | 45 bool IsImeMenuBubbleShown(); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 bool show_bubble_after_keyboard_hidden_; | 111 bool show_bubble_after_keyboard_hidden_; |
112 | 112 |
113 base::WeakPtrFactory<ImeMenuTray> weak_ptr_factory_; | 113 base::WeakPtrFactory<ImeMenuTray> weak_ptr_factory_; |
114 | 114 |
115 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); | 115 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); |
116 }; | 116 }; |
117 | 117 |
118 } // namespace ash | 118 } // namespace ash |
119 | 119 |
120 #endif // ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ | 120 #endif // ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ |
OLD | NEW |