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