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

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

Issue 641243005: Support a private event - inputMethodPrivate.onCompositionBoundsChanged so that component IME exten… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits + unit test Created 6 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 | « 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 void MockIMEEngineHandler::SetSurroundingText(const std::string& text, 63 void MockIMEEngineHandler::SetSurroundingText(const std::string& text,
64 uint32 cursor_pos, 64 uint32 cursor_pos,
65 uint32 anchor_pos) { 65 uint32 anchor_pos) {
66 ++set_surrounding_text_call_count_; 66 ++set_surrounding_text_call_count_;
67 last_set_surrounding_text_ = text; 67 last_set_surrounding_text_ = text;
68 last_set_surrounding_cursor_pos_ = cursor_pos; 68 last_set_surrounding_cursor_pos_ = cursor_pos;
69 last_set_surrounding_anchor_pos_ = anchor_pos; 69 last_set_surrounding_anchor_pos_ = anchor_pos;
70 } 70 }
71 71
72 void MockIMEEngineHandler::SetCompositionBounds(const gfx::Rect& bounds) {
73 }
74
72 } // namespace chromeos 75 } // 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