Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 2391883006: Mojo-ify implementation of screen orientation locking/unlocking. (Closed)
Patch Set: clup Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
66 class JavaScriptDialogManager; 66 class JavaScriptDialogManager;
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 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 204
204 // A redirect was received while requesting a resource. 205 // A redirect was received while requesting a resource.
205 void DidGetRedirectForResourceRequest( 206 void DidGetRedirectForResourceRequest(
206 const ResourceRedirectDetails& details); 207 const ResourceRedirectDetails& details);
207 208
208 // Notify observers that the web contents has been focused. 209 // Notify observers that the web contents has been focused.
209 void NotifyWebContentsFocused(); 210 void NotifyWebContentsFocused();
210 211
211 WebContentsView* GetView() const; 212 WebContentsView* GetView() const;
212 213
213 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
214 return screen_orientation_dispatcher_host_.get();
215 }
216
217 bool should_normally_be_visible() { return should_normally_be_visible_; } 214 bool should_normally_be_visible() { return should_normally_be_visible_; }
218 215
219 // 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
220 // 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
221 // floor). 218 // floor).
222 void WasOccluded(); 219 void WasOccluded();
223 void WasUnOccluded(); 220 void WasUnOccluded();
224 221
225 // Broadcasts the mode change to all frames. 222 // Broadcasts the mode change to all frames.
226 void SetAccessibilityMode(AccessibilityMode mode); 223 void SetAccessibilityMode(AccessibilityMode mode);
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 AccessibilityMode GetAccessibilityMode() const override; 475 AccessibilityMode GetAccessibilityMode() const override;
479 void AccessibilityEventReceived( 476 void AccessibilityEventReceived(
480 const std::vector<AXEventNotificationDetails>& details) override; 477 const std::vector<AXEventNotificationDetails>& details) override;
481 void AccessibilityLocationChangesReceived( 478 void AccessibilityLocationChangesReceived(
482 const std::vector<AXLocationChangeNotificationDetails>& details) override; 479 const std::vector<AXLocationChangeNotificationDetails>& details) override;
483 RenderFrameHost* GetGuestByInstanceID( 480 RenderFrameHost* GetGuestByInstanceID(
484 RenderFrameHost* render_frame_host, 481 RenderFrameHost* render_frame_host,
485 int browser_plugin_instance_id) override; 482 int browser_plugin_instance_id) override;
486 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 483 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
487 device::WakeLockServiceContext* GetWakeLockServiceContext() override; 484 device::WakeLockServiceContext* GetWakeLockServiceContext() override;
485 ScreenOrientationProvider* GetScreenOrientationProvider() override;
488 void EnterFullscreenMode(const GURL& origin) override; 486 void EnterFullscreenMode(const GURL& origin) override;
489 void ExitFullscreenMode(bool will_cause_resize) override; 487 void ExitFullscreenMode(bool will_cause_resize) override;
490 bool ShouldRouteMessageEvent( 488 bool ShouldRouteMessageEvent(
491 RenderFrameHost* target_rfh, 489 RenderFrameHost* target_rfh,
492 SiteInstance* source_site_instance) const override; 490 SiteInstance* source_site_instance) const override;
493 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 491 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
494 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 492 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
495 const GURL& url) override; 493 const GURL& url) override;
496 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 494 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
497 495
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 bool force_disable_overscroll_content_; 1407 bool force_disable_overscroll_content_;
1410 1408
1411 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1409 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1412 bool last_dialog_suppressed_; 1410 bool last_dialog_suppressed_;
1413 1411
1414 std::unique_ptr<device::GeolocationServiceContext> 1412 std::unique_ptr<device::GeolocationServiceContext>
1415 geolocation_service_context_; 1413 geolocation_service_context_;
1416 1414
1417 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; 1415 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_;
1418 1416
1419 std::unique_ptr<ScreenOrientationDispatcherHost> 1417 std::unique_ptr<ScreenOrientation> screen_orientation_;
1420 screen_orientation_dispatcher_host_;
1421 1418
1422 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1419 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1423 1420
1424 // The accessibility mode for all frames. This is queried when each frame 1421 // The accessibility mode for all frames. This is queried when each frame
1425 // is created, and broadcast to all frames when it changes. 1422 // is created, and broadcast to all frames when it changes.
1426 AccessibilityMode accessibility_mode_; 1423 AccessibilityMode accessibility_mode_;
1427 1424
1428 // Monitors power levels for audio streams associated with this WebContents. 1425 // Monitors power levels for audio streams associated with this WebContents.
1429 AudioStreamMonitor audio_stream_monitor_; 1426 AudioStreamMonitor audio_stream_monitor_;
1430 1427
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 // Adds/removes a callback called on creation of each new WebContents. 1491 // Adds/removes a callback called on creation of each new WebContents.
1495 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1492 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1496 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1493 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1497 1494
1498 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1495 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1499 }; 1496 };
1500 1497
1501 } // namespace content 1498 } // namespace content
1502 1499
1503 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1500 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698