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

Unified Diff: LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html

Issue 277413002: Make screen.orientation implementation use WebScreenInfo::orientationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Improve test 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html
diff --git a/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html b/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html
new file mode 100644
index 0000000000000000000000000000000000000000..42602633d2b6642c14c3bdca47377b3ce41fc343
--- /dev/null
+++ b/LayoutTests/screen_orientation/resources/iframe-listen-orientation-change.html
@@ -0,0 +1,5 @@
+<script>
jochen (gone - plz use gerrit) 2014/05/26 10:02:11 <!DOCTYPE html> & 4 space indent
Inactive 2014/05/27 14:22:15 Done.
+ window.addEventListener("orientationchange", function() {
+ parent.window.postMessage(screen.orientation, "*");
+ });
+</script>

Powered by Google App Engine
This is Rietveld 408576698