| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "ui/base/ime/chromeos/input_method_descriptor.h" | 14 #include "ui/base/ime/chromeos/input_method_descriptor.h" |
| 15 #include "ui/base/ime/ime_engine_handler_interface.h" | 15 #include "ui/base/ime/ime_engine_handler_interface.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 class IMEEngineHandlerInterface; | 18 class IMEEngineHandlerInterface; |
| 19 class KeyEvent; | 19 class KeyEvent; |
| 20 } // namespace ui | 20 } // namespace ui |
| 21 | 21 |
| 22 namespace chromeos { | 22 namespace chromeos { |
| 23 | 23 |
| 24 class CompositionText; | |
| 25 | |
| 26 class MockInputMethodEngine : public ui::IMEEngineHandlerInterface { | 24 class MockInputMethodEngine : public ui::IMEEngineHandlerInterface { |
| 27 public: | 25 public: |
| 28 MockInputMethodEngine(); | 26 MockInputMethodEngine(); |
| 29 ~MockInputMethodEngine() override; | 27 ~MockInputMethodEngine() override; |
| 30 | 28 |
| 31 // IMEEngineHandlerInterface overrides. | 29 // IMEEngineHandlerInterface overrides. |
| 32 const std::string& GetActiveComponentId() const override; | 30 const std::string& GetActiveComponentId() const override; |
| 33 bool ClearComposition(int context_id, std::string* error) override; | 31 bool ClearComposition(int context_id, std::string* error) override; |
| 34 bool CommitText(int context_id, | 32 bool CommitText(int context_id, |
| 35 const char* text, | 33 const char* text, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 67 |
| 70 private: | 68 private: |
| 71 std::string active_component_id_; | 69 std::string active_component_id_; |
| 72 | 70 |
| 73 std::string last_activated_property_; | 71 std::string last_activated_property_; |
| 74 }; | 72 }; |
| 75 | 73 |
| 76 } // namespace chromeos | 74 } // namespace chromeos |
| 77 | 75 |
| 78 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ | 76 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ |
| OLD | NEW |