| 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 #include "chrome/browser/chromeos/input_method/input_method_engine_interface.h" | 10 #include "chrome/browser/chromeos/input_method/input_method_engine_interface.h" |
| 11 #include "chromeos/ime/input_method_descriptor.h" | 11 #include "chromeos/ime/input_method_descriptor.h" |
| 12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 13 | 13 |
| 14 namespace ui { | 14 namespace ui { |
| 15 class KeyEvent; | 15 class KeyEvent; |
| 16 } // namespace ui | 16 } // namespace ui |
| 17 | 17 |
| 18 namespace ash { | |
| 19 namespace ime { | |
| 20 struct InputMethodMenuItem; | |
| 21 } // namespace ime | |
| 22 } // namespace ash | |
| 23 | |
| 24 namespace chromeos { | 18 namespace chromeos { |
| 25 | 19 |
| 26 class CompositionText; | 20 class CompositionText; |
| 27 | 21 |
| 28 namespace input_method { | 22 namespace input_method { |
| 29 class CandidateWindow; | 23 class CandidateWindow; |
| 24 struct InputMethodProperty; |
| 30 struct KeyEventHandle; | 25 struct KeyEventHandle; |
| 31 } // namespace input_method | 26 } // namespace input_method |
| 32 | 27 |
| 33 class MockInputMethodEngine : public InputMethodEngineInterface { | 28 class MockInputMethodEngine : public InputMethodEngineInterface { |
| 34 public: | 29 public: |
| 35 explicit MockInputMethodEngine( | 30 explicit MockInputMethodEngine( |
| 36 const input_method::InputMethodDescriptor& descriptor); | 31 const input_method::InputMethodDescriptor& descriptor); |
| 37 virtual ~MockInputMethodEngine(); | 32 virtual ~MockInputMethodEngine(); |
| 38 | 33 |
| 39 // InputMethodEngineInterface overrides. | 34 // InputMethodEngineInterface overrides. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // Descriptor of this input method. | 87 // Descriptor of this input method. |
| 93 input_method::InputMethodDescriptor descriptor_; | 88 input_method::InputMethodDescriptor descriptor_; |
| 94 | 89 |
| 95 // The current candidate window property. | 90 // The current candidate window property. |
| 96 CandidateWindowProperty candidate_window_property_; | 91 CandidateWindowProperty candidate_window_property_; |
| 97 }; | 92 }; |
| 98 | 93 |
| 99 } // namespace chromeos | 94 } // namespace chromeos |
| 100 | 95 |
| 101 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ | 96 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ |
| OLD | NEW |