| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 class LoaderIOThreadNotifier; | 67 class LoaderIOThreadNotifier; |
| 68 class ManifestManagerHost; | 68 class ManifestManagerHost; |
| 69 class MediaWebContentsObserver; | 69 class MediaWebContentsObserver; |
| 70 class PluginContentOriginWhitelist; | 70 class PluginContentOriginWhitelist; |
| 71 class PowerSaveBlocker; | 71 class PowerSaveBlocker; |
| 72 class RenderViewHost; | 72 class RenderViewHost; |
| 73 class RenderViewHostDelegateView; | 73 class RenderViewHostDelegateView; |
| 74 class RenderWidgetHostImpl; | 74 class RenderWidgetHostImpl; |
| 75 class RenderWidgetHostInputEventRouter; | 75 class RenderWidgetHostInputEventRouter; |
| 76 class SavePackage; | 76 class SavePackage; |
| 77 class ScreenOrientationDispatcherHost; | 77 class ScreenOrientation; |
| 78 class ScreenOrientationProvider; |
| 78 class SiteInstance; | 79 class SiteInstance; |
| 79 class TestWebContents; | 80 class TestWebContents; |
| 80 class TextInputManager; | 81 class TextInputManager; |
| 81 class WakeLockServiceContext; | 82 class WakeLockServiceContext; |
| 82 class WebContentsAudioMuter; | 83 class WebContentsAudioMuter; |
| 83 class WebContentsBindingSet; | 84 class WebContentsBindingSet; |
| 84 class WebContentsDelegate; | 85 class WebContentsDelegate; |
| 85 class WebContentsImpl; | 86 class WebContentsImpl; |
| 86 class WebContentsView; | 87 class WebContentsView; |
| 87 class WebContentsViewDelegate; | 88 class WebContentsViewDelegate; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 201 |
| 201 // A redirect was received while requesting a resource. | 202 // A redirect was received while requesting a resource. |
| 202 void DidGetRedirectForResourceRequest( | 203 void DidGetRedirectForResourceRequest( |
| 203 const ResourceRedirectDetails& details); | 204 const ResourceRedirectDetails& details); |
| 204 | 205 |
| 205 // Notify observers that the web contents has been focused. | 206 // Notify observers that the web contents has been focused. |
| 206 void NotifyWebContentsFocused(); | 207 void NotifyWebContentsFocused(); |
| 207 | 208 |
| 208 WebContentsView* GetView() const; | 209 WebContentsView* GetView() const; |
| 209 | 210 |
| 210 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() { | |
| 211 return screen_orientation_dispatcher_host_.get(); | |
| 212 } | |
| 213 | |
| 214 bool should_normally_be_visible() { return should_normally_be_visible_; } | 211 bool should_normally_be_visible() { return should_normally_be_visible_; } |
| 215 | 212 |
| 216 // Indicate if the window has been occluded, and pass this to the views, only | 213 // Indicate if the window has been occluded, and pass this to the views, only |
| 217 // if there is no active capture going on (otherwise it is dropped on the | 214 // if there is no active capture going on (otherwise it is dropped on the |
| 218 // floor). | 215 // floor). |
| 219 void WasOccluded(); | 216 void WasOccluded(); |
| 220 void WasUnOccluded(); | 217 void WasUnOccluded(); |
| 221 | 218 |
| 222 // Broadcasts the mode change to all frames. | 219 // Broadcasts the mode change to all frames. |
| 223 void SetAccessibilityMode(AccessibilityMode mode); | 220 void SetAccessibilityMode(AccessibilityMode mode); |
| (...skipping 259 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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1379 bool force_disable_overscroll_content_; | 1377 bool force_disable_overscroll_content_; |
| 1380 | 1378 |
| 1381 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1379 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
| 1382 bool last_dialog_suppressed_; | 1380 bool last_dialog_suppressed_; |
| 1383 | 1381 |
| 1384 std::unique_ptr<device::GeolocationServiceContext> | 1382 std::unique_ptr<device::GeolocationServiceContext> |
| 1385 geolocation_service_context_; | 1383 geolocation_service_context_; |
| 1386 | 1384 |
| 1387 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1385 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; |
| 1388 | 1386 |
| 1389 std::unique_ptr<ScreenOrientationDispatcherHost> | 1387 std::unique_ptr<ScreenOrientation> screen_orientation_; |
| 1390 screen_orientation_dispatcher_host_; | |
| 1391 | 1388 |
| 1392 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1389 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
| 1393 | 1390 |
| 1394 // The accessibility mode for all frames. This is queried when each frame | 1391 // The accessibility mode for all frames. This is queried when each frame |
| 1395 // is created, and broadcast to all frames when it changes. | 1392 // is created, and broadcast to all frames when it changes. |
| 1396 AccessibilityMode accessibility_mode_; | 1393 AccessibilityMode accessibility_mode_; |
| 1397 | 1394 |
| 1398 // Monitors power levels for audio streams associated with this WebContents. | 1395 // Monitors power levels for audio streams associated with this WebContents. |
| 1399 AudioStreamMonitor audio_stream_monitor_; | 1396 AudioStreamMonitor audio_stream_monitor_; |
| 1400 | 1397 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1462 // Adds/removes a callback called on creation of each new WebContents. | 1459 // Adds/removes a callback called on creation of each new WebContents. |
| 1463 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1460 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1464 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1461 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1465 | 1462 |
| 1466 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1463 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1467 }; | 1464 }; |
| 1468 | 1465 |
| 1469 } // namespace content | 1466 } // namespace content |
| 1470 | 1467 |
| 1471 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1468 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |