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

Unified Diff: third_party/WebKit/Source/modules/vr/NavigatorVR.cpp

Issue 2754133002: Remove gesture token from vrdisplayactivate (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
index 10b97ce59f8527b26ffad074ea52ec5c95d802b0..0e084a981b66d14ee215b62359d1c07ba73ec718 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVR.cpp
@@ -7,7 +7,6 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "core/dom/DOMException.h"
#include "core/dom/Document.h"
-#include "core/dom/DocumentUserGestureToken.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/Fullscreen.h"
#include "core/frame/LocalDOMWindow.h"
@@ -19,7 +18,6 @@
#include "modules/vr/VRDisplay.h"
#include "modules/vr/VRGetDevicesCallback.h"
#include "modules/vr/VRPose.h"
-#include "platform/UserGestureIndicator.h"
#include "public/platform/Platform.h"
#include "wtf/PtrUtil.h"
@@ -131,12 +129,10 @@ void NavigatorVR::enqueueVREvent(VRDisplayEvent* event) {
supplementable()->frame()->domWindow()->enqueueWindowEvent(event);
}
-void NavigatorVR::dispatchVRGestureEvent(VRDisplayEvent* event) {
+void NavigatorVR::dispatchVREvent(VRDisplayEvent* event) {
if (!(supplementable()->frame()))
return;
- UserGestureIndicator gestureIndicator(
- DocumentUserGestureToken::create(document()));
LocalDOMWindow* window = supplementable()->frame()->domWindow();
DCHECK(window);
event->setTarget(window);
« no previous file with comments | « third_party/WebKit/Source/modules/vr/NavigatorVR.h ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698