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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 AccessibilityMode GetAccessibilityMode() const override; | 470 AccessibilityMode GetAccessibilityMode() const override; |
474 void AccessibilityEventReceived( | 471 void AccessibilityEventReceived( |
475 const std::vector<AXEventNotificationDetails>& details) override; | 472 const std::vector<AXEventNotificationDetails>& details) override; |
476 void AccessibilityLocationChangesReceived( | 473 void AccessibilityLocationChangesReceived( |
477 const std::vector<AXLocationChangeNotificationDetails>& details) override; | 474 const std::vector<AXLocationChangeNotificationDetails>& details) override; |
478 RenderFrameHost* GetGuestByInstanceID( | 475 RenderFrameHost* GetGuestByInstanceID( |
479 RenderFrameHost* render_frame_host, | 476 RenderFrameHost* render_frame_host, |
480 int browser_plugin_instance_id) override; | 477 int browser_plugin_instance_id) override; |
481 device::GeolocationServiceContext* GetGeolocationServiceContext() override; | 478 device::GeolocationServiceContext* GetGeolocationServiceContext() override; |
482 device::WakeLockServiceContext* GetWakeLockServiceContext() override; | 479 device::WakeLockServiceContext* GetWakeLockServiceContext() override; |
| 480 ScreenOrientationProvider* GetScreenOrientationProvider() override; |
483 void EnterFullscreenMode(const GURL& origin) override; | 481 void EnterFullscreenMode(const GURL& origin) override; |
484 void ExitFullscreenMode(bool will_cause_resize) override; | 482 void ExitFullscreenMode(bool will_cause_resize) override; |
485 bool ShouldRouteMessageEvent( | 483 bool ShouldRouteMessageEvent( |
486 RenderFrameHost* target_rfh, | 484 RenderFrameHost* target_rfh, |
487 SiteInstance* source_site_instance) const override; | 485 SiteInstance* source_site_instance) const override; |
488 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 486 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
489 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 487 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
490 const GURL& url) override; | 488 const GURL& url) override; |
491 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 489 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
492 | 490 |
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1369 bool force_disable_overscroll_content_; | 1367 bool force_disable_overscroll_content_; |
1370 | 1368 |
1371 // Whether the last JavaScript dialog shown was suppressed. Used for testing. | 1369 // Whether the last JavaScript dialog shown was suppressed. Used for testing. |
1372 bool last_dialog_suppressed_; | 1370 bool last_dialog_suppressed_; |
1373 | 1371 |
1374 std::unique_ptr<device::GeolocationServiceContext> | 1372 std::unique_ptr<device::GeolocationServiceContext> |
1375 geolocation_service_context_; | 1373 geolocation_service_context_; |
1376 | 1374 |
1377 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; | 1375 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; |
1378 | 1376 |
1379 std::unique_ptr<ScreenOrientationDispatcherHost> | 1377 std::unique_ptr<ScreenOrientation> screen_orientation_; |
1380 screen_orientation_dispatcher_host_; | |
1381 | 1378 |
1382 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; | 1379 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; |
1383 | 1380 |
1384 // The accessibility mode for all frames. This is queried when each frame | 1381 // The accessibility mode for all frames. This is queried when each frame |
1385 // is created, and broadcast to all frames when it changes. | 1382 // is created, and broadcast to all frames when it changes. |
1386 AccessibilityMode accessibility_mode_; | 1383 AccessibilityMode accessibility_mode_; |
1387 | 1384 |
1388 // Monitors power levels for audio streams associated with this WebContents. | 1385 // Monitors power levels for audio streams associated with this WebContents. |
1389 AudioStreamMonitor audio_stream_monitor_; | 1386 AudioStreamMonitor audio_stream_monitor_; |
1390 | 1387 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 // Adds/removes a callback called on creation of each new WebContents. | 1449 // Adds/removes a callback called on creation of each new WebContents. |
1453 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1450 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
1454 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1451 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
1455 | 1452 |
1456 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1453 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
1457 }; | 1454 }; |
1458 | 1455 |
1459 } // namespace content | 1456 } // namespace content |
1460 | 1457 |
1461 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1458 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |