| OLD | NEW |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 class ScreenOrientationDispatcher; | 105 class ScreenOrientationDispatcher; |
| 106 class UserMediaClientImpl; | 106 class UserMediaClientImpl; |
| 107 enum class SandboxFlags; | 107 enum class SandboxFlags; |
| 108 struct CommonNavigationParams; | 108 struct CommonNavigationParams; |
| 109 struct CustomContextMenuContext; | 109 struct CustomContextMenuContext; |
| 110 struct FrameReplicationState; | 110 struct FrameReplicationState; |
| 111 struct NavigationParams; | 111 struct NavigationParams; |
| 112 struct RequestNavigationParams; | 112 struct RequestNavigationParams; |
| 113 struct ResourceResponseHead; | 113 struct ResourceResponseHead; |
| 114 struct StartNavigationParams; | 114 struct StartNavigationParams; |
| 115 class VRDispatcher; |
| 115 | 116 |
| 116 class CONTENT_EXPORT RenderFrameImpl | 117 class CONTENT_EXPORT RenderFrameImpl |
| 117 : public RenderFrame, | 118 : public RenderFrame, |
| 118 NON_EXPORTED_BASE(public blink::WebFrameClient), | 119 NON_EXPORTED_BASE(public blink::WebFrameClient), |
| 119 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { | 120 NON_EXPORTED_BASE(public media::WebMediaPlayerDelegate) { |
| 120 public: | 121 public: |
| 121 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 122 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
| 122 // frame belongs to. | 123 // frame belongs to. |
| 123 // Callers *must* call |SetWebFrame| immediately after creation. | 124 // Callers *must* call |SetWebFrame| immediately after creation. |
| 124 // Note: This is called only when RenderFrame is created by Blink through | 125 // Note: This is called only when RenderFrame is created by Blink through |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 int match_index, | 525 int match_index, |
| 525 const blink::WebAXObject& start_object, | 526 const blink::WebAXObject& start_object, |
| 526 int start_offset, | 527 int start_offset, |
| 527 const blink::WebAXObject& end_object, | 528 const blink::WebAXObject& end_object, |
| 528 int end_offset); | 529 int end_offset); |
| 529 virtual void didChangeManifest(blink::WebLocalFrame*); | 530 virtual void didChangeManifest(blink::WebLocalFrame*); |
| 530 virtual void didChangeDefaultPresentation(blink::WebLocalFrame*); | 531 virtual void didChangeDefaultPresentation(blink::WebLocalFrame*); |
| 531 virtual bool enterFullscreen(); | 532 virtual bool enterFullscreen(); |
| 532 virtual bool exitFullscreen(); | 533 virtual bool exitFullscreen(); |
| 533 virtual blink::WebPermissionClient* permissionClient(); | 534 virtual blink::WebPermissionClient* permissionClient(); |
| 535 blink::WebVRClient* webVRClient() override; |
| 534 | 536 |
| 535 // WebMediaPlayerDelegate implementation: | 537 // WebMediaPlayerDelegate implementation: |
| 536 void DidPlay(blink::WebMediaPlayer* player) override; | 538 void DidPlay(blink::WebMediaPlayer* player) override; |
| 537 void DidPause(blink::WebMediaPlayer* player) override; | 539 void DidPause(blink::WebMediaPlayer* player) override; |
| 538 void PlayerGone(blink::WebMediaPlayer* player) override; | 540 void PlayerGone(blink::WebMediaPlayer* player) override; |
| 539 | 541 |
| 540 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move | 542 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move |
| 541 // this back to private member. | 543 // this back to private member. |
| 542 void OnNavigate(const CommonNavigationParams& common_params, | 544 void OnNavigate(const CommonNavigationParams& common_params, |
| 543 const StartNavigationParams& start_params, | 545 const StartNavigationParams& start_params, |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 | 921 |
| 920 // The current accessibility mode. | 922 // The current accessibility mode. |
| 921 AccessibilityMode accessibility_mode_; | 923 AccessibilityMode accessibility_mode_; |
| 922 | 924 |
| 923 // Only valid if |accessibility_mode_| is anything other than | 925 // Only valid if |accessibility_mode_| is anything other than |
| 924 // AccessibilityModeOff. | 926 // AccessibilityModeOff. |
| 925 RendererAccessibility* renderer_accessibility_; | 927 RendererAccessibility* renderer_accessibility_; |
| 926 | 928 |
| 927 scoped_ptr<PermissionDispatcher> permission_client_; | 929 scoped_ptr<PermissionDispatcher> permission_client_; |
| 928 | 930 |
| 931 // The VR dispatcher attached to the frame, lazily initialized. |
| 932 VRDispatcher* vr_dispatcher_; |
| 933 |
| 929 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 934 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 930 // The external popup for the currently showing select popup. | 935 // The external popup for the currently showing select popup. |
| 931 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 936 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
| 932 #endif | 937 #endif |
| 933 | 938 |
| 934 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 939 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 935 | 940 |
| 936 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 941 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 937 }; | 942 }; |
| 938 | 943 |
| 939 } // namespace content | 944 } // namespace content |
| 940 | 945 |
| 941 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 946 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |