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

Unified Diff: ui/keyboard/resources/webui/api_adapter.js

Issue 16972006: Insert text directly from the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix include Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/resources/voice_input.js ('k') | ui/keyboard/resources/webui/keysets.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/webui/api_adapter.js
diff --git a/ui/keyboard/resources/webui/api_adapter.js b/ui/keyboard/resources/webui/api_adapter.js
index e336b25269e114c640fb01129f6f3bd7e6cecf8f..1d24ba68bc2b80322c0a45cc3b66118dab793e44 100644
--- a/ui/keyboard/resources/webui/api_adapter.js
+++ b/ui/keyboard/resources/webui/api_adapter.js
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function sendKeyEvent(keyEvent) {
- keyEvent.type = 'keydown';
- chrome.send('sendKeyEvent', [ keyEvent ]);
- keyEvent.type = 'keyup';
- chrome.send('sendKeyEvent', [ keyEvent ]);
+function insertText(text) {
+ chrome.send('insertText', [ text ]);
}
« no previous file with comments | « ui/keyboard/resources/voice_input.js ('k') | ui/keyboard/resources/webui/keysets.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698