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

Unified Diff: content/renderer/render_frame_impl.h

Issue 829803003: Adding Chrome-side WebVR interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved cardboard-java gyp and gn config into third_party Created 5 years, 8 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 5c4c0589cdbb807b966b99667677a288888d5739..343fd7cb7fb1602d4875132a081064fb49b07548 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -112,6 +112,7 @@ struct NavigationParams;
struct RequestNavigationParams;
struct ResourceResponseHead;
struct StartNavigationParams;
+class VRDispatcher;
class CONTENT_EXPORT RenderFrameImpl
: public RenderFrame,
@@ -531,6 +532,7 @@ class CONTENT_EXPORT RenderFrameImpl
virtual bool enterFullscreen();
virtual bool exitFullscreen();
virtual blink::WebPermissionClient* permissionClient();
+ blink::WebVRClient* webVRClient() override;
// WebMediaPlayerDelegate implementation:
void DidPlay(blink::WebMediaPlayer* player) override;
@@ -926,6 +928,9 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<PermissionDispatcher> permission_client_;
+ // The VR dispatcher attached to the frame, lazily initialized.
+ VRDispatcher* vr_dispatcher_;
+
#if defined(OS_MACOSX) || defined(OS_ANDROID)
// The external popup for the currently showing select popup.
scoped_ptr<ExternalPopupMenu> external_popup_menu_;

Powered by Google App Engine
This is Rietveld 408576698