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

Unified Diff: ash/display/screen_orientation_controller_chromeos.h

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « ash/display/screen_ash_unittest.cc ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/screen_orientation_controller_chromeos.h
diff --git a/ash/display/screen_orientation_controller_chromeos.h b/ash/display/screen_orientation_controller_chromeos.h
index 1157425a63a8fd6b4c1340ae43da35d987378120..76be6fd03327daa6614b1da67f30ac84e679188e 100644
--- a/ash/display/screen_orientation_controller_chromeos.h
+++ b/ash/display/screen_orientation_controller_chromeos.h
@@ -16,7 +16,7 @@
#include "chromeos/accelerometer/accelerometer_types.h"
#include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
#include "ui/aura/window_observer.h"
-#include "ui/gfx/display.h"
+#include "ui/display/display.h"
#include "ui/wm/public/activation_change_observer.h"
namespace aura {
@@ -74,8 +74,8 @@ class ASH_EXPORT ScreenOrientationController
// Sets the display rotation for the given |source|. The new |rotation| will
// also become active. Display changed notifications are surpressed for this
// change.
- void SetDisplayRotation(gfx::Display::Rotation rotation,
- gfx::Display::RotationSource source);
+ void SetDisplayRotation(display::Display::Rotation rotation,
+ display::Display::RotationSource source);
// aura::client::ActivationChangeObserver:
void OnWindowActivated(
@@ -102,8 +102,8 @@ class ASH_EXPORT ScreenOrientationController
// Sets the display rotation to |rotation|. Future accelerometer updates
// should not be used to change the rotation. SetRotationLocked(false) removes
// the rotation lock.
- void LockRotation(gfx::Display::Rotation rotation,
- gfx::Display::RotationSource source);
+ void LockRotation(display::Display::Rotation rotation,
+ display::Display::RotationSource source);
// Sets the display rotation based on |lock_orientation|. Future accelerometer
// updates should not be used to change the rotation. SetRotationLocked(false)
@@ -144,7 +144,7 @@ class ASH_EXPORT ScreenOrientationController
// two angles of the same screen orientation
// (http://www.w3.org/TR/screen-orientation/). Returns true if |rotation| is
// supported for the current |rotation_locked_orientation_|.
- bool IsRotationAllowedInLockedState(gfx::Display::Rotation rotation);
+ bool IsRotationAllowedInLockedState(display::Display::Rotation rotation);
// Certain orientation locks allow for rotation between the two angles of the
// same screen orientation. Returns true if |rotation_locked_orientation_|
@@ -166,11 +166,11 @@ class ASH_EXPORT ScreenOrientationController
// The rotation of the display set by the user. This rotation will be
// restored upon exiting maximize mode.
- gfx::Display::Rotation user_rotation_;
+ display::Display::Rotation user_rotation_;
// The current rotation set by ScreenOrientationController for the internal
// display.
- gfx::Display::Rotation current_rotation_;
+ display::Display::Rotation current_rotation_;
// Rotation Lock observers.
base::ObserverList<Observer> observers_;
« no previous file with comments | « ash/display/screen_ash_unittest.cc ('k') | ash/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698