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

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: Ensure correct ordering between ViewMsg_Resize and screen orientation messages Created 4 years, 2 months 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 LoaderIOThreadNotifier; 66 class LoaderIOThreadNotifier;
67 class ManifestManagerHost; 67 class ManifestManagerHost;
68 class MediaWebContentsObserver; 68 class MediaWebContentsObserver;
69 class PluginContentOriginWhitelist; 69 class PluginContentOriginWhitelist;
70 class PowerSaveBlocker; 70 class PowerSaveBlocker;
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 ScreenOrientationImpl;
77 class SiteInstance; 77 class SiteInstance;
78 class TestWebContents; 78 class TestWebContents;
79 class TextInputManager; 79 class TextInputManager;
80 class WakeLockServiceContext; 80 class WakeLockServiceContext;
81 class WebContentsAudioMuter; 81 class WebContentsAudioMuter;
82 class WebContentsBindingSet; 82 class WebContentsBindingSet;
83 class WebContentsDelegate; 83 class WebContentsDelegate;
84 class WebContentsImpl; 84 class WebContentsImpl;
85 class WebContentsView; 85 class WebContentsView;
86 class WebContentsViewDelegate; 86 class WebContentsViewDelegate;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 202
203 // A redirect was received while requesting a resource. 203 // A redirect was received while requesting a resource.
204 void DidGetRedirectForResourceRequest( 204 void DidGetRedirectForResourceRequest(
205 const ResourceRedirectDetails& details); 205 const ResourceRedirectDetails& details);
206 206
207 // Notify observers that the web contents has been focused. 207 // Notify observers that the web contents has been focused.
208 void NotifyWebContentsFocused(); 208 void NotifyWebContentsFocused();
209 209
210 WebContentsView* GetView() const; 210 WebContentsView* GetView() const;
211 211
212 ScreenOrientationDispatcherHost* screen_orientation_dispatcher_host() {
213 return screen_orientation_dispatcher_host_.get();
214 }
215
216 bool should_normally_be_visible() { return should_normally_be_visible_; } 212 bool should_normally_be_visible() { return should_normally_be_visible_; }
217 213
218 // Indicate if the window has been occluded, and pass this to the views, only 214 // Indicate if the window has been occluded, and pass this to the views, only
219 // if there is no active capture going on (otherwise it is dropped on the 215 // if there is no active capture going on (otherwise it is dropped on the
220 // floor). 216 // floor).
221 void WasOccluded(); 217 void WasOccluded();
222 void WasUnOccluded(); 218 void WasUnOccluded();
223 219
224 // Broadcasts the mode change to all frames. 220 // Broadcasts the mode change to all frames.
225 void SetAccessibilityMode(AccessibilityMode mode); 221 void SetAccessibilityMode(AccessibilityMode mode);
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 AccessibilityMode GetAccessibilityMode() const override; 477 AccessibilityMode GetAccessibilityMode() const override;
482 void AccessibilityEventReceived( 478 void AccessibilityEventReceived(
483 const std::vector<AXEventNotificationDetails>& details) override; 479 const std::vector<AXEventNotificationDetails>& details) override;
484 void AccessibilityLocationChangesReceived( 480 void AccessibilityLocationChangesReceived(
485 const std::vector<AXLocationChangeNotificationDetails>& details) override; 481 const std::vector<AXLocationChangeNotificationDetails>& details) override;
486 RenderFrameHost* GetGuestByInstanceID( 482 RenderFrameHost* GetGuestByInstanceID(
487 RenderFrameHost* render_frame_host, 483 RenderFrameHost* render_frame_host,
488 int browser_plugin_instance_id) override; 484 int browser_plugin_instance_id) override;
489 device::GeolocationServiceContext* GetGeolocationServiceContext() override; 485 device::GeolocationServiceContext* GetGeolocationServiceContext() override;
490 device::WakeLockServiceContext* GetWakeLockServiceContext() override; 486 device::WakeLockServiceContext* GetWakeLockServiceContext() override;
487 ScreenOrientationImpl* GetScreenOrientation() override;
491 void EnterFullscreenMode(const GURL& origin) override; 488 void EnterFullscreenMode(const GURL& origin) override;
492 void ExitFullscreenMode(bool will_cause_resize) override; 489 void ExitFullscreenMode(bool will_cause_resize) override;
493 bool ShouldRouteMessageEvent( 490 bool ShouldRouteMessageEvent(
494 RenderFrameHost* target_rfh, 491 RenderFrameHost* target_rfh,
495 SiteInstance* source_site_instance) const override; 492 SiteInstance* source_site_instance) const override;
496 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; 493 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override;
497 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( 494 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost(
498 const GURL& url) override; 495 const GURL& url) override;
499 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; 496 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override;
500 497
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 bool force_disable_overscroll_content_; 1368 bool force_disable_overscroll_content_;
1372 1369
1373 // Whether the last JavaScript dialog shown was suppressed. Used for testing. 1370 // Whether the last JavaScript dialog shown was suppressed. Used for testing.
1374 bool last_dialog_suppressed_; 1371 bool last_dialog_suppressed_;
1375 1372
1376 std::unique_ptr<device::GeolocationServiceContext> 1373 std::unique_ptr<device::GeolocationServiceContext>
1377 geolocation_service_context_; 1374 geolocation_service_context_;
1378 1375
1379 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_; 1376 std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_;
1380 1377
1381 std::unique_ptr<ScreenOrientationDispatcherHost> 1378 std::unique_ptr<ScreenOrientationImpl> screen_orientation_;
1382 screen_orientation_dispatcher_host_;
1383 1379
1384 std::unique_ptr<ManifestManagerHost> manifest_manager_host_; 1380 std::unique_ptr<ManifestManagerHost> manifest_manager_host_;
1385 1381
1386 // The accessibility mode for all frames. This is queried when each frame 1382 // The accessibility mode for all frames. This is queried when each frame
1387 // is created, and broadcast to all frames when it changes. 1383 // is created, and broadcast to all frames when it changes.
1388 AccessibilityMode accessibility_mode_; 1384 AccessibilityMode accessibility_mode_;
1389 1385
1390 // Monitors power levels for audio streams associated with this WebContents. 1386 // Monitors power levels for audio streams associated with this WebContents.
1391 AudioStreamMonitor audio_stream_monitor_; 1387 AudioStreamMonitor audio_stream_monitor_;
1392 1388
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1449 // Adds/removes a callback called on creation of each new WebContents. 1445 // Adds/removes a callback called on creation of each new WebContents.
1450 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1446 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1451 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1447 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1452 1448
1453 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1449 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1454 }; 1450 };
1455 1451
1456 } // namespace content 1452 } // namespace content
1457 1453
1458 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1454 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698