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

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

Issue 2077783002: Make limitations for input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos error. Created 4 years, 5 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_input_context_handler.h ('k') | ui/base/ime/dummy_input_method.h » ('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_input_context_handler.h" 5 #include "ui/base/ime/chromeos/mock_ime_input_context_handler.h"
6 6
7 #include "ui/base/ime/composition_text.h" 7 #include "ui/base/ime/composition_text.h"
8 #include "ui/base/ime/input_method.h"
8 9
9 namespace chromeos { 10 namespace chromeos {
10 11
11 MockIMEInputContextHandler::MockIMEInputContextHandler() 12 MockIMEInputContextHandler::MockIMEInputContextHandler()
12 : commit_text_call_count_(0), 13 : commit_text_call_count_(0),
13 update_preedit_text_call_count_(0), 14 update_preedit_text_call_count_(0),
14 delete_surrounding_text_call_count_(0) { 15 delete_surrounding_text_call_count_(0) {
15 } 16 }
16 17
17 MockIMEInputContextHandler::~MockIMEInputContextHandler() { 18 MockIMEInputContextHandler::~MockIMEInputContextHandler() {
(...skipping 23 matching lines...) Expand all
41 42
42 void MockIMEInputContextHandler::Reset() { 43 void MockIMEInputContextHandler::Reset() {
43 commit_text_call_count_ = 0; 44 commit_text_call_count_ = 0;
44 update_preedit_text_call_count_ = 0; 45 update_preedit_text_call_count_ = 0;
45 delete_surrounding_text_call_count_ = 0; 46 delete_surrounding_text_call_count_ = 0;
46 last_commit_text_.clear(); 47 last_commit_text_.clear();
47 } 48 }
48 49
49 void MockIMEInputContextHandler::SendKeyEvent(ui::KeyEvent* event) {} 50 void MockIMEInputContextHandler::SendKeyEvent(ui::KeyEvent* event) {}
50 51
52 ui::InputMethod* MockIMEInputContextHandler::GetInputMethod() {
53 return nullptr;
54 }
51 } // namespace chromeos 55 } // namespace chromeos
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/mock_ime_input_context_handler.h ('k') | ui/base/ime/dummy_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698