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

Unified Diff: chrome/browser/ui/views/app_list/linux/app_list_linux.h

Issue 1920263003: Rename gfx::Display/Screen to display::Display/Screen in chrome (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
Index: chrome/browser/ui/views/app_list/linux/app_list_linux.h
diff --git a/chrome/browser/ui/views/app_list/linux/app_list_linux.h b/chrome/browser/ui/views/app_list/linux/app_list_linux.h
index 1640b539a66abc5ca504b30141262b61794e1da3..091c11e36bf1ffb854662426e86527839dd58ed7 100644
--- a/chrome/browser/ui/views/app_list/linux/app_list_linux.h
+++ b/chrome/browser/ui/views/app_list/linux/app_list_linux.h
@@ -17,6 +17,10 @@ class Point;
class Size;
} // namespace gfx
+namespace display {
+using Display = gfx::Display;
+}
+
// Responsible for positioning an AppListView on Linux.
// TODO(tapted): Shouldn't be a class - move the static member functions out.
class AppListLinux {
@@ -25,7 +29,7 @@ class AppListLinux {
// the edge of the surface where the user normally launches apps from (so, for
// example, on Gnome Classic, this is the applications menu, not the taskbar).
static AppListPositioner::ScreenEdge ShelfLocationInDisplay(
- const gfx::Display& display);
+ const display::Display& display);
// Finds the position for a window to anchor it to the shelf. This chooses the
// most appropriate position for the window based on whether the shelf exists,
@@ -33,7 +37,7 @@ class AppListLinux {
// coordinates for the center of the window. If |shelf_rect| is empty, assumes
// there is no shelf on the given display.
static gfx::Point FindAnchorPoint(const gfx::Size& view_size,
- const gfx::Display& display,
+ const display::Display& display,
const gfx::Point& cursor,
AppListPositioner::ScreenEdge edge,
bool center_window);

Powered by Google App Engine
This is Rietveld 408576698