Index: ash/shelf/shelf_bezel_event_filter.cc |
diff --git a/ash/shelf/shelf_bezel_event_filter.cc b/ash/shelf/shelf_bezel_event_filter.cc |
index c3c46f312eddbca66944c9dc8c1b3cb0b0bdebeb..14ec7dc2698a30d43eb0be1bcfbf555c096d81d4 100644 |
--- a/ash/shelf/shelf_bezel_event_filter.cc |
+++ b/ash/shelf/shelf_bezel_event_filter.cc |
@@ -7,6 +7,7 @@ |
#include "ash/shelf/shelf_layout_manager.h" |
#include "ash/shell.h" |
#include "ui/aura/window.h" |
+#include "ui/gfx/screen.h" |
#include "ui/wm/core/coordinate_conversion.h" |
namespace ash { |
@@ -27,8 +28,9 @@ void ShelfBezelEventFilter::OnGestureEvent( |
gfx::Point point_in_screen(event->location()); |
aura::Window* target = static_cast<aura::Window*>(event->target()); |
::wm::ConvertPointToScreen(target, &point_in_screen); |
- gfx::Rect screen = |
- Shell::GetScreen()->GetDisplayNearestPoint(point_in_screen).bounds(); |
+ gfx::Rect screen = gfx::Screen::GetScreen() |
+ ->GetDisplayNearestPoint(point_in_screen) |
+ .bounds(); |
if ((!screen.Contains(point_in_screen) && |
IsShelfOnBezel(screen, point_in_screen)) || |
in_touch_drag_) { |