| 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 UI_BASE_IME_CHROMEOS_MOCK_IME_ENGINE_HANDLER_H_ | 5 #ifndef UI_BASE_IME_CHROMEOS_MOCK_IME_ENGINE_HANDLER_H_ |
| 6 #define UI_BASE_IME_CHROMEOS_MOCK_IME_ENGINE_HANDLER_H_ | 6 #define UI_BASE_IME_CHROMEOS_MOCK_IME_ENGINE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "ui/base/ime/chromeos/ime_bridge.h" | 8 #include "ui/base/ime/chromeos/ime_bridge.h" |
| 9 #include "ui/base/ime/ui_base_ime_export.h" | 9 #include "ui/base/ime/ui_base_ime_export.h" |
| 10 #include "ui/events/event.h" | 10 #include "ui/events/event.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 void Enable(const std::string& component_id) override; | 22 void Enable(const std::string& component_id) override; |
| 23 void Disable() override; | 23 void Disable() override; |
| 24 void PropertyActivate(const std::string& property_name) override; | 24 void PropertyActivate(const std::string& property_name) override; |
| 25 void Reset() override; | 25 void Reset() override; |
| 26 bool IsInterestedInKeyEvent() const override; | 26 bool IsInterestedInKeyEvent() const override; |
| 27 void ProcessKeyEvent(const ui::KeyEvent& key_event, | 27 void ProcessKeyEvent(const ui::KeyEvent& key_event, |
| 28 const KeyEventDoneCallback& callback) override; | 28 const KeyEventDoneCallback& callback) override; |
| 29 void CandidateClicked(uint32 index) override; | 29 void CandidateClicked(uint32 index) override; |
| 30 void SetSurroundingText(const std::string& text, | 30 void SetSurroundingText(const std::string& text, |
| 31 uint32 cursor_pos, | 31 uint32 cursor_pos, |
| 32 uint32 anchor_pos) override; | 32 uint32 anchor_pos, |
| 33 uint32 offset_pos) override; |
| 33 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; | 34 void SetCompositionBounds(const std::vector<gfx::Rect>& bounds) override; |
| 34 | 35 |
| 35 int focus_in_call_count() const { return focus_in_call_count_; } | 36 int focus_in_call_count() const { return focus_in_call_count_; } |
| 36 int focus_out_call_count() const { return focus_out_call_count_; } | 37 int focus_out_call_count() const { return focus_out_call_count_; } |
| 37 int reset_call_count() const { return reset_call_count_; } | 38 int reset_call_count() const { return reset_call_count_; } |
| 38 int set_surrounding_text_call_count() const { | 39 int set_surrounding_text_call_count() const { |
| 39 return set_surrounding_text_call_count_; | 40 return set_surrounding_text_call_count_; |
| 40 } | 41 } |
| 41 int process_key_event_call_count() const { | 42 int process_key_event_call_count() const { |
| 42 return process_key_event_call_count_; | 43 return process_key_event_call_count_; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 std::string last_set_surrounding_text_; | 82 std::string last_set_surrounding_text_; |
| 82 uint32 last_set_surrounding_cursor_pos_; | 83 uint32 last_set_surrounding_cursor_pos_; |
| 83 uint32 last_set_surrounding_anchor_pos_; | 84 uint32 last_set_surrounding_anchor_pos_; |
| 84 scoped_ptr<ui::KeyEvent> last_processed_key_event_; | 85 scoped_ptr<ui::KeyEvent> last_processed_key_event_; |
| 85 KeyEventDoneCallback last_passed_callback_; | 86 KeyEventDoneCallback last_passed_callback_; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace chromeos | 89 } // namespace chromeos |
| 89 | 90 |
| 90 #endif // UI_BASE_IME_CHROMEOS_MOCK_IME_ENGINE_HANDLER_H_ | 91 #endif // UI_BASE_IME_CHROMEOS_MOCK_IME_ENGINE_HANDLER_H_ |
| OLD | NEW |