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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.h

Issue 2941293002: VR: Use more accurate timestamps for input events. (Closed)
Patch Set: Address comments Created 3 years, 6 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 | « chrome/browser/android/vr_shell/vr_controller.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index c41f27a9f1cb19240d7c6bd5ac79b5cb60c5ee03..7b07d5d4be2754428bf3393ea1d8a5ad6c60f9b8 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -19,6 +19,7 @@
#include "chrome/browser/android/vr_shell/vr_controller_model.h"
#include "device/vr/vr_service.mojom.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr.h"
#include "third_party/gvr-android-sdk/src/libraries/headers/vr/gvr/capi/include/gvr_types.h"
#include "ui/gfx/geometry/quaternion.h"
@@ -26,7 +27,7 @@
#include "ui/gfx/native_widget_types.h"
namespace blink {
-class WebInputEvent;
+class WebMouseEvent;
}
namespace gl {
@@ -158,6 +159,9 @@ class VrShellGl : public device::mojom::VRPresentationProvider {
void SendTap(UiElement* target,
const gfx::PointF& target_point,
const gfx::Point& local_point_pixels);
+ std::unique_ptr<blink::WebMouseEvent> MakeMouseEvent(
+ blink::WebInputEvent::Type type,
+ const gfx::Point& location);
void SendImmediateExitRequestIfNecessary();
void GetVisualTargetElement(const gfx::Vector3dF& controller_direction,
gfx::Vector3dF& eye_to_target,
« no previous file with comments | « chrome/browser/android/vr_shell/vr_controller.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698