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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
index d5eb971ba7d9a06f8b194a01ec05bd084c1cf0b2..54a4376db612ada535af3934978f9120181067a4 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationControllerImpl.cpp
@@ -7,7 +7,6 @@
#include "core/dom/Document.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/events/Event.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/page/ChromeClient.h"
@@ -85,8 +84,8 @@ WebScreenOrientationType ScreenOrientationControllerImpl::computeOrientation(
void ScreenOrientationControllerImpl::updateOrientation() {
DCHECK(m_orientation);
DCHECK(frame());
- DCHECK(frame()->host());
- ChromeClient& chromeClient = frame()->host()->chromeClient();
+ DCHECK(frame()->page());
+ ChromeClient& chromeClient = frame()->page()->chromeClient();
WebScreenInfo screenInfo = chromeClient.screenInfo();
WebScreenOrientationType orientationType = screenInfo.orientationType;
if (orientationType == WebScreenOrientationUndefined) {
@@ -120,12 +119,12 @@ void ScreenOrientationControllerImpl::pageVisibilityChanged() {
return;
DCHECK(frame());
- DCHECK(frame()->host());
+ DCHECK(frame()->page());
// The orientation type and angle are tied in a way that if the angle has
// changed, the type must have changed.
unsigned short currentAngle =
- frame()->host()->chromeClient().screenInfo().orientationAngle;
+ frame()->page()->chromeClient().screenInfo().orientationAngle;
// FIXME: sendOrientationChangeEvent() currently send an event all the
// children of the frame, so it should only be called on the frame on
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAElement.cpp ('k') | third_party/WebKit/Source/web/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698