OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ |
6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ | 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 enum MenuItemStyle { | 49 enum MenuItemStyle { |
50 MENU_ITEM_STYLE_NONE, | 50 MENU_ITEM_STYLE_NONE, |
51 MENU_ITEM_STYLE_CHECK, | 51 MENU_ITEM_STYLE_CHECK, |
52 MENU_ITEM_STYLE_RADIO, | 52 MENU_ITEM_STYLE_RADIO, |
53 MENU_ITEM_STYLE_SEPARATOR, | 53 MENU_ITEM_STYLE_SEPARATOR, |
54 }; | 54 }; |
55 | 55 |
56 struct MenuItem { | 56 struct MenuItem { |
57 MenuItem(); | 57 MenuItem(); |
| 58 MenuItem(const MenuItem& other); |
58 virtual ~MenuItem(); | 59 virtual ~MenuItem(); |
59 | 60 |
60 std::string id; | 61 std::string id; |
61 std::string label; | 62 std::string label; |
62 MenuItemStyle style; | 63 MenuItemStyle style; |
63 bool visible; | 64 bool visible; |
64 bool enabled; | 65 bool enabled; |
65 bool checked; | 66 bool checked; |
66 | 67 |
67 unsigned int modified; | 68 unsigned int modified; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // called to update the IME menu items. | 298 // called to update the IME menu items. |
298 virtual void NotifyImeMenuItemsChanged( | 299 virtual void NotifyImeMenuItemsChanged( |
299 const std::string& engine_id, | 300 const std::string& engine_id, |
300 const std::vector<MenuItem>& items) = 0; | 301 const std::vector<MenuItem>& items) = 0; |
301 }; | 302 }; |
302 | 303 |
303 } // namespace input_method | 304 } // namespace input_method |
304 } // namespace chromeos | 305 } // namespace chromeos |
305 | 306 |
306 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ | 307 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |