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

Side by Side 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: Addressed rockot@'s feedback. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 class ScreenOrientationDispatcher; 107 class ScreenOrientationDispatcher;
108 class UserMediaClientImpl; 108 class UserMediaClientImpl;
109 struct CommonNavigationParams; 109 struct CommonNavigationParams;
110 struct CustomContextMenuContext; 110 struct CustomContextMenuContext;
111 struct FrameReplicationState; 111 struct FrameReplicationState;
112 struct NavigationParams; 112 struct NavigationParams;
113 struct RequestNavigationParams; 113 struct RequestNavigationParams;
114 struct ResourceResponseHead; 114 struct ResourceResponseHead;
115 struct StartNavigationParams; 115 struct StartNavigationParams;
116 struct StreamOverrideParameters; 116 struct StreamOverrideParameters;
117 class VRDispatcher;
117 118
118 class CONTENT_EXPORT RenderFrameImpl 119 class CONTENT_EXPORT RenderFrameImpl
119 : public RenderFrame, 120 : public RenderFrame,
120 NON_EXPORTED_BASE(public blink::WebFrameClient), 121 NON_EXPORTED_BASE(public blink::WebFrameClient),
121 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { 122 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) {
122 public: 123 public:
123 // Creates a new RenderFrame. |render_view| is the RenderView object that this 124 // Creates a new RenderFrame. |render_view| is the RenderView object that this
124 // frame belongs to. 125 // frame belongs to.
125 // Callers *must* call |SetWebFrame| immediately after creation. 126 // Callers *must* call |SetWebFrame| immediately after creation.
126 // Note: This is called only when RenderFrame is created by Blink through 127 // Note: This is called only when RenderFrame is created by Blink through
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 int start_offset, 524 int start_offset,
524 const blink::WebAXObject& end_object, 525 const blink::WebAXObject& end_object,
525 int end_offset); 526 int end_offset);
526 virtual void didChangeManifest(blink::WebLocalFrame*); 527 virtual void didChangeManifest(blink::WebLocalFrame*);
527 virtual void didChangeDefaultPresentation(blink::WebLocalFrame*); 528 virtual void didChangeDefaultPresentation(blink::WebLocalFrame*);
528 virtual bool enterFullscreen(); 529 virtual bool enterFullscreen();
529 virtual bool exitFullscreen(); 530 virtual bool exitFullscreen();
530 virtual blink::WebPermissionClient* permissionClient(); 531 virtual blink::WebPermissionClient* permissionClient();
531 virtual blink::WebAppBannerClient* appBannerClient(); 532 virtual blink::WebAppBannerClient* appBannerClient();
532 533
534 #if defined(ENABLE_WEBVR)
535 blink::WebVRClient* webVRClient() override;
536 #endif
537
533 // WebMediaPlayerDelegate implementation: 538 // WebMediaPlayerDelegate implementation:
534 void DidPlay(blink::WebMediaPlayer* player) override; 539 void DidPlay(blink::WebMediaPlayer* player) override;
535 void DidPause(blink::WebMediaPlayer* player) override; 540 void DidPause(blink::WebMediaPlayer* player) override;
536 void PlayerGone(blink::WebMediaPlayer* player) override; 541 void PlayerGone(blink::WebMediaPlayer* player) override;
537 542
538 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move 543 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move
539 // this back to private member. 544 // this back to private member.
540 void OnNavigate(const CommonNavigationParams& common_params, 545 void OnNavigate(const CommonNavigationParams& common_params,
541 const StartNavigationParams& start_params, 546 const StartNavigationParams& start_params,
542 const RequestNavigationParams& request_params); 547 const RequestNavigationParams& request_params);
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 AccessibilityMode accessibility_mode_; 973 AccessibilityMode accessibility_mode_;
969 974
970 // Only valid if |accessibility_mode_| is anything other than 975 // Only valid if |accessibility_mode_| is anything other than
971 // AccessibilityModeOff. 976 // AccessibilityModeOff.
972 RendererAccessibility* renderer_accessibility_; 977 RendererAccessibility* renderer_accessibility_;
973 978
974 scoped_ptr<PermissionDispatcher> permission_client_; 979 scoped_ptr<PermissionDispatcher> permission_client_;
975 980
976 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; 981 scoped_ptr<blink::WebAppBannerClient> app_banner_client_;
977 982
983 #if defined(ENABLE_WEBVR)
984 // The VR dispatcher attached to the frame, lazily initialized.
985 scoped_ptr<VRDispatcher> vr_dispatcher_;
986 #endif
987
978 #if defined(OS_MACOSX) || defined(OS_ANDROID) 988 #if defined(OS_MACOSX) || defined(OS_ANDROID)
979 // The external popup for the currently showing select popup. 989 // The external popup for the currently showing select popup.
980 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 990 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
981 #endif 991 #endif
982 992
983 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 993 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
984 994
985 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 995 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
986 }; 996 };
987 997
988 } // namespace content 998 } // namespace content
989 999
990 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1000 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698