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

Unified Diff: ash/display/unified_mouse_warp_controller.cc

Issue 1838833002: Move DisplayLayout and DisplayLayoutBuilder From ash To ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@screenwinmove
Patch Set: Fix comment 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/display/screen_position_controller_unittest.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/unified_mouse_warp_controller.cc
diff --git a/ash/display/unified_mouse_warp_controller.cc b/ash/display/unified_mouse_warp_controller.cc
index fec9b6044af0094772c21dbd11ddecc6c5823fad..702b53a7efb3a25dc2c844db5c3e9fc00c71357b 100644
--- a/ash/display/unified_mouse_warp_controller.cc
+++ b/ash/display/unified_mouse_warp_controller.cc
@@ -16,6 +16,7 @@
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/layout.h"
+#include "ui/display/manager/display_layout.h"
#include "ui/events/event_utils.h"
#include "ui/gfx/screen.h"
#include "ui/wm/core/coordinate_conversion.h"
@@ -37,9 +38,10 @@ AshWindowTreeHost* GetMirroringAshWindowTreeHostForDisplayId(
// the |point_in_screen|. Returns nullptr if such WTH does not exist.
aura::WindowTreeHost* FindMirroringWindowTreeHostFromScreenPoint(
const gfx::Point& point_in_screen) {
- DisplayList mirroring_display_list = Shell::GetInstance()
- ->display_manager()
- ->software_mirroring_display_list();
+ display::DisplayList mirroring_display_list =
+ Shell::GetInstance()
+ ->display_manager()
+ ->software_mirroring_display_list();
int index =
FindDisplayIndexContainingPoint(mirroring_display_list, point_in_screen);
if (index < 0)
@@ -75,7 +77,7 @@ bool UnifiedMouseWarpController::WarpMouseCursor(ui::MouseEvent* event) {
aura::client::CursorClient* cursor_client =
aura::client::GetCursorClient(target->GetRootWindow());
if (cursor_client) {
- DisplayList mirroring_display_list =
+ display::DisplayList mirroring_display_list =
Shell::GetInstance()
->display_manager()
->software_mirroring_display_list();
@@ -119,9 +121,9 @@ void UnifiedMouseWarpController::SetEnabled(bool enabled) {
}
void UnifiedMouseWarpController::ComputeBounds() {
- DisplayList display_list = Shell::GetInstance()
- ->display_manager()
- ->software_mirroring_display_list();
+ display::DisplayList display_list = Shell::GetInstance()
+ ->display_manager()
+ ->software_mirroring_display_list();
if (display_list.size() < 2) {
LOG(ERROR) << "Mirroring Display lost during re-configuration";
@@ -152,9 +154,9 @@ bool UnifiedMouseWarpController::WarpMouseCursorInNativeCoords(
bool in_second_edge = second_edge_bounds_in_native_.Contains(point_in_native);
if (!in_first_edge && !in_second_edge)
return false;
- DisplayList display_list = Shell::GetInstance()
- ->display_manager()
- ->software_mirroring_display_list();
+ display::DisplayList display_list = Shell::GetInstance()
+ ->display_manager()
+ ->software_mirroring_display_list();
// Wait updating the cursor until the cursor moves to the new display
// to avoid showing the wrong sized cursor at the source display.
current_cursor_display_id_ =
« no previous file with comments | « ash/display/screen_position_controller_unittest.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698