| 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 ScreenOrientation; | |
| 76 class ScreenOrientationProvider; | 75 class ScreenOrientationProvider; |
| 77 class SiteInstance; | 76 class SiteInstance; |
| 78 class TestWebContents; | 77 class TestWebContents; |
| 79 class TextInputManager; | 78 class TextInputManager; |
| 80 class WakeLockServiceContext; | 79 class WakeLockServiceContext; |
| 81 class WebContentsAudioMuter; | 80 class WebContentsAudioMuter; |
| 82 class WebContentsBindingSet; | 81 class WebContentsBindingSet; |
| 83 class WebContentsDelegate; | 82 class WebContentsDelegate; |
| 84 class WebContentsImpl; | 83 class WebContentsImpl; |
| 85 class WebContentsView; | 84 class WebContentsView; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 202 |
| 204 // A redirect was received while requesting a resource. | 203 // A redirect was received while requesting a resource. |
| 205 void DidGetRedirectForResourceRequest( | 204 void DidGetRedirectForResourceRequest( |
| 206 const ResourceRedirectDetails& details); | 205 const ResourceRedirectDetails& details); |
| 207 | 206 |
| 208 // Notify observers that the web contents has been focused. | 207 // Notify observers that the web contents has been focused. |
| 209 void NotifyWebContentsFocused(); | 208 void NotifyWebContentsFocused(); |
| 210 | 209 |
| 211 WebContentsView* GetView() const; | 210 WebContentsView* GetView() const; |
| 212 | 211 |
| 212 void OnScreenOrientationChange(); |
| 213 |
| 214 ScreenOrientationProvider* screen_orientation_provider_for_testing() const { |
| 215 return screen_orientation_provider_.get(); |
| 216 } |
| 217 |
| 213 bool should_normally_be_visible() { return should_normally_be_visible_; } | 218 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 214 | 219 |
| 215 // Indicate if the window has been occluded, and pass this to the views, only | 220 // Indicate if the window has been occluded, and pass this to the views, only |
| 216 // if there is no active capture going on (otherwise it is dropped on the | 221 // if there is no active capture going on (otherwise it is dropped on the |
| 217 // floor). | 222 // floor). |
| 218 void WasOccluded(); | 223 void WasOccluded(); |
| 219 void WasUnOccluded(); | 224 void WasUnOccluded(); |
| 220 | 225 |
| 221 // Broadcasts the mode change to all frames. | 226 // Broadcasts the mode change to all frames. |
| 222 void SetAccessibilityMode(AccessibilityMode mode); | 227 void SetAccessibilityMode(AccessibilityMode mode); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 AccessibilityMode GetAccessibilityMode() const override; | 476 AccessibilityMode GetAccessibilityMode() const override; |
| 472 void AccessibilityEventReceived( | 477 void AccessibilityEventReceived( |
| 473 const std::vector<AXEventNotificationDetails>& details) override; | 478 const std::vector<AXEventNotificationDetails>& details) override; |
| 474 void AccessibilityLocationChangesReceived( | 479 void AccessibilityLocationChangesReceived( |
| 475 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 480 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 476 RenderFrameHost* GetGuestByInstanceID( | 481 RenderFrameHost* GetGuestByInstanceID( |
| 477 RenderFrameHost* render_frame_host, | 482 RenderFrameHost* render_frame_host, |
| 478 int browser_plugin_instance_id) override; | 483 int browser_plugin_instance_id) override; |
| 479 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 484 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 480 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 485 device::WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 481 ScreenOrientationProvider* GetScreenOrientationProvider() override; | |
| 482 void EnterFullscreenMode(const GURL& origin) override; | 486 void EnterFullscreenMode(const GURL& origin) override; |
| 483 void ExitFullscreenMode(bool will_cause_resize) override; | 487 void ExitFullscreenMode(bool will_cause_resize) override; |
| 484 bool ShouldRouteMessageEvent( | 488 bool ShouldRouteMessageEvent( |
| 485 RenderFrameHost* target_rfh, | 489 RenderFrameHost* target_rfh, |
| 486 SiteInstance* source_site_instance) const override; | 490 SiteInstance* source_site_instance) const override; |
| 487 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 491 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 488 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 492 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 489 const GURL& url) override; | 493 const GURL& url) override; |
| 490 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 494 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 491 void OnFocusedElementChangedInFrame( | 495 void OnFocusedElementChangedInFrame( |
| (...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 bool force_disable_overscroll_content_; | 1435 bool force_disable_overscroll_content_; |
| 1432 | 1436 |
| 1433 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1437 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1434 bool last_dialog_suppressed_; | 1438 bool last_dialog_suppressed_; |
| 1435 | 1439 |
| 1436 std::unique_ptr<device::GeolocationServiceContext> | 1440 std::unique_ptr<device::GeolocationServiceContext> |
| 1437 geolocation_service_context_; | 1441 geolocation_service_context_; |
| 1438 | 1442 |
| 1439 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1443 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; |
| 1440 | 1444 |
| 1441 std::unique_ptr<ScreenOrientation> screen_orientation_; | 1445 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1442 | 1446 |
| 1443 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1447 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1444 | 1448 |
| 1445 // The accessibility mode for all frames. This is queried when each frame | 1449 // The accessibility mode for all frames. This is queried when each frame |
| 1446 // is created, and broadcast to all frames when it changes. | 1450 // is created, and broadcast to all frames when it changes. |
| 1447 AccessibilityMode accessibility_mode_; | 1451 AccessibilityMode accessibility_mode_; |
| 1448 | 1452 |
| 1449 // Monitors power levels for audio streams associated with this WebContents. | 1453 // Monitors power levels for audio streams associated with this WebContents. |
| 1450 AudioStreamMonitor audio_stream_monitor_; | 1454 AudioStreamMonitor audio_stream_monitor_; |
| 1451 | 1455 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1515 // Adds/removes a callback called on creation of each new WebContents. | 1519 // Adds/removes a callback called on creation of each new WebContents. |
| 1516 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1520 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1517 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1521 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1518 | 1522 |
| 1519 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1523 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1520 }; | 1524 }; |
| 1521 | 1525 |
| 1522 } // namespace content | 1526 } // namespace content |
| 1523 | 1527 |
| 1524 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1528 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |