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

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: 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 unified diff | Download patch
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
965 AccessibilityMode accessibility_mode_; 970 AccessibilityMode accessibility_mode_;
966 971
967 // Only valid if |accessibility_mode_| is anything other than 972 // Only valid if |accessibility_mode_| is anything other than
968 // AccessibilityModeOff. 973 // AccessibilityModeOff.
969 RendererAccessibility* renderer_accessibility_; 974 RendererAccessibility* renderer_accessibility_;
970 975
971 scoped_ptr<PermissionDispatcher> permission_client_; 976 scoped_ptr<PermissionDispatcher> permission_client_;
972 977
973 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; 978 scoped_ptr<blink::WebAppBannerClient> app_banner_client_;
974 979
980 #if defined(ENABLE_WEBVR)
981 // The VR dispatcher attached to the frame, lazily initialized.
982 scoped_ptr<VRDispatcher> vr_dispatcher_;
983 #endif
984
975 #if defined(OS_MACOSX) || defined(OS_ANDROID) 985 #if defined(OS_MACOSX) || defined(OS_ANDROID)
976 // The external popup for the currently showing select popup. 986 // The external popup for the currently showing select popup.
977 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 987 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
978 #endif 988 #endif
979 989
980 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 990 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
981 991
982 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 992 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
983 }; 993 };
984 994
985 } // namespace content 995 } // namespace content
986 996
987 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 997 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« 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