| OLD | NEW |
| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 } | 164 } |
| 165 | 165 |
| 166 void ScreenOrientationController::unlock() | 166 void ScreenOrientationController::unlock() |
| 167 { | 167 { |
| 168 // When detached, the client is no longer valid. | 168 // When detached, the client is no longer valid. |
| 169 if (!m_client) | 169 if (!m_client) |
| 170 return; | 170 return; |
| 171 m_client->unlockOrientation(); | 171 m_client->unlockOrientation(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void ScreenOrientationController::dispatchEventTimerFired(Timer<ScreenOrientatio
nController>*) | 174 void ScreenOrientationController::dispatchEventTimerFired(TimerBase*) |
| 175 { | 175 { |
| 176 if (!m_orientation) | 176 if (!m_orientation) |
| 177 return; | 177 return; |
| 178 | 178 |
| 179 ScopedOrientationChangeIndicator orientationChangeIndicator; | 179 ScopedOrientationChangeIndicator orientationChangeIndicator; |
| 180 m_orientation->dispatchEvent(Event::create(EventTypeNames::change)); | 180 m_orientation->dispatchEvent(Event::create(EventTypeNames::change)); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void ScreenOrientationController::didUpdateData() | 183 void ScreenOrientationController::didUpdateData() |
| 184 { | 184 { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 DEFINE_TRACE(ScreenOrientationController) | 217 DEFINE_TRACE(ScreenOrientationController) |
| 218 { | 218 { |
| 219 visitor->trace(m_orientation); | 219 visitor->trace(m_orientation); |
| 220 LocalFrameLifecycleObserver::trace(visitor); | 220 LocalFrameLifecycleObserver::trace(visitor); |
| 221 Supplement<LocalFrame>::trace(visitor); | 221 Supplement<LocalFrame>::trace(visitor); |
| 222 PlatformEventController::trace(visitor); | 222 PlatformEventController::trace(visitor); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace blink | 225 } // namespace blink |
| OLD | NEW |