| 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 ScreenOrientationProvider* GetScreenOrientationProvider() const; |
| 213 |
| 213 bool should_normally_be_visible() { return should_normally_be_visible_; } | 214 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 214 | 215 |
| 215 // Indicate if the window has been occluded, and pass this to the views, only | 216 // 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 | 217 // if there is no active capture going on (otherwise it is dropped on the |
| 217 // floor). | 218 // floor). |
| 218 void WasOccluded(); | 219 void WasOccluded(); |
| 219 void WasUnOccluded(); | 220 void WasUnOccluded(); |
| 220 | 221 |
| 221 // Broadcasts the mode change to all frames. | 222 // Broadcasts the mode change to all frames. |
| 222 void SetAccessibilityMode(AccessibilityMode mode); | 223 void SetAccessibilityMode(AccessibilityMode mode); |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 AccessibilityMode GetAccessibilityMode() const override; | 468 AccessibilityMode GetAccessibilityMode() const override; |
| 468 void AccessibilityEventReceived( | 469 void AccessibilityEventReceived( |
| 469 const std::vector<AXEventNotificationDetails>& details) override; | 470 const std::vector<AXEventNotificationDetails>& details) override; |
| 470 void AccessibilityLocationChangesReceived( | 471 void AccessibilityLocationChangesReceived( |
| 471 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 472 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
| 472 RenderFrameHost* GetGuestByInstanceID( | 473 RenderFrameHost* GetGuestByInstanceID( |
| 473 RenderFrameHost* render_frame_host, | 474 RenderFrameHost* render_frame_host, |
| 474 int browser_plugin_instance_id) override; | 475 int browser_plugin_instance_id) override; |
| 475 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 476 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
| 476 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 477 device::WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 477 ScreenOrientationProvider* GetScreenOrientationProvider() override; | |
| 478 void EnterFullscreenMode(const GURL& origin) override; | 478 void EnterFullscreenMode(const GURL& origin) override; |
| 479 void ExitFullscreenMode(bool will_cause_resize) override; | 479 void ExitFullscreenMode(bool will_cause_resize) override; |
| 480 bool ShouldRouteMessageEvent( | 480 bool ShouldRouteMessageEvent( |
| 481 RenderFrameHost* target_rfh, | 481 RenderFrameHost* target_rfh, |
| 482 SiteInstance* source_site_instance) const override; | 482 SiteInstance* source_site_instance) const override; |
| 483 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 483 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 484 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 484 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 485 const GURL& url) override; | 485 const GURL& url) override; |
| 486 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 486 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 487 void OnFocusedElementChangedInFrame( | 487 void OnFocusedElementChangedInFrame( |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1430 bool force_disable_overscroll_content_; | 1430 bool force_disable_overscroll_content_; |
| 1431 | 1431 |
| 1432 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1432 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1433 bool last_dialog_suppressed_; | 1433 bool last_dialog_suppressed_; |
| 1434 | 1434 |
| 1435 std::unique_ptr<device::GeolocationServiceContext> | 1435 std::unique_ptr<device::GeolocationServiceContext> |
| 1436 geolocation_service_context_; | 1436 geolocation_service_context_; |
| 1437 | 1437 |
| 1438 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1438 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; |
| 1439 | 1439 |
| 1440 std::unique_ptr<ScreenOrientation> screen_orientation_; | 1440 std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_; |
| 1441 | 1441 |
| 1442 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1442 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1443 | 1443 |
| 1444 // The accessibility mode for all frames. This is queried when each frame | 1444 // The accessibility mode for all frames. This is queried when each frame |
| 1445 // is created, and broadcast to all frames when it changes. | 1445 // is created, and broadcast to all frames when it changes. |
| 1446 AccessibilityMode accessibility_mode_; | 1446 AccessibilityMode accessibility_mode_; |
| 1447 | 1447 |
| 1448 // Monitors power levels for audio streams associated with this WebContents. | 1448 // Monitors power levels for audio streams associated with this WebContents. |
| 1449 AudioStreamMonitor audio_stream_monitor_; | 1449 AudioStreamMonitor audio_stream_monitor_; |
| 1450 | 1450 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1514 // Adds/removes a callback called on creation of each new WebContents. | 1514 // Adds/removes a callback called on creation of each new WebContents. |
| 1515 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1515 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1516 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1516 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1517 | 1517 |
| 1518 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1518 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1519 }; | 1519 }; |
| 1520 | 1520 |
| 1521 } // namespace content | 1521 } // namespace content |
| 1522 | 1522 |
| 1523 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1523 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |