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

Unified Diff: ash/wm/workspace/workspace_layout_manager.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
Index: ash/wm/workspace/workspace_layout_manager.cc
diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc
index 3f5c3db2abddf51eca0a44168819d5c3b7b09fc9..8057ffbea5d9e77f30b8e25eaa6c3f8e1a927be6 100644
--- a/ash/wm/workspace/workspace_layout_manager.cc
+++ b/ash/wm/workspace/workspace_layout_manager.cc
@@ -26,8 +26,8 @@
#include "ui/aura/window_observer.h"
#include "ui/base/ui_base_types.h"
#include "ui/compositor/layer.h"
+#include "ui/display/screen.h"
#include "ui/events/event.h"
-#include "ui/gfx/screen.h"
#include "ui/keyboard/keyboard_controller_observer.h"
#include "ui/wm/core/window_util.h"
#include "ui/wm/public/activation_client.h"
@@ -44,7 +44,7 @@ WorkspaceLayoutManager::WorkspaceLayoutManager(
delegate_(std::move(delegate)),
work_area_in_parent_(ScreenUtil::ConvertRectFromScreen(
window_,
- gfx::Screen::GetScreen()
+ display::Screen::GetScreen()
->GetDisplayNearestWindow(window_)
.work_area())),
is_fullscreen_(GetRootWindowController(window->GetRootWindow())
@@ -177,8 +177,9 @@ void WorkspaceLayoutManager::OnKeyboardBoundsChanging(
void WorkspaceLayoutManager::OnDisplayWorkAreaInsetsChanged() {
const gfx::Rect work_area(ScreenUtil::ConvertRectFromScreen(
- window_,
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(window_).work_area()));
+ window_, display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window_)
+ .work_area()));
if (work_area != work_area_in_parent_) {
const wm::WMEvent event(wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED);
AdjustAllWindowsBoundsForWorkAreaChange(&event);
@@ -317,8 +318,9 @@ void WorkspaceLayoutManager::AdjustAllWindowsBoundsForWorkAreaChange(
event->type() == wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED);
work_area_in_parent_ = ScreenUtil::ConvertRectFromScreen(
- window_,
- gfx::Screen::GetScreen()->GetDisplayNearestWindow(window_).work_area());
+ window_, display::Screen::GetScreen()
+ ->GetDisplayNearestWindow(window_)
+ .work_area());
// Don't do any adjustments of the insets while we are in screen locked mode.
// This would happen if the launcher was auto hidden before the login screen
« no previous file with comments | « ash/wm/workspace/workspace_event_handler_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698