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

Unified Diff: runtime/embedders/openglui/common/vm_glue.cc

Issue 12390045: Added a rudimentary DOM, to assist with event dispatch. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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: runtime/embedders/openglui/common/vm_glue.cc
===================================================================
--- runtime/embedders/openglui/common/vm_glue.cc (revision 19252)
+++ runtime/embedders/openglui/common/vm_glue.cc (working copy)
@@ -276,19 +276,21 @@
return -1;
}
-int VMGlue::OnKeyEvent(const char* function, int64_t when, int32_t flags,
- int32_t key_code, int32_t meta_state, int32_t repeat) {
+int VMGlue::OnKeyEvent(const char* function, int64_t when, int32_t key_code,
+ bool isAltKeyDown, bool isCtrlKeyDown,
+ bool isShiftKeyDown, int32_t repeat) {
if (initialized_script_) {
LOGI("Invoking %s", function);
Dart_EnterIsolate(isolate_);
Dart_EnterScope();
- Dart_Handle args[5];
+ Dart_Handle args[6];
args[0] = CheckError(Dart_NewInteger(when));
- args[1] = CheckError(Dart_NewInteger(flags));
- args[2] = CheckError(Dart_NewInteger(key_code));
- args[3] = CheckError(Dart_NewInteger(meta_state));
- args[4] = CheckError(Dart_NewInteger(repeat));
- int rtn = Invoke(function, 5, args, false);
+ args[1] = CheckError(Dart_NewInteger(key_code));
+ args[2] = CheckError(Dart_NewBoolean(isAltKeyDown));
+ args[3] = CheckError(Dart_NewBoolean(isCtrlKeyDown));
+ args[4] = CheckError(Dart_NewBoolean(isShiftKeyDown));
+ args[5] = CheckError(Dart_NewInteger(repeat));
+ int rtn = Invoke(function, 6, args, false);
Dart_ExitScope();
Dart_ExitIsolate();
LOGI("Done %s", function);
« no previous file with comments | « runtime/embedders/openglui/common/vm_glue.h ('k') | runtime/embedders/openglui/emulator/emulator_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698