| 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 |
| 40 // Appends the IMEs to the scrollable area of the detailed view. | 43 // Appends the IMEs to the scrollable area of the detailed view. |
| 41 void AppendIMEList(const IMEInfoList& list); | 44 void AppendIMEList(const IMEInfoList& list); |
| 42 | 45 |
| 43 // Appends the IME listed to the scrollable area of the detailed view. | 46 // Appends the IME listed to the scrollable area of the detailed view. |
| 44 void AppendIMEProperties(const IMEPropertyInfoList& property_list); | 47 void AppendIMEProperties(const IMEPropertyInfoList& property_list); |
| 45 | 48 |
| 46 // Appends the on-screen keyboard status to the last area of the detailed | 49 // Appends the on-screen keyboard status to the last area of the detailed |
| 47 // view. | 50 // view. |
| 48 void AppendKeyboardStatus(); | 51 void AppendKeyboardStatus(); |
| 49 | 52 |
| 50 std::map<views::View*, std::string> ime_map_; | 53 std::map<views::View*, std::string> ime_map_; |
| 51 std::map<views::View*, std::string> property_map_; | 54 std::map<views::View*, std::string> property_map_; |
| 52 views::View* keyboard_status_; | 55 views::View* keyboard_status_; |
| 53 | 56 |
| 54 DISALLOW_COPY_AND_ASSIGN(ImeListView); | 57 DISALLOW_COPY_AND_ASSIGN(ImeListView); |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 } // namespace ash | 60 } // namespace ash |
| 58 | 61 |
| 59 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ | 62 #endif // ASH_COMMON_SYSTEM_CHROMEOS_IME_MENU_IME_LIST_VIEW_H_ |
| OLD | NEW |