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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
216 | 216 |
217 DevToolsAgent* devtools_agent() { return devtools_agent_; } | 217 DevToolsAgent* devtools_agent() { return devtools_agent_; } |
218 | 218 |
219 // This is called right after creation with the WebLocalFrame for this | 219 // This is called right after creation with the WebLocalFrame for this |
220 // RenderFrame. It must be called before Initialize. | 220 // RenderFrame. It must be called before Initialize. |
221 void SetWebFrame(blink::WebLocalFrame* web_frame); | 221 void SetWebFrame(blink::WebLocalFrame* web_frame); |
222 | 222 |
223 // This method must be called after the frame has been added to the frame | 223 // This method must be called after the frame has been added to the frame |
224 // tree. It creates all objects that depend on the frame being at its proper | 224 // tree. It creates all objects that depend on the frame being at its proper |
225 // spot. | 225 // spot. |
226 void Initialize(); | 226 void Initialize(bool is_lofi = false); |
mmenke
2015/09/29 16:35:58
The style guide doesn't generally allow default ar
megjablon
2015/09/29 21:20:07
@nasko who wanted this so we didn't have to touch
| |
227 | 227 |
228 // Notifications from RenderWidget. | 228 // Notifications from RenderWidget. |
229 void WasHidden(); | 229 void WasHidden(); |
230 void WasShown(); | 230 void WasShown(); |
231 void WidgetWillClose(); | 231 void WidgetWillClose(); |
232 | 232 |
233 // Start/Stop loading notifications. | 233 // Start/Stop loading notifications. |
234 // TODO(nasko): Those are page-level methods at this time and come from | 234 // TODO(nasko): Those are page-level methods at this time and come from |
235 // WebViewClient. We should move them to be WebFrameClient calls and put | 235 // WebViewClient. We should move them to be WebFrameClient calls and put |
236 // logic in the browser side to balance starts/stops. | 236 // logic in the browser side to balance starts/stops. |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
360 bool IsFTPDirectoryListing() override; | 360 bool IsFTPDirectoryListing() override; |
361 void AttachGuest(int element_instance_id) override; | 361 void AttachGuest(int element_instance_id) override; |
362 void DetachGuest(int element_instance_id) override; | 362 void DetachGuest(int element_instance_id) override; |
363 void SetSelectedText(const base::string16& selection_text, | 363 void SetSelectedText(const base::string16& selection_text, |
364 size_t offset, | 364 size_t offset, |
365 const gfx::Range& range) override; | 365 const gfx::Range& range) override; |
366 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, | 366 void EnsureMojoBuiltinsAreAvailable(v8::Isolate* isolate, |
367 v8::Local<v8::Context> context) override; | 367 v8::Local<v8::Context> context) override; |
368 void AddMessageToConsole(ConsoleMessageLevel level, | 368 void AddMessageToConsole(ConsoleMessageLevel level, |
369 const std::string& message) override; | 369 const std::string& message) override; |
370 bool IsLoFiOn() override; | |
370 | 371 |
371 // blink::WebFrameClient implementation: | 372 // blink::WebFrameClient implementation: |
372 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 373 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
373 const blink::WebPluginParams& params); | 374 const blink::WebPluginParams& params); |
374 virtual blink::WebMediaPlayer* createMediaPlayer( | 375 virtual blink::WebMediaPlayer* createMediaPlayer( |
375 blink::WebLocalFrame* frame, | 376 blink::WebLocalFrame* frame, |
376 const blink::WebURL& url, | 377 const blink::WebURL& url, |
377 blink::WebMediaPlayerClient* client, | 378 blink::WebMediaPlayerClient* client, |
378 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, | 379 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
379 blink::WebContentDecryptionModule* initial_cdm); | 380 blink::WebContentDecryptionModule* initial_cdm); |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1026 RendererAccessibility* renderer_accessibility_; | 1027 RendererAccessibility* renderer_accessibility_; |
1027 | 1028 |
1028 scoped_ptr<PermissionDispatcher> permission_client_; | 1029 scoped_ptr<PermissionDispatcher> permission_client_; |
1029 | 1030 |
1030 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; | 1031 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; |
1031 | 1032 |
1032 scoped_ptr<blink::WebBluetooth> bluetooth_; | 1033 scoped_ptr<blink::WebBluetooth> bluetooth_; |
1033 | 1034 |
1034 scoped_ptr<blink::WebUSBClient> usb_client_; | 1035 scoped_ptr<blink::WebUSBClient> usb_client_; |
1035 | 1036 |
1037 // Whether or not to use Lo-Fi for this frame. | |
1038 bool is_lofi_; | |
1039 | |
1036 #if defined(ENABLE_WEBVR) | 1040 #if defined(ENABLE_WEBVR) |
1037 // The VR dispatcher attached to the frame, lazily initialized. | 1041 // The VR dispatcher attached to the frame, lazily initialized. |
1038 scoped_ptr<VRDispatcher> vr_dispatcher_; | 1042 scoped_ptr<VRDispatcher> vr_dispatcher_; |
1039 #endif | 1043 #endif |
1040 | 1044 |
1041 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1045 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1042 // The external popup for the currently showing select popup. | 1046 // The external popup for the currently showing select popup. |
1043 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1047 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1044 #endif | 1048 #endif |
1045 | 1049 |
1046 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1050 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1047 | 1051 |
1048 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1052 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1049 }; | 1053 }; |
1050 | 1054 |
1051 } // namespace content | 1055 } // namespace content |
1052 | 1056 |
1053 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1057 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |