Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index 36ed29a02c0033e96084d666aac89411a4a342b0..42422e97cd78a41cd9e2025a7cf41efcb2f5a0a0 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -186,6 +186,10 @@ |
#include "media/renderers/default_renderer_factory.h" |
#endif |
+#if defined(ENABLE_WEBVR) |
+#include "content/renderer/vr/vr_dispatcher.h" |
+#endif |
+ |
using blink::WebContextMenuData; |
using blink::WebData; |
using blink::WebDataSource; |
@@ -3738,6 +3742,15 @@ blink::WebAppBannerClient* RenderFrameImpl::appBannerClient() { |
return app_banner_client_.get(); |
} |
+#if defined(ENABLE_WEBVR) |
+blink::WebVRClient* RenderFrameImpl::webVRClient() { |
+ if (!vr_dispatcher_) |
+ vr_dispatcher_.reset(new VRDispatcher(GetServiceRegistry())); |
+ |
+ return vr_dispatcher_.get(); |
+} |
+#endif |
+ |
void RenderFrameImpl::DidPlay(blink::WebMediaPlayer* player) { |
Send(new FrameHostMsg_MediaPlayingNotification( |
routing_id_, reinterpret_cast<int64>(player), player->hasVideo(), |