| 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 "chromeos/ime/mock_ime_candidate_window_handler.h" | 5 #include "chromeos/ime/mock_ime_candidate_window_handler.h" |
| 6 | 6 |
| 7 namespace chromeos { | 7 namespace chromeos { |
| 8 | 8 |
| 9 MockIMECandidateWindowHandler::MockIMECandidateWindowHandler() | 9 MockIMECandidateWindowHandler::MockIMECandidateWindowHandler() |
| 10 : set_cursor_location_call_count_(0), | 10 : set_cursor_location_call_count_(0), |
| 11 update_lookup_table_call_count_(0), | 11 update_lookup_table_call_count_(0), |
| 12 update_auxiliary_text_call_count_(0) { | 12 update_auxiliary_text_call_count_(0) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 MockIMECandidateWindowHandler::~MockIMECandidateWindowHandler() { | 15 MockIMECandidateWindowHandler::~MockIMECandidateWindowHandler() { |
| 16 | 16 |
| 17 } | 17 } |
| 18 | 18 |
| 19 void MockIMECandidateWindowHandler::UpdateLookupTable( | 19 void MockIMECandidateWindowHandler::UpdateLookupTable( |
| 20 const IBusLookupTable& table, | 20 const input_method::CandidateWindow& table, |
| 21 bool visible) { | 21 bool visible) { |
| 22 ++update_lookup_table_call_count_; | 22 ++update_lookup_table_call_count_; |
| 23 last_update_lookup_table_arg_.lookup_table.CopyFrom(table); | 23 last_update_lookup_table_arg_.lookup_table.CopyFrom(table); |
| 24 last_update_lookup_table_arg_.is_visible = visible; | 24 last_update_lookup_table_arg_.is_visible = visible; |
| 25 } | 25 } |
| 26 | 26 |
| 27 void MockIMECandidateWindowHandler::HideLookupTable() { | 27 void MockIMECandidateWindowHandler::HideLookupTable() { |
| 28 } | 28 } |
| 29 | 29 |
| 30 void MockIMECandidateWindowHandler::UpdateAuxiliaryText(const std::string& text, | 30 void MockIMECandidateWindowHandler::UpdateAuxiliaryText(const std::string& text, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 51 ++set_cursor_location_call_count_; | 51 ++set_cursor_location_call_count_; |
| 52 } | 52 } |
| 53 | 53 |
| 54 void MockIMECandidateWindowHandler::Reset() { | 54 void MockIMECandidateWindowHandler::Reset() { |
| 55 set_cursor_location_call_count_ = 0; | 55 set_cursor_location_call_count_ = 0; |
| 56 update_lookup_table_call_count_ = 0; | 56 update_lookup_table_call_count_ = 0; |
| 57 update_auxiliary_text_call_count_ = 0; | 57 update_auxiliary_text_call_count_ = 0; |
| 58 } | 58 } |
| 59 | 59 |
| 60 } // namespace chromeos | 60 } // namespace chromeos |
| OLD | NEW |