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

Unified Diff: Source/modules/screen_orientation/ScreenOrientationController.cpp

Issue 241203003: Screen Orientation: fire event on Window instead of Screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ScreenOrientationUndefined
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/screen_orientation/ScreenOrientationController.cpp
diff --git a/Source/modules/screen_orientation/ScreenOrientationController.cpp b/Source/modules/screen_orientation/ScreenOrientationController.cpp
index 9f1686db67f09080987a4209641514ece6d509f6..0de3398ec4bf0517ff840d695ff954157ac11cd0 100644
--- a/Source/modules/screen_orientation/ScreenOrientationController.cpp
+++ b/Source/modules/screen_orientation/ScreenOrientationController.cpp
@@ -41,7 +41,7 @@ void ScreenOrientationController::dispatchOrientationChangeEvent()
if (m_document.domWindow()
&& !m_document.activeDOMObjectsAreSuspended()
&& !m_document.activeDOMObjectsAreStopped())
- m_document.domWindow()->screen().dispatchEvent(Event::create(EventTypeNames::orientationchange));
+ m_document.domWindow()->dispatchEvent(Event::create(EventTypeNames::orientationchange));
Inactive 2014/04/17 20:29:48 Doesn't this event get fired twice now? (once here
mlamouri (slow - plz ping) 2014/04/17 20:34:33 That is correct. I will make window.orientation im
Inactive 2014/04/17 20:41:18 I'd like to hear Adam's opinion on this. I don't r
abarth-chromium 2014/04/17 23:36:47 I think it's fine given that this code is still in
mlamouri (slow - plz ping) 2014/04/18 16:42:17 That will be the case.
}
const char* ScreenOrientationController::supplementName()
« Source/core/frame/Screen.idl ('K') | « Source/modules/screen_orientation/ScreenOrientation.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698