| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ |
| 7 | 7 |
| 8 #include "third_party/WebKit/public/web/WebInputEvent.h" | 8 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 9 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr_types.h" | 9 #include "third_party/gvr-android-sdk/src/ndk-beta/include/vr/gvr/capi/include/g
vr_types.h" |
| 10 | 10 |
| 11 using blink::WebInputEvent; | 11 using blink::WebInputEvent; |
| 12 | 12 |
| 13 namespace vr_shell { | 13 namespace vr_shell { |
| 14 | 14 |
| 15 typedef struct { | 15 typedef struct { |
| 16 gvr_vec3f delta; | 16 gvr_vec3f delta; |
| 17 int type; | |
| 18 } GestureAngularMove; | 17 } GestureAngularMove; |
| 19 | 18 |
| 20 typedef struct { | 19 typedef struct { |
| 21 gvr_vec2f delta; | 20 gvr_vec2f delta; |
| 22 | 21 |
| 23 // If set, stop_fling means that this scroll should stop flinging, thus | 22 // If set, stop_fling means that this scroll should stop flinging, thus |
| 24 // if an interpreter suppresses it for any reason (e.g., rounds the size | 23 // if an interpreter suppresses it for any reason (e.g., rounds the size |
| 25 // down to 0, thus making it a noop), it will replace it with a Fling | 24 // down to 0, thus making it a noop), it will replace it with a Fling |
| 26 // TAP_DOWN gesture | 25 // TAP_DOWN gesture |
| 27 unsigned stop_fling : 1; | 26 unsigned stop_fling : 1; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 45 GestureButtonsChange buttons; | 44 GestureButtonsChange buttons; |
| 46 GestureAngularMove move; | 45 GestureAngularMove move; |
| 47 } details; | 46 } details; |
| 48 gvr::Vec2f velocity; | 47 gvr::Vec2f velocity; |
| 49 gvr::Vec2f displacement; | 48 gvr::Vec2f displacement; |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 } // namespace vr_shell | 51 } // namespace vr_shell |
| 53 | 52 |
| 54 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ | 53 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GESTURE_H_ |
| OLD | NEW |