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

Unified Diff: ash/screen_util.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/rotator/screen_rotation_animator.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/screen_util.h
diff --git a/ash/screen_util.h b/ash/screen_util.h
index 2cf1c1e64a089e4db3f8d6e949284475a67578af..7cdf1feba2357220d136c2e1bacd9a881ed89ac8 100644
--- a/ash/screen_util.h
+++ b/ash/screen_util.h
@@ -18,6 +18,10 @@ class Rect;
class Point;
}
+namespace display {
+using Display = gfx::Display;
+}
+
namespace ash {
class ASH_EXPORT ScreenUtil {
@@ -25,7 +29,7 @@ class ASH_EXPORT ScreenUtil {
// Finds the display that contains |point| in screeen coordinates.
// Returns invalid display if there is no display that can satisfy
// the condition.
- static gfx::Display FindDisplayContainingPoint(const gfx::Point& point);
+ static display::Display FindDisplayContainingPoint(const gfx::Point& point);
// Returns the bounds for maximized windows in parent coordinates.
// Maximized windows trigger auto-hiding the shelf.
@@ -57,9 +61,9 @@ class ASH_EXPORT ScreenUtil {
static gfx::Rect ConvertRectFromScreen(aura::Window* window,
const gfx::Rect& rect);
- // Returns a gfx::Display object for secondary display. Returns
+ // Returns a display::Display object for secondary display. Returns
// invalid display if there is no secondary display connected.
- static const gfx::Display& GetSecondaryDisplay();
+ static const display::Display& GetSecondaryDisplay();
private:
ScreenUtil() {}
« no previous file with comments | « ash/rotator/screen_rotation_animator.cc ('k') | ash/screen_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698