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

Unified Diff: runtime/embedders/openglui/android/eventloop.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
« no previous file with comments | « no previous file | runtime/embedders/openglui/common/gl.dart » ('j') | runtime/embedders/openglui/common/gl.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/embedders/openglui/android/eventloop.cc
===================================================================
--- runtime/embedders/openglui/android/eventloop.cc (revision 19252)
+++ runtime/embedders/openglui/android/eventloop.cc (working copy)
@@ -335,10 +335,15 @@
/* Get the time this event occurred, in the
* java.lang.System.nanoTime() time base. */
int64_t when = AKeyEvent_getEventTime(event);
+ bool isAltKeyDown = (meta_state & AMETA_ALT_ON) != 0;
+ bool isShiftKeyDown = (meta_state & AMETA_SHIFT_ON) != 0;
+ bool isCtrlKeyDown = key_code < 32;
LOGI("Got key event %d %d", type, key_code);
- if (input_handler_->OnKeyEvent(key_event, when, flags, key_code,
- meta_state, repeat) != 0) {
+
+ if (input_handler_->OnKeyEvent(key_event, when, key_code,
+ isAltKeyDown, isCtrlKeyDown, isShiftKeyDown,
+ repeat) != 0) {
return false;
}
return true;
« no previous file with comments | « no previous file | runtime/embedders/openglui/common/gl.dart » ('j') | runtime/embedders/openglui/common/gl.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698