OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_MOCK_INPUT_METHOD_ENGINE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual bool SetCandidateWindowVisible(bool visible, | 59 virtual bool SetCandidateWindowVisible(bool visible, |
60 std::string* error) OVERRIDE; | 60 std::string* error) OVERRIDE; |
61 virtual bool SetCandidates(int context_id, | 61 virtual bool SetCandidates(int context_id, |
62 const std::vector<Candidate>& candidates, | 62 const std::vector<Candidate>& candidates, |
63 std::string* error) OVERRIDE; | 63 std::string* error) OVERRIDE; |
64 virtual bool SetCursorPosition(int context_id, int candidate_id, | 64 virtual bool SetCursorPosition(int context_id, int candidate_id, |
65 std::string* error) OVERRIDE; | 65 std::string* error) OVERRIDE; |
66 virtual bool SetMenuItems(const std::vector<MenuItem>& items) OVERRIDE; | 66 virtual bool SetMenuItems(const std::vector<MenuItem>& items) OVERRIDE; |
67 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) OVERRIDE; | 67 virtual bool UpdateMenuItems(const std::vector<MenuItem>& items) OVERRIDE; |
68 virtual bool IsActive() const OVERRIDE; | 68 virtual bool IsActive() const OVERRIDE; |
69 virtual void KeyEventDone(input_method::KeyEventHandle* key_data, | |
70 bool handled) OVERRIDE; | |
71 virtual bool DeleteSurroundingText(int context_id, | 69 virtual bool DeleteSurroundingText(int context_id, |
72 int offset, | 70 int offset, |
73 size_t number_of_chars, | 71 size_t number_of_chars, |
74 std::string* error) OVERRIDE; | 72 std::string* error) OVERRIDE; |
75 | 73 |
76 // IMEEngineHandlerInterface overrides. | 74 // IMEEngineHandlerInterface overrides. |
77 virtual void FocusIn( | 75 virtual void FocusIn( |
78 const IMEEngineHandlerInterface::InputContext& input_context) OVERRIDE; | 76 const IMEEngineHandlerInterface::InputContext& input_context) OVERRIDE; |
79 virtual void FocusOut() OVERRIDE; | 77 virtual void FocusOut() OVERRIDE; |
80 virtual void Enable() OVERRIDE; | 78 virtual void Enable() OVERRIDE; |
(...skipping 17 matching lines...) Expand all Loading... |
98 | 96 |
99 // The current candidate window property. | 97 // The current candidate window property. |
100 CandidateWindowProperty candidate_window_property_; | 98 CandidateWindowProperty candidate_window_property_; |
101 | 99 |
102 std::string last_activated_property_; | 100 std::string last_activated_property_; |
103 }; | 101 }; |
104 | 102 |
105 } // namespace chromeos | 103 } // namespace chromeos |
106 | 104 |
107 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ | 105 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ |
OLD | NEW |