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

Unified Diff: chrome/browser/ui/views/aura/screen_orientation_listener.cc

Issue 8678019: Move sensors interface into content/public/browser (since it's only used by browser directory). M... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix aura typo Created 9 years, 1 month 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: chrome/browser/ui/views/aura/screen_orientation_listener.cc
===================================================================
--- chrome/browser/ui/views/aura/screen_orientation_listener.cc (revision 111374)
+++ chrome/browser/ui/views/aura/screen_orientation_listener.cc (working copy)
@@ -40,7 +40,7 @@
}
void ScreenOrientationListener::OnScreenOrientationChanged(
- const sensors::ScreenOrientation& change) {
+ content::ScreenOrientation change) {
ui::Layer* to_rotate = NULL;
ui::LayerAnimationObserver* observer = NULL;
// Desktop is initialized before the listener, so this will not return NULL.
@@ -53,11 +53,11 @@
bool should_rotate = true;
int new_degrees = 0;
- switch (change.upward) {
- case sensors::ScreenOrientation::TOP: break;
- case sensors::ScreenOrientation::RIGHT: new_degrees = 90; break;
- case sensors::ScreenOrientation::LEFT: new_degrees = -90; break;
- case sensors::ScreenOrientation::BOTTOM: new_degrees = 180; break;
+ switch (change) {
+ case content::SCREEN_ORIENTATION_TOP: break;
+ case content::SCREEN_ORIENTATION_RIGHT: new_degrees = 90; break;
+ case content::SCREEN_ORIENTATION_LEFT: new_degrees = -90; break;
+ case content::SCREEN_ORIENTATION_BOTTOM: new_degrees = 180; break;
// Ignore front and back orientations.
default: should_rotate = false;
}
« no previous file with comments | « chrome/browser/ui/views/aura/screen_orientation_listener.h ('k') | content/browser/sensors/sensors_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698