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

Side by Side Diff: ui/base/ime/input_method_base.cc

Issue 1771173002: Implement input.ime.sendKeyEvents API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix patch conflict. Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/input_method_base.h" 5 #include "ui/base/ime/input_method_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 if (visible) 188 if (visible)
189 GetTextInputClient()->SetCompositionText(composition_); 189 GetTextInputClient()->SetCompositionText(composition_);
190 else 190 else
191 GetTextInputClient()->ClearCompositionText(); 191 GetTextInputClient()->ClearCompositionText();
192 } 192 }
193 SendFakeProcessKeyEvent(false); 193 SendFakeProcessKeyEvent(false);
194 } 194 }
195 195
196 void InputMethodBase::DeleteSurroundingText(int32_t offset, uint32_t length) {} 196 void InputMethodBase::DeleteSurroundingText(int32_t offset, uint32_t length) {}
197 197
198 void InputMethodBase::SendKeyEvent(KeyEvent* event) {
199 DispatchKeyEvent(event);
200 }
201
198 } // namespace ui 202 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698