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> |
| 9 #include <stdint.h> |
| 10 |
8 #include <string> | 11 #include <string> |
9 #include <vector> | 12 #include <vector> |
10 | 13 |
11 #include "ui/base/ime/chromeos/input_method_descriptor.h" | 14 #include "ui/base/ime/chromeos/input_method_descriptor.h" |
12 #include "ui/base/ime/ime_engine_handler_interface.h" | 15 #include "ui/base/ime/ime_engine_handler_interface.h" |
13 | 16 |
14 namespace ui { | 17 namespace ui { |
15 class IMEEngineHandlerInterface; | 18 class IMEEngineHandlerInterface; |
16 class KeyEvent; | 19 class KeyEvent; |
17 | 20 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void FocusIn( | 73 void FocusIn( |
71 const IMEEngineHandlerInterface::InputContext& input_context) override; | 74 const IMEEngineHandlerInterface::InputContext& input_context) override; |
72 void FocusOut() override; | 75 void FocusOut() override; |
73 void Enable(const std::string& component_id) override; | 76 void Enable(const std::string& component_id) override; |
74 void Disable() override; | 77 void Disable() override; |
75 void PropertyActivate(const std::string& property_name) override; | 78 void PropertyActivate(const std::string& property_name) override; |
76 void Reset() override; | 79 void Reset() override; |
77 bool IsInterestedInKeyEvent() const override; | 80 bool IsInterestedInKeyEvent() const override; |
78 void ProcessKeyEvent(const ui::KeyEvent& key_event, | 81 void ProcessKeyEvent(const ui::KeyEvent& key_event, |
79 KeyEventDoneCallback& callback) override; | 82 KeyEventDoneCallback& callback) override; |
80 void CandidateClicked(uint32 index) override; | 83 void CandidateClicked(uint32_t index) override; |
81 void SetSurroundingText(const std::string& text, | 84 void SetSurroundingText(const std::string& text, |
82 uint32 cursor_pos, | 85 uint32_t cursor_pos, |
83 uint32 anchor_pos, | 86 uint32_t anchor_pos, |
84 uint32 offset_pos) override; | 87 uint32_t offset_pos) override; |
85 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; | 88 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; |
86 void HideInputView() override; | 89 void HideInputView() override; |
87 | 90 |
88 std::string last_activated_property() const { | 91 std::string last_activated_property() const { |
89 return last_activated_property_; | 92 return last_activated_property_; |
90 } | 93 } |
91 | 94 |
92 private: | 95 private: |
93 std::string active_component_id_; | 96 std::string active_component_id_; |
94 | 97 |
95 // The current candidate window property. | 98 // The current candidate window property. |
96 CandidateWindowProperty candidate_window_property_; | 99 CandidateWindowProperty candidate_window_property_; |
97 | 100 |
98 std::string last_activated_property_; | 101 std::string last_activated_property_; |
99 }; | 102 }; |
100 | 103 |
101 } // namespace chromeos | 104 } // namespace chromeos |
102 | 105 |
103 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ | 106 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_MOCK_INPUT_METHOD_ENGINE_H_ |
OLD | NEW |