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

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: Missed one cardboard reference Created 5 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 | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 9c3b29b7b5e69d6faa88369594c46645c0ba23f0..8940e64faf2f4b75cbbebd08fae015e3bfa45dce 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -114,6 +114,7 @@ struct RequestNavigationParams;
struct ResourceResponseHead;
struct StartNavigationParams;
struct StreamOverrideParameters;
+class VRDispatcher;
class CONTENT_EXPORT RenderFrameImpl
: public RenderFrame,
@@ -530,6 +531,10 @@ class CONTENT_EXPORT RenderFrameImpl
virtual blink::WebPermissionClient* permissionClient();
virtual blink::WebAppBannerClient* appBannerClient();
+#if defined(ENABLE_WEBVR)
+ blink::WebVRClient* webVRClient() override;
+#endif
+
// WebMediaPlayerDelegate implementation:
void DidPlay(blink::WebMediaPlayer* player) override;
void DidPause(blink::WebMediaPlayer* player) override;
@@ -972,6 +977,11 @@ class CONTENT_EXPORT RenderFrameImpl
scoped_ptr<blink::WebAppBannerClient> app_banner_client_;
+#if defined(ENABLE_WEBVR)
+ // The VR dispatcher attached to the frame, lazily initialized.
+ scoped_ptr<VRDispatcher> vr_dispatcher_;
+#endif
+
#if defined(OS_MACOSX) || defined(OS_ANDROID)
// The external popup for the currently showing select popup.
scoped_ptr<ExternalPopupMenu> external_popup_menu_;
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698