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

Side by Side Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp

Issue 2142753002: Remove LocalFrameLifecycleObserver::willDetachFrameHost() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "modules/screen_orientation/ScreenOrientationController.h" 5 #include "modules/screen_orientation/ScreenOrientationController.h"
6 6
7 #include "core/events/Event.h" 7 #include "core/events/Event.h"
8 #include "core/frame/FrameHost.h" 8 #include "core/frame/FrameHost.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 void ScreenOrientationController::unregisterWithDispatcher() 190 void ScreenOrientationController::unregisterWithDispatcher()
191 { 191 {
192 ScreenOrientationDispatcher::instance().removeController(this); 192 ScreenOrientationDispatcher::instance().removeController(this);
193 } 193 }
194 194
195 bool ScreenOrientationController::hasLastData() 195 bool ScreenOrientationController::hasLastData()
196 { 196 {
197 return true; 197 return true;
198 } 198 }
199 199
200 void ScreenOrientationController::willDetachFrameHost() 200 void ScreenOrientationController::contextDestroyed()
201 { 201 {
202 m_client = nullptr; 202 m_client = nullptr;
203 } 203 }
204 204
205 void ScreenOrientationController::notifyDispatcher() 205 void ScreenOrientationController::notifyDispatcher()
206 { 206 {
207 if (m_orientation && page()->isPageVisible()) 207 if (m_orientation && page()->isPageVisible())
208 startUpdating(); 208 startUpdating();
209 else 209 else
210 stopUpdating(); 210 stopUpdating();
211 } 211 }
212 212
213 DEFINE_TRACE(ScreenOrientationController) 213 DEFINE_TRACE(ScreenOrientationController)
214 { 214 {
215 visitor->trace(m_orientation); 215 visitor->trace(m_orientation);
216 LocalFrameLifecycleObserver::trace(visitor); 216 LocalFrameLifecycleObserver::trace(visitor);
217 Supplement<LocalFrame>::trace(visitor); 217 Supplement<LocalFrame>::trace(visitor);
218 PlatformEventController::trace(visitor); 218 PlatformEventController::trace(visitor);
219 } 219 }
220 220
221 } // namespace blink 221 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698