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

Unified Diff: chrome/common/extensions/api/experimental_input_virtual_keyboard.json

Issue 20145004: Switch from text insertion to key press and release events on the virtual k… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental_input_virtual_keyboard.json
diff --git a/chrome/common/extensions/api/experimental_input_virtual_keyboard.json b/chrome/common/extensions/api/experimental_input_virtual_keyboard.json
index 4bd2c81e0e1180aacaf536c6333085605ea35995..0590ac3bf0c1f8fa4b1b714bf4101f689a9e5f8a 100644
--- a/chrome/common/extensions/api/experimental_input_virtual_keyboard.json
+++ b/chrome/common/extensions/api/experimental_input_virtual_keyboard.json
@@ -23,6 +23,27 @@
"parameters": []
}
]
+ },
+ {
+ "name": "dispatchKeyEvent",
+ "type": "function",
+ "description": "Dispatches a fabricated key event to the focused input field.",
+ "parameters": [
+ { "name": "type",
bshe 2013/07/25 15:33:05 probably add a enum field here like this (https://
kevers 2013/07/26 00:53:30 Added enum.
+ "type": "string",
+ "description": "Type type of key event: keyPressed or keyReleased."
+ },
+ { "name": "charCode",
+ "type": "integer",
+ "description": "Unicode value of the character."
+ },
+ { "name": "callback",
+ "type": "function",
+ "optional": true,
+ "description": "Called post event dispatch.",
+ "parameters": []
+ }
+ ]
}
]
}

Powered by Google App Engine
This is Rietveld 408576698