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

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

Issue 132453002: Moves CandidateWindow model to ui/base/ime (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_candidate_window_handler.h ('k') | ui/base/ime/ime.gypi » ('j') | 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 "ui/base/ime/chromeos/mock_ime_candidate_window_handler.h" 5 #include "ui/base/ime/chromeos/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_bounds_call_count_(0), 10 : set_cursor_bounds_call_count_(0),
11 update_lookup_table_call_count_(0) { 11 update_lookup_table_call_count_(0) {
12 } 12 }
13 13
14 MockIMECandidateWindowHandler::~MockIMECandidateWindowHandler() { 14 MockIMECandidateWindowHandler::~MockIMECandidateWindowHandler() {
15 15
16 } 16 }
17 17
18 void MockIMECandidateWindowHandler::UpdateLookupTable( 18 void MockIMECandidateWindowHandler::UpdateLookupTable(
19 const input_method::CandidateWindow& table, 19 const ui::CandidateWindow& table,
20 bool visible) { 20 bool visible) {
21 ++update_lookup_table_call_count_; 21 ++update_lookup_table_call_count_;
22 last_update_lookup_table_arg_.lookup_table.CopyFrom(table); 22 last_update_lookup_table_arg_.lookup_table.CopyFrom(table);
23 last_update_lookup_table_arg_.is_visible = visible; 23 last_update_lookup_table_arg_.is_visible = visible;
24 } 24 }
25 25
26 void MockIMECandidateWindowHandler::UpdatePreeditText(const std::string& text, 26 void MockIMECandidateWindowHandler::UpdatePreeditText(const std::string& text,
27 uint32 cursor_pos, 27 uint32 cursor_pos,
28 bool visible) { 28 bool visible) {
29 } 29 }
30 30
31 void MockIMECandidateWindowHandler::SetCursorBounds( 31 void MockIMECandidateWindowHandler::SetCursorBounds(
32 const gfx::Rect& cursor_bounds, 32 const gfx::Rect& cursor_bounds,
33 const gfx::Rect& composition_head) { 33 const gfx::Rect& composition_head) {
34 ++set_cursor_bounds_call_count_; 34 ++set_cursor_bounds_call_count_;
35 } 35 }
36 36
37 void MockIMECandidateWindowHandler::Reset() { 37 void MockIMECandidateWindowHandler::Reset() {
38 set_cursor_bounds_call_count_ = 0; 38 set_cursor_bounds_call_count_ = 0;
39 update_lookup_table_call_count_ = 0; 39 update_lookup_table_call_count_ = 0;
40 } 40 }
41 41
42 } // namespace chromeos 42 } // namespace chromeos
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_candidate_window_handler.h ('k') | ui/base/ime/ime.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698