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_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_MENU_TRAY_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_MENU_TRAY_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_MENU_TRAY_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_MENU_TRAY_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/common/system/ime/ime_observer.h" | 9 #include "ash/common/system/ime/ime_observer.h" |
10 #include "ash/common/system/tray/ime_info.h" | 10 #include "ash/common/system/tray/ime_info.h" |
11 #include "ash/common/system/tray/tray_background_view.h" | 11 #include "ash/common/system/tray/tray_background_view.h" |
12 #include "ash/common/system/tray/tray_bubble_wrapper.h" | 12 #include "ash/common/system/tray/tray_bubble_wrapper.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "ui/views/bubble/tray_bubble_view.h" | 14 #include "ui/views/bubble/tray_bubble_view.h" |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 class Label; | 17 class Label; |
18 } // namespace views | 18 } // namespace views |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
| 21 class ImeListView; |
21 class StatusAreaWidget; | 22 class StatusAreaWidget; |
22 class WmWindow; | 23 class WmWindow; |
23 | 24 |
24 // The tray item for IME menu, which shows the detailed view of a null single | 25 // The tray item for IME menu, which shows the detailed view of a null single |
25 // item. | 26 // item. |
26 class ASH_EXPORT ImeMenuTray : public TrayBackgroundView, | 27 class ASH_EXPORT ImeMenuTray : public TrayBackgroundView, |
27 public IMEObserver, | 28 public IMEObserver, |
28 public views::TrayBubbleView::Delegate { | 29 public views::TrayBubbleView::Delegate { |
29 public: | 30 public: |
30 explicit ImeMenuTray(WmShelf* wm_shelf); | 31 explicit ImeMenuTray(WmShelf* wm_shelf); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 void UpdateTrayLabel(); | 64 void UpdateTrayLabel(); |
64 | 65 |
65 // Shows the IME menu bubble and highlights the button. | 66 // Shows the IME menu bubble and highlights the button. |
66 void ShowImeMenuBubble(); | 67 void ShowImeMenuBubble(); |
67 | 68 |
68 // Hides the IME menu bubble and lowlights the button. | 69 // Hides the IME menu bubble and lowlights the button. |
69 void HideImeMenuBubble(); | 70 void HideImeMenuBubble(); |
70 | 71 |
71 // Bubble for default and detailed views. | 72 // Bubble for default and detailed views. |
72 std::unique_ptr<TrayBubbleWrapper> bubble_; | 73 std::unique_ptr<TrayBubbleWrapper> bubble_; |
| 74 ImeListView* ime_list_view_; |
73 | 75 |
74 views::Label* label_; | 76 views::Label* label_; |
75 IMEInfo current_ime_; | 77 IMEInfo current_ime_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); | 79 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace ash | 82 } // namespace ash |
81 | 83 |
82 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_MENU_TRAY_H_ | 84 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_MENU_TRAY_H_ |
OLD | NEW |