| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/base/ime/chromeos/mock_ime_candidate_window_handler.h" | |
| 6 | |
| 7 namespace chromeos { | |
| 8 | |
| 9 MockIMECandidateWindowHandler::MockIMECandidateWindowHandler() | |
| 10 : set_cursor_bounds_call_count_(0), | |
| 11 update_lookup_table_call_count_(0) { | |
| 12 } | |
| 13 | |
| 14 MockIMECandidateWindowHandler::~MockIMECandidateWindowHandler() { | |
| 15 | |
| 16 } | |
| 17 | |
| 18 void MockIMECandidateWindowHandler::UpdateLookupTable( | |
| 19 const ui::CandidateWindow& table, | |
| 20 bool visible) { | |
| 21 ++update_lookup_table_call_count_; | |
| 22 last_update_lookup_table_arg_.lookup_table.CopyFrom(table); | |
| 23 last_update_lookup_table_arg_.is_visible = visible; | |
| 24 } | |
| 25 | |
| 26 void MockIMECandidateWindowHandler::UpdatePreeditText( | |
| 27 const base::string16& text, | |
| 28 uint32 cursor_pos, | |
| 29 bool visible) {} | |
| 30 | |
| 31 void MockIMECandidateWindowHandler::SetCursorBounds( | |
| 32 const gfx::Rect& cursor_bounds, | |
| 33 const gfx::Rect& composition_head) { | |
| 34 ++set_cursor_bounds_call_count_; | |
| 35 } | |
| 36 | |
| 37 void MockIMECandidateWindowHandler::Reset() { | |
| 38 set_cursor_bounds_call_count_ = 0; | |
| 39 update_lookup_table_call_count_ = 0; | |
| 40 } | |
| 41 | |
| 42 } // namespace chromeos | |
| OLD | NEW |