Index: content/renderer/render_frame_impl.cc |
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc |
index 3cf9e9b856fb9c83a4485e4129e9acf60d8d37c9..8bb2439498d8fb7e2e5ba2d18c9a4d84484d1a87 100644 |
--- a/content/renderer/render_frame_impl.cc |
+++ b/content/renderer/render_frame_impl.cc |
@@ -102,6 +102,7 @@ |
#include "content/renderer/shared_worker_repository.h" |
#include "content/renderer/skia_benchmarking_extension.h" |
#include "content/renderer/stats_collection_controller.h" |
+#include "content/renderer/vr_dispatcher.h" |
#include "content/renderer/web_ui_extension.h" |
#include "content/renderer/websharedworker_proxy.h" |
#include "gin/modules/module_registry.h" |
@@ -689,6 +690,7 @@ RenderFrameImpl::RenderFrameImpl(RenderViewImpl* render_view, int routing_id) |
manifest_manager_(NULL), |
accessibility_mode_(AccessibilityModeOff), |
renderer_accessibility_(NULL), |
+ vr_dispatcher_(NULL), |
weak_factory_(this) { |
std::pair<RoutingIDFrameMap::iterator, bool> result = |
g_routing_id_frame_map.Get().insert(std::make_pair(routing_id_, this)); |
@@ -3793,6 +3795,14 @@ blink::WebPermissionClient* RenderFrameImpl::permissionClient() { |
return permission_client_.get(); |
} |
+blink::WebVRClient* RenderFrameImpl::webVRClient() { |
+ if (!vr_dispatcher_) |
+ vr_dispatcher_ = new VRDispatcher(this); |
Ted C
2015/04/24 01:06:07
who deletes this? should it be a scoped_ptr like
|
+ |
+ return vr_dispatcher_; |
+} |
+ |
Ted C
2015/04/24 01:06:07
extra blank line here.
|
+ |
void RenderFrameImpl::DidPlay(blink::WebMediaPlayer* player) { |
Send(new FrameHostMsg_MediaPlayingNotification( |
routing_id_, reinterpret_cast<int64>(player), player->hasVideo(), |