Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: chromeos/ime/mock_ime_candidate_window_handler.cc

Issue 24946003: Rename IBusLookupTable to CandidateWindow, and move it to chromeos/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/ime/mock_ime_candidate_window_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chromeos/ime/mock_ime_candidate_window_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698