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

Unified Diff: ui/keyboard/resources/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/keyboard_util.cc ('k') | ui/keyboard/resources/elements/kb-keyboard.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/api_adapter.js
diff --git a/ui/keyboard/resources/api_adapter.js b/ui/keyboard/resources/api_adapter.js
index 1f69be47551f5903067af048a573fb21ad0cc018..cd64f57d512088a8067c069761218caa83127797 100644
--- a/ui/keyboard/resources/api_adapter.js
+++ b/ui/keyboard/resources/api_adapter.js
@@ -8,11 +8,6 @@ function logIfError() {
}
}
-function sendKeyEvent(keyEvent) {
- keyEvent.type = 'keydown';
- chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(keyEvent,
- logIfError);
- keyEvent.type = 'keyup';
- chrome.experimental.input.virtualKeyboard.sendKeyboardEvent(keyEvent,
- logIfError);
+function insertText(text) {
+ chrome.experimental.input.virtualKeyboard.insertText(text, logIfError);
}
« no previous file with comments | « ui/keyboard/keyboard_util.cc ('k') | ui/keyboard/resources/elements/kb-keyboard.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698