| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 class JavaScriptDialogManager; | 65 class JavaScriptDialogManager; |
| 66 class LoaderIOThreadNotifier; | 66 class LoaderIOThreadNotifier; |
| 67 class ManifestManagerHost; | 67 class ManifestManagerHost; |
| 68 class MediaWebContentsObserver; | 68 class MediaWebContentsObserver; |
| 69 class PluginContentOriginWhitelist; | 69 class PluginContentOriginWhitelist; |
| 70 class RenderViewHost; | 70 class RenderViewHost; |
| 71 class RenderViewHostDelegateView; | 71 class RenderViewHostDelegateView; |
| 72 class RenderWidgetHostImpl; | 72 class RenderWidgetHostImpl; |
| 73 class RenderWidgetHostInputEventRouter; | 73 class RenderWidgetHostInputEventRouter; |
| 74 class SavePackage; | 74 class SavePackage; |
| 75 class ScreenOrientationDispatcherHost; | 75 class ScreenOrientation; |
| 76 class ScreenOrientationProvider; |
| 76 class SiteInstance; | 77 class SiteInstance; |
| 77 class TestWebContents; | 78 class TestWebContents; |
| 78 class TextInputManager; | 79 class TextInputManager; |
| 79 class WakeLockServiceContext; | 80 class WakeLockServiceContext; |
| 80 class WebContentsAudioMuter; | 81 class WebContentsAudioMuter; |
| 81 class WebContentsBindingSet; | 82 class WebContentsBindingSet; |
| 82 class WebContentsDelegate; | 83 class WebContentsDelegate; |
| 83 class WebContentsImpl; | 84 class WebContentsImpl; |
| 84 class WebContentsView; | 85 class WebContentsView; |
| 85 class WebContentsViewDelegate; | 86 class WebContentsViewDelegate; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 202 |
| 202 // A redirect was received while requesting a resource. | 203 // A redirect was received while requesting a resource. |
| 203 void DidGetRedirectForResourceRequest( | 204 void DidGetRedirectForResourceRequest( |
| 204 const ResourceRedirectDetails& details); | 205 const ResourceRedirectDetails& details); |
| 205 | 206 |
| 206 // Notify observers that the web contents has been focused. | 207 // Notify observers that the web contents has been focused. |
| 207 void NotifyWebContentsFocused(); | 208 void NotifyWebContentsFocused(); |
| 208 | 209 |
| 209 WebContentsView* GetView() const; | 210 WebContentsView* GetView() const; |
| 210 | 211 |
| 211 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { | |
| 212 return screen_orientation_dispatcher_host_.get(); | |
| 213 } | |
| 214 | |
| 215 bool should_normally_be_visible() { return should_normally_be_visible_; } | 212 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 216 | 213 |
| 217 // Indicate if the window has been occluded, and pass this to the views, only | 214 // Indicate if the window has been occluded, and pass this to the views, only |
| 218 // if there is no active capture going on (otherwise it is dropped on the | 215 // if there is no active capture going on (otherwise it is dropped on the |
| 219 // floor). | 216 // floor). |
| 220 void WasOccluded(); | 217 void WasOccluded(); |
| 221 void WasUnOccluded(); | 218 void WasUnOccluded(); |
| 222 | 219 |
| 223 // Broadcasts the mode change to all frames. | 220 // Broadcasts the mode change to all frames. |
| 224 void SetAccessibilityMode(AccessibilityMode mode); | 221 void SetAccessibilityMode(AccessibilityMode mode); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 AccessibilityMode GetAccessibilityMode() const override; | 473 AccessibilityMode GetAccessibilityMode() const override; |
| 477 void AccessibilityEventReceived( | 474 void AccessibilityEventReceived( |
| 478 const std::vector<AXEventNotificationDetails>& details) override; | 475 const std::vector<AXEventNotificationDetails>& details) override; |
| 479 void AccessibilityLocationChangesReceived( | 476 void AccessibilityLocationChangesReceived( |
| 480 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 477 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 481 RenderFrameHost* GetGuestByInstanceID( | 478 RenderFrameHost* GetGuestByInstanceID( |
| 482 RenderFrameHost* render_frame_host, | 479 RenderFrameHost* render_frame_host, |
| 483 int browser_plugin_instance_id) override; | 480 int browser_plugin_instance_id) override; |
| 484 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 481 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 485 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 482 device::WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 483 ScreenOrientationProvider* GetScreenOrientationProvider() override; |
| 486 void EnterFullscreenMode(const GURL& origin) override; | 484 void EnterFullscreenMode(const GURL& origin) override; |
| 487 void ExitFullscreenMode(bool will_cause_resize) override; | 485 void ExitFullscreenMode(bool will_cause_resize) override; |
| 488 bool ShouldRouteMessageEvent( | 486 bool ShouldRouteMessageEvent( |
| 489 RenderFrameHost* target_rfh, | 487 RenderFrameHost* target_rfh, |
| 490 SiteInstance* source_site_instance) const override; | 488 SiteInstance* source_site_instance) const override; |
| 491 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 489 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 492 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 490 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 493 const GURL& url) override; | 491 const GURL& url) override; |
| 494 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 492 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 495 | 493 |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1374 bool force_disable_overscroll_content_; | 1372 bool force_disable_overscroll_content_; |
| 1375 | 1373 |
| 1376 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1374 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1377 bool last_dialog_suppressed_; | 1375 bool last_dialog_suppressed_; |
| 1378 | 1376 |
| 1379 std::unique_ptr<device::GeolocationServiceContext> | 1377 std::unique_ptr<device::GeolocationServiceContext> |
| 1380 geolocation_service_context_; | 1378 geolocation_service_context_; |
| 1381 | 1379 |
| 1382 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1380 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; |
| 1383 | 1381 |
| 1384 std::unique_ptr<ScreenOrientationDispatcherHost> | 1382 std::unique_ptr<ScreenOrientation> screen_orientation_; |
| 1385 screen_orientation_dispatcher_host_; | |
| 1386 | 1383 |
| 1387 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1384 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1388 | 1385 |
| 1389 // The accessibility mode for all frames. This is queried when each frame | 1386 // The accessibility mode for all frames. This is queried when each frame |
| 1390 // is created, and broadcast to all frames when it changes. | 1387 // is created, and broadcast to all frames when it changes. |
| 1391 AccessibilityMode accessibility_mode_; | 1388 AccessibilityMode accessibility_mode_; |
| 1392 | 1389 |
| 1393 // Monitors power levels for audio streams associated with this WebContents. | 1390 // Monitors power levels for audio streams associated with this WebContents. |
| 1394 AudioStreamMonitor audio_stream_monitor_; | 1391 AudioStreamMonitor audio_stream_monitor_; |
| 1395 | 1392 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 // Adds/removes a callback called on creation of each new WebContents. | 1454 // Adds/removes a callback called on creation of each new WebContents. |
| 1458 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1455 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1459 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1456 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1460 | 1457 |
| 1461 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1458 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1462 }; | 1459 }; |
| 1463 | 1460 |
| 1464 } // namespace content | 1461 } // namespace content |
| 1465 | 1462 |
| 1466 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1463 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |