Home | History | Annotate | Download | only in screen_orientation

Lines Matching refs:frame

9 #include "core/frame/FrameView.h"
10 #include "core/frame/LocalFrame.h"
24 void ScreenOrientationController::provideTo(LocalFrame& frame, WebScreenOrientationClient* client)
28 ScreenOrientationController* controller = new ScreenOrientationController(frame, client);
29 WillBeHeapSupplement<LocalFrame>::provideTo(frame, supplementName(), adoptPtrWillBeNoop(controller));
32 ScreenOrientationController* ScreenOrientationController::from(LocalFrame& frame)
34 return static_cast<ScreenOrientationController*>(WillBeHeapSupplement<LocalFrame>::from(frame, supplementName()));
37 ScreenOrientationController::ScreenOrientationController(LocalFrame& frame, WebScreenOrientationClient* client)
38 : FrameDestructionObserver(&frame)
39 , PlatformEventController(frame.page())
80 ASSERT(frame());
82 FrameView* view = frame()->view();
96 return m_orientation && frame() && page() && page()->visibilityState() == PageVisibilityStateVisible;
108 unsigned short currentAngle = screenOrientationAngle(frame()->view());
111 // children of the frame, so it should only be called on the frame on
115 if (frame() == frame()->localFrameRoot() && m_orientation->angle() != currentAngle)
129 // current frame as it will prevent side effects from the change event
132 for (Frame* child = frame()->tree().firstChild(); child; child = child->tree().nextSibling()) {