| 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 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h" | 5 #include "ui/base/ime/chromeos/mock_ime_engine_handler.h" |
| 6 #include "ui/base/ime/text_input_flags.h" | 6 #include "ui/base/ime/text_input_flags.h" |
| 7 | 7 |
| 8 namespace chromeos { | 8 namespace chromeos { |
| 9 | 9 |
| 10 MockIMEEngineHandler::MockIMEEngineHandler() | 10 MockIMEEngineHandler::MockIMEEngineHandler() |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ++process_key_event_call_count_; | 59 ++process_key_event_call_count_; |
| 60 last_processed_key_event_.reset(new ui::KeyEvent(key_event)); | 60 last_processed_key_event_.reset(new ui::KeyEvent(key_event)); |
| 61 last_passed_callback_ = callback; | 61 last_passed_callback_ = callback; |
| 62 } | 62 } |
| 63 | 63 |
| 64 void MockIMEEngineHandler::CandidateClicked(uint32 index) { | 64 void MockIMEEngineHandler::CandidateClicked(uint32 index) { |
| 65 } | 65 } |
| 66 | 66 |
| 67 void MockIMEEngineHandler::SetSurroundingText(const std::string& text, | 67 void MockIMEEngineHandler::SetSurroundingText(const std::string& text, |
| 68 uint32 cursor_pos, | 68 uint32 cursor_pos, |
| 69 uint32 anchor_pos) { | 69 uint32 anchor_pos, |
| 70 uint32 offset_pos) { |
| 70 ++set_surrounding_text_call_count_; | 71 ++set_surrounding_text_call_count_; |
| 71 last_set_surrounding_text_ = text; | 72 last_set_surrounding_text_ = text; |
| 72 last_set_surrounding_cursor_pos_ = cursor_pos; | 73 last_set_surrounding_cursor_pos_ = cursor_pos; |
| 73 last_set_surrounding_anchor_pos_ = anchor_pos; | 74 last_set_surrounding_anchor_pos_ = anchor_pos; |
| 74 } | 75 } |
| 75 | 76 |
| 76 void MockIMEEngineHandler::SetCompositionBounds( | 77 void MockIMEEngineHandler::SetCompositionBounds( |
| 77 const std::vector<gfx::Rect>& bounds) { | 78 const std::vector<gfx::Rect>& bounds) { |
| 78 } | 79 } |
| 79 | 80 |
| 80 } // namespace chromeos | 81 } // namespace chromeos |
| OLD | NEW |