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

Unified Diff: ash/wm/immersive_fullscreen_controller.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/drag_window_resizer_unittest.cc ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/immersive_fullscreen_controller.cc
diff --git a/ash/wm/immersive_fullscreen_controller.cc b/ash/wm/immersive_fullscreen_controller.cc
index 3dd8b2310344e1a996b60479be2add86fa3631b9..d9ea0b7a2e7f4123380481040880b4027ad901f3 100644
--- a/ash/wm/immersive_fullscreen_controller.cc
+++ b/ash/wm/immersive_fullscreen_controller.cc
@@ -19,11 +19,11 @@
#include "ui/aura/env.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/gfx/animation/slide_animation.h"
-#include "ui/gfx/display.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/screen.h"
#include "ui/views/bubble/bubble_dialog_delegate.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
@@ -107,7 +107,7 @@ gfx::Point GetEventLocationInScreen(const ui::LocatedEvent& event) {
// Returns the bounds of the display nearest to |window| in screen coordinates.
gfx::Rect GetDisplayBoundsInScreen(aura::Window* window) {
- return gfx::Screen::GetScreen()->GetDisplayNearestWindow(window).bounds();
+ return display::Screen::GetScreen()->GetDisplayNearestWindow(window).bounds();
}
} // namespace
@@ -924,7 +924,7 @@ bool ImmersiveFullscreenController::ShouldHandleGestureEvent(
// closest screen ensures that the event is from a valid bezel (as opposed to
// another screen in an extended desktop).
gfx::Rect screen_bounds =
- gfx::Screen::GetScreen()->GetDisplayNearestPoint(location).bounds();
+ display::Screen::GetScreen()->GetDisplayNearestPoint(location).bounds();
return (!screen_bounds.Contains(location) &&
location.y() < hit_bounds_in_screen.y() &&
location.x() >= hit_bounds_in_screen.x() &&
« no previous file with comments | « ash/wm/drag_window_resizer_unittest.cc ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698