| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void FocusOut() override; | 81 void FocusOut() override; |
| 82 void Enable(const std::string& component_id) override; | 82 void Enable(const std::string& component_id) override; |
| 83 void Disable() override; | 83 void Disable() override; |
| 84 void PropertyActivate(const std::string& property_name) override; | 84 void PropertyActivate(const std::string& property_name) override; |
| 85 void Reset() override; | 85 void Reset() override; |
| 86 void ProcessKeyEvent(const ui::KeyEvent& key_event, | 86 void ProcessKeyEvent(const ui::KeyEvent& key_event, |
| 87 const KeyEventDoneCallback& callback) override; | 87 const KeyEventDoneCallback& callback) override; |
| 88 void CandidateClicked(uint32 index) override; | 88 void CandidateClicked(uint32 index) override; |
| 89 void SetSurroundingText(const std::string& text, | 89 void SetSurroundingText(const std::string& text, |
| 90 uint32 cursor_pos, | 90 uint32 cursor_pos, |
| 91 uint32 anchor_pos) override; | 91 uint32 anchor_pos, |
| 92 uint32 offset_pos) override; |
| 92 void HideInputView() override; | 93 void HideInputView() override; |
| 93 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; | 94 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; |
| 94 | 95 |
| 95 int GetCotextIdForTesting() { return context_id_; } | 96 int GetCotextIdForTesting() { return context_id_; } |
| 96 | 97 |
| 97 bool IsInterestedInKeyEvent() const override; | 98 bool IsInterestedInKeyEvent() const override; |
| 98 | 99 |
| 99 private: | 100 private: |
| 100 bool CheckProfile() const; | 101 bool CheckProfile() const; |
| 101 // Converts MenuItem to InputMethodMenuItem. | 102 // Converts MenuItem to InputMethodMenuItem. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Used with SendKeyEvents and ProcessKeyEvent to check if the key event | 145 // Used with SendKeyEvents and ProcessKeyEvent to check if the key event |
| 145 // sent to ProcessKeyEvent is sent by SendKeyEvents. | 146 // sent to ProcessKeyEvent is sent by SendKeyEvents. |
| 146 const ui::KeyEvent* sent_key_event_; | 147 const ui::KeyEvent* sent_key_event_; |
| 147 | 148 |
| 148 Profile* profile_; | 149 Profile* profile_; |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 } // namespace chromeos | 152 } // namespace chromeos |
| 152 | 153 |
| 153 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ | 154 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_H_ |
| OLD | NEW |