| 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/tray_details_view.h" | 9 #include "ash/common/system/tray/tray_details_view.h" |
| 9 #include "ash/common/system/tray/view_click_listener.h" | 10 #include "ash/common/system/tray/view_click_listener.h" |
| 10 | 11 |
| 11 namespace ash { | 12 namespace ash { |
| 12 struct IMEInfo; | |
| 13 struct IMEPropertyInfo; | |
| 14 | |
| 15 using IMEInfoList = std::vector<IMEInfo>; | |
| 16 using IMEPropertyInfoList = std::vector<IMEPropertyInfo>; | |
| 17 | |
| 18 // The detailed view for showing IME list. | 13 // The detailed view for showing IME list. |
| 19 class ImeListView : public TrayDetailsView, public ViewClickListener { | 14 class ImeListView : public TrayDetailsView, public ViewClickListener { |
| 20 public: | 15 public: |
| 21 enum SingleImeBehavior { | 16 enum SingleImeBehavior { |
| 22 // Shows the IME menu if there's only one IME in system. | 17 // Shows the IME menu if there's only one IME in system. |
| 23 SHOW_SINGLE_IME, | 18 SHOW_SINGLE_IME, |
| 24 // Hides the IME menu if there's only one IME in system. | 19 // Hides the IME menu if there's only one IME in system. |
| 25 HIDE_SINGLE_IME | 20 HIDE_SINGLE_IME |
| 26 }; | 21 }; |
| 27 | 22 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 55 std::map<views::View*, std::string> ime_map_; | 50 std::map<views::View*, std::string> ime_map_; |
| 56 std::map<views::View*, std::string> property_map_; | 51 std::map<views::View*, std::string> property_map_; |
| 57 views::View* keyboard_status_; | 52 views::View* keyboard_status_; |
| 58 | 53 |
| 59 DISALLOW_COPY_AND_ASSIGN(ImeListView); | 54 DISALLOW_COPY_AND_ASSIGN(ImeListView); |
| 60 }; | 55 }; |
| 61 | 56 |
| 62 } // namespace ash | 57 } // namespace ash |
| 63 | 58 |
| 64 #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 |