| 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/dom/Document.h" | 8 #include "core/dom/Document.h" | 
| 9 #include "core/events/Event.h" |  | 
| 10 #include "core/frame/DOMWindow.h" | 9 #include "core/frame/DOMWindow.h" | 
| 11 #include "core/frame/Screen.h" | 10 #include "core/frame/Screen.h" | 
| 12 #include "modules/screen_orientation/ScreenOrientationDispatcher.h" | 11 #include "modules/screen_orientation/ScreenOrientationDispatcher.h" | 
| 13 | 12 | 
| 14 namespace WebCore { | 13 namespace WebCore { | 
| 15 | 14 | 
| 16 #if !ENABLE(OILPAN) | 15 #if !ENABLE(OILPAN) | 
| 17 ScreenOrientationController::~ScreenOrientationController() | 16 ScreenOrientationController::~ScreenOrientationController() | 
| 18 { | 17 { | 
| 19     // With oilpan, weak processing removes the controller once it is dead. | 18     // With oilpan, weak processing removes the controller once it is dead. | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55 void ScreenOrientationController::didChangeScreenOrientation(blink::WebScreenOri
    entationType orientation) | 54 void ScreenOrientationController::didChangeScreenOrientation(blink::WebScreenOri
    entationType orientation) | 
| 56 { | 55 { | 
| 57     if (orientation == m_orientation) | 56     if (orientation == m_orientation) | 
| 58         return; | 57         return; | 
| 59 | 58 | 
| 60     m_orientation = orientation; | 59     m_orientation = orientation; | 
| 61     dispatchOrientationChangeEvent(); | 60     dispatchOrientationChangeEvent(); | 
| 62 } | 61 } | 
| 63 | 62 | 
| 64 } // namespace WebCore | 63 } // namespace WebCore | 
| OLD | NEW | 
|---|