| 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 "config.h" | 5 #include "config.h" |
| 6 #include "modules/screen_orientation/ScreenOrientationController.h" | 6 #include "modules/screen_orientation/ScreenOrientationController.h" |
| 7 | 7 |
| 8 #include "core/events/Event.h" | 8 #include "core/events/Event.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" |
| 11 #include "core/page/Page.h" | 11 #include "core/page/Page.h" |
| 12 #include "modules/screen_orientation/ScreenOrientation.h" | 12 #include "modules/screen_orientation/ScreenOrientation.h" |
| 13 #include "platform/LayoutTestSupport.h" | 13 #include "platform/LayoutTestSupport.h" |
| 14 #include "platform/PlatformScreen.h" | 14 #include "platform/PlatformScreen.h" |
| 15 #include "public/platform/WebScreenOrientationClient.h" | 15 #include "public/platform/WebScreenOrientationClient.h" |
| 16 | 16 |
| 17 namespace WebCore { | 17 namespace blink { |
| 18 | 18 |
| 19 ScreenOrientationController::~ScreenOrientationController() | 19 ScreenOrientationController::~ScreenOrientationController() |
| 20 { | 20 { |
| 21 } | 21 } |
| 22 | 22 |
| 23 void ScreenOrientationController::persistentHostHasBeenDestroyed() | 23 void ScreenOrientationController::persistentHostHasBeenDestroyed() |
| 24 { | 24 { |
| 25 // Unregister lifecycle observation once page is being torn down. | 25 // Unregister lifecycle observation once page is being torn down. |
| 26 observeContext(0); | 26 observeContext(0); |
| 27 } | 27 } |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 { | 169 { |
| 170 return m_frame; | 170 return m_frame; |
| 171 } | 171 } |
| 172 | 172 |
| 173 void ScreenOrientationController::trace(Visitor* visitor) | 173 void ScreenOrientationController::trace(Visitor* visitor) |
| 174 { | 174 { |
| 175 visitor->trace(m_orientation); | 175 visitor->trace(m_orientation); |
| 176 WillBeHeapSupplement<LocalFrame>::trace(visitor); | 176 WillBeHeapSupplement<LocalFrame>::trace(visitor); |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace WebCore | 179 } // namespace blink |
| OLD | NEW |