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

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

Issue 1282823002: Add text offset to OnSurroundingTextChanged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « ui/base/ime/chromeos/mock_ime_engine_handler.h ('k') | ui/base/ime/input_method_chromeos.cc » ('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_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
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
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_engine_handler.h ('k') | ui/base/ime/input_method_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698