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

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

Issue 297103002: Move modules-dependent Event code out of core. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments. Created 6 years, 7 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 "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
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
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/modules/serviceworkers/FetchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698