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

Side by Side Diff: runtime/embedders/openglui/common/input_handler.cc

Issue 13042015: Various OpenGLUI changes: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "embedders/openglui/common/input_handler.h" 5 #include "embedders/openglui/common/input_handler.h"
6 #include "embedders/openglui/common/log.h" 6 #include "embedders/openglui/common/log.h"
7 7
8 InputHandler::InputHandler(VMGlue* vm_glue) 8 InputHandler::InputHandler(VMGlue* vm_glue)
9 : vm_glue_(vm_glue) { 9 : vm_glue_(vm_glue) {
10 } 10 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return -1; // TODO(gram): handle this. 63 return -1; // TODO(gram): handle this.
64 break; 64 break;
65 default: 65 default:
66 return -1; 66 return -1;
67 } 67 }
68 return vm_glue_->OnKeyEvent(function, when, key_code, 68 return vm_glue_->OnKeyEvent(function, when, key_code,
69 isAltKeyDown, isCtrlKeyDown, isShiftKeyDown, 69 isAltKeyDown, isCtrlKeyDown, isShiftKeyDown,
70 repeat); 70 repeat);
71 } 71 }
72 72
73 void InputHandler::OnAccelerometerEvent(float x, float y, float z) {
74 vm_glue_->OnAccelerometerEvent(x, y, z);
75 }
76
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698