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: ui/keyboard/resources/send_key_event_webui.js

Issue 14161009: WebUIHandler for chrome://keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« ui/keyboard/keyboard_util.cc ('K') | « ui/keyboard/resources/send_key_event.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/resources/send_key_event_webui.js
diff --git a/ui/keyboard/resources/send_key_event_webui.js b/ui/keyboard/resources/send_key_event_webui.js
new file mode 100644
index 0000000000000000000000000000000000000000..965bab87fc0eaac1ea369d6cb37c499767412288
--- /dev/null
+++ b/ui/keyboard/resources/send_key_event_webui.js
@@ -0,0 +1,6 @@
+function sendKeyEvent(keyEvent) {
+ keyEvent.type = 'keydown';
+ chrome.send('sendKeyEvent', [ keyEvent ]);
+ keyEvent.type = 'keyup';
+ chrome.send('sendKeyEvent', [ keyEvent ]);
+}
« ui/keyboard/keyboard_util.cc ('K') | « ui/keyboard/resources/send_key_event.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698