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