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

Side by Side Diff: ash/wm/dock/docked_window_resizer.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, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/dock/docked_window_resizer.h" 5 #include "ash/wm/dock/docked_window_resizer.h"
6 6
7 #include "ash/wm/common/dock/docked_window_layout_manager.h" 7 #include "ash/wm/common/dock/docked_window_layout_manager.h"
8 #include "ash/wm/common/window_parenting_utils.h" 8 #include "ash/wm/common/window_parenting_utils.h"
9 #include "ash/wm/common/window_state.h" 9 #include "ash/wm/common/window_state.h"
10 #include "ash/wm/common/wm_event.h" 10 #include "ash/wm/common/wm_event.h"
11 #include "ash/wm/common/wm_root_window_controller.h" 11 #include "ash/wm/common/wm_root_window_controller.h"
12 #include "ash/wm/common/wm_shell_window_ids.h" 12 #include "ash/wm/common/wm_shell_window_ids.h"
13 #include "ash/wm/common/wm_window.h" 13 #include "ash/wm/common/wm_window.h"
14 #include "ash/wm/workspace/magnetism_matcher.h" 14 #include "ash/wm/workspace/magnetism_matcher.h"
15 #include "ui/base/hit_test.h" 15 #include "ui/base/hit_test.h"
16 #include "ui/base/ui_base_types.h" 16 #include "ui/base/ui_base_types.h"
17 #include "ui/gfx/screen.h" 17 #include "ui/display/screen.h"
18 18
19 namespace ash { 19 namespace ash {
20 namespace { 20 namespace {
21 21
22 DockedWindowLayoutManager* GetDockedLayoutManagerAtPoint( 22 DockedWindowLayoutManager* GetDockedLayoutManagerAtPoint(
23 const gfx::Point& point) { 23 const gfx::Point& point) {
24 gfx::Display display = 24 display::Display display =
25 gfx::Screen::GetScreen()->GetDisplayNearestPoint(point); 25 display::Screen::GetScreen()->GetDisplayNearestPoint(point);
26 if (!display.bounds().Contains(point)) 26 if (!display.bounds().Contains(point))
27 return nullptr; 27 return nullptr;
28 28
29 return DockedWindowLayoutManager::Get( 29 return DockedWindowLayoutManager::Get(
30 wm::WmRootWindowController::GetWithDisplayId(display.id())->GetWindow()); 30 wm::WmRootWindowController::GetWithDisplayId(display.id())->GetWindow());
31 } 31 }
32 32
33 } // namespace 33 } // namespace
34 34
35 DockedWindowResizer::~DockedWindowResizer() { 35 DockedWindowResizer::~DockedWindowResizer() {
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 } else if (window->GetWindowState()->IsDocked() && 310 } else if (window->GetWindowState()->IsDocked() &&
311 action == DOCKED_ACTION_UNDOCK) { 311 action == DOCKED_ACTION_UNDOCK) {
312 const wm::WMEvent event(wm::WM_EVENT_NORMAL); 312 const wm::WMEvent event(wm::WM_EVENT_NORMAL);
313 window_state_->OnWMEvent(&event); 313 window_state_->OnWMEvent(&event);
314 } 314 }
315 315
316 return action; 316 return action;
317 } 317 }
318 318
319 } // namespace ash 319 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager_unittest.cc ('k') | ash/wm/dock/docked_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698