OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 virtual void Enable(const std::string& component_id) override; | 83 virtual void Enable(const std::string& component_id) override; |
84 virtual void Disable() override; | 84 virtual void Disable() override; |
85 virtual void PropertyActivate(const std::string& property_name) override; | 85 virtual void PropertyActivate(const std::string& property_name) override; |
86 virtual void Reset() override; | 86 virtual void Reset() override; |
87 virtual void ProcessKeyEvent(const ui::KeyEvent& key_event, | 87 virtual void ProcessKeyEvent(const ui::KeyEvent& key_event, |
88 const KeyEventDoneCallback& callback) override; | 88 const KeyEventDoneCallback& callback) override; |
89 virtual void CandidateClicked(uint32 index) override; | 89 virtual void CandidateClicked(uint32 index) override; |
90 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos, | 90 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos, |
91 uint32 anchor_pos) override; | 91 uint32 anchor_pos) override; |
92 virtual void HideInputView() override; | 92 virtual void HideInputView() override; |
| 93 virtual void SetCompositionBounds(const gfx::Rect& bounds) override; |
93 | 94 |
94 int GetCotextIdForTesting() { return context_id_; } | 95 int GetCotextIdForTesting() { return context_id_; } |
95 | 96 |
96 private: | 97 private: |
97 // Converts MenuItem to InputMethodMenuItem. | 98 // Converts MenuItem to InputMethodMenuItem. |
98 void MenuItemToProperty(const MenuItem& item, | 99 void MenuItemToProperty(const MenuItem& item, |
99 ash::ime::InputMethodMenuItem* property); | 100 ash::ime::InputMethodMenuItem* property); |
100 | 101 |
101 // Enables overriding input view page to Virtual Keyboard window. | 102 // Enables overriding input view page to Virtual Keyboard window. |
102 void EnableInputView(); | 103 void EnableInputView(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 std::map<int, int> candidate_indexes_; | 139 std::map<int, int> candidate_indexes_; |
139 | 140 |
140 // Used with SendKeyEvents and ProcessKeyEvent to check if the key event | 141 // Used with SendKeyEvents and ProcessKeyEvent to check if the key event |
141 // sent to ProcessKeyEvent is sent by SendKeyEvents. | 142 // sent to ProcessKeyEvent is sent by SendKeyEvents. |
142 const ui::KeyEvent* sent_key_event_; | 143 const ui::KeyEvent* sent_key_event_; |
143 }; | 144 }; |
144 | 145 |
145 } // namespace chromeos | 146 } // namespace chromeos |
146 | 147 |
147 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | 148 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
OLD | NEW |