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_LIST_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ |
7 | 7 |
8 #include "ash/common/system/tray/ime_info.h" | 8 #include "ash/common/system/tray/ime_info.h" |
9 #include "ash/common/system/tray/tray_details_view.h" | 9 #include "ash/common/system/tray/tray_details_view.h" |
10 #include "ash/common/system/tray/view_click_listener.h" | 10 #include "ash/common/system/tray/view_click_listener.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 virtual void Update(const IMEInfoList& list, | 30 virtual void Update(const IMEInfoList& list, |
31 const IMEPropertyInfoList& property_list, | 31 const IMEPropertyInfoList& property_list, |
32 bool show_keyboard_toggle, | 32 bool show_keyboard_toggle, |
33 SingleImeBehavior single_ime_behavior); | 33 SingleImeBehavior single_ime_behavior); |
34 | 34 |
35 protected: | 35 protected: |
36 // ViewClickListener: | 36 // ViewClickListener: |
37 void OnViewClicked(views::View* sender) override; | 37 void OnViewClicked(views::View* sender) override; |
38 | 38 |
39 private: | 39 private: |
40 // To allow the test class to access |ime_map_|. | |
41 friend class ImeMenuTrayTest; | |
42 | |
43 // Appends the IMEs to the scrollable area of the detailed view. | 40 // Appends the IMEs to the scrollable area of the detailed view. |
44 void AppendIMEList(const IMEInfoList& list); | 41 void AppendIMEList(const IMEInfoList& list); |
45 | 42 |
46 // Appends the IME listed to the scrollable area of the detailed view. | 43 // Appends the IME listed to the scrollable area of the detailed view. |
47 void AppendIMEProperties(const IMEPropertyInfoList& property_list); | 44 void AppendIMEProperties(const IMEPropertyInfoList& property_list); |
48 | 45 |
49 // Appends the on-screen keyboard status to the last area of the detailed | 46 // Appends the on-screen keyboard status to the last area of the detailed |
50 // view. | 47 // view. |
51 void AppendKeyboardStatus(); | 48 void AppendKeyboardStatus(); |
52 | 49 |
53 std::map<views::View*, std::string> ime_map_; | 50 std::map<views::View*, std::string> ime_map_; |
54 std::map<views::View*, std::string> property_map_; | 51 std::map<views::View*, std::string> property_map_; |
55 views::View* keyboard_status_; | 52 views::View* keyboard_status_; |
56 | 53 |
57 DISALLOW_COPY_AND_ASSIGN(ImeListView); | 54 DISALLOW_COPY_AND_ASSIGN(ImeListView); |
58 }; | 55 }; |
59 | 56 |
60 } // namespace ash | 57 } // namespace ash |
61 | 58 |
62 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ | 59 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ |
OLD | NEW |