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

Unified Diff: ash/wm/common/default_state.cc

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/wm/common/default_state.h ('k') | ash/wm/common/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/common/default_state.cc
diff --git a/ash/wm/common/default_state.cc b/ash/wm/common/default_state.cc
index 3be0a9ec707d6ea770c29aeb4819d0ee168ad202..c9a44df797c54e7d90f5f5be259d95b282ffd2b2 100644
--- a/ash/wm/common/default_state.cc
+++ b/ash/wm/common/default_state.cc
@@ -17,8 +17,8 @@
#include "ash/wm/common/wm_screen_util.h"
#include "ash/wm/common/wm_shell_window_ids.h"
#include "ash/wm/common/wm_window.h"
-#include "ui/gfx/display.h"
-#include "ui/gfx/screen.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
namespace ash {
namespace wm {
@@ -53,8 +53,8 @@ void MoveToDisplayForRestore(WindowState* window_state) {
window_state->window()->GetDisplayNearestWindow().bounds();
if (!display_area.Intersects(restore_bounds)) {
- const gfx::Display& display =
- gfx::Screen::GetScreen()->GetDisplayMatching(restore_bounds);
+ const display::Display& display =
+ display::Screen::GetScreen()->GetDisplayMatching(restore_bounds);
WmGlobals* globals = window_state->window()->GetGlobals();
WmWindow* new_root = globals->GetRootWindowForDisplayId(display.id());
if (new_root != window_state->window()->GetRootWindow()) {
@@ -246,7 +246,7 @@ void DefaultState::AttachState(WindowState* window_state,
// If the display has changed while in the another mode,
// we need to let windows know the change.
- gfx::Display current_display =
+ display::Display current_display =
window_state->window()->GetDisplayNearestWindow();
if (stored_display_state_.bounds() != current_display.bounds()) {
const WMEvent event(wm::WM_EVENT_DISPLAY_BOUNDS_CHANGED);
« no previous file with comments | « ash/wm/common/default_state.h ('k') | ash/wm/common/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698