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

Unified Diff: ui/aura/test/test_screen.cc

Issue 431183003: Rotate screen in response to accelerator or device orientation sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary aura export. Created 6 years, 4 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: ui/aura/test/test_screen.cc
diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc
index 4ffc2d855eada7ec162b6f32a1be29b79c5a2546..67b5394c51ad0506e296c75a07a44897f1e1f2ce 100644
--- a/ui/aura/test/test_screen.cc
+++ b/ui/aura/test/test_screen.cc
@@ -68,16 +68,16 @@ gfx::Transform TestScreen::GetRotationTransform() const {
case gfx::Display::ROTATE_0:
break;
case gfx::Display::ROTATE_90:
- rotate.Translate(display_.bounds().height() - one_pixel, 0);
+ rotate.Translate(display_.bounds().width() - one_pixel, 0);
rotate.Rotate(90);
break;
case gfx::Display::ROTATE_270:
- rotate.Translate(0, display_.bounds().width() - one_pixel);
+ rotate.Translate(0, display_.bounds().height() - one_pixel);
rotate.Rotate(270);
break;
case gfx::Display::ROTATE_180:
- rotate.Translate(display_.bounds().width() - one_pixel,
- display_.bounds().height() - one_pixel);
+ rotate.Translate(display_.bounds().height() - one_pixel,
+ display_.bounds().width() - one_pixel);
rotate.Rotate(180);
break;
}
« content/browser/browser_thread_impl.cc ('K') | « content/browser/browser_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698