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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 2282903003: Remove MouseWarpController construction from ash::DisplayManager (Closed)
Patch Set: rebased Created 4 years, 4 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/mouse_cursor_event_filter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter.cc
diff --git a/ash/display/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc
index d335288871fd571b8690f4f75d73cc9de4580d49..7a45947904474cce58a26cbd7ea63d6fcfcf3af0 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -7,8 +7,10 @@
#include <cmath>
#include "ash/display/cursor_window_controller.h"
-#include "ash/display/display_manager.h"
+//#include "ash/display/display_manager.h"
+#include "ash/display/display_util.h"
#include "ash/display/mouse_warp_controller.h"
+
#include "ash/shell.h"
#include "ui/events/event.h"
@@ -23,8 +25,8 @@ MouseCursorEventFilter::~MouseCursorEventFilter() {
}
void MouseCursorEventFilter::ShowSharedEdgeIndicator(aura::Window* from) {
- mouse_warp_controller_ =
- Shell::GetInstance()->display_manager()->CreateMouseWarpController(from);
+ mouse_warp_controller_ = ash::CreateMouseWarpController(
+ Shell::GetInstance()->display_manager(), from);
}
void MouseCursorEventFilter::HideSharedEdgeIndicator() {
@@ -36,9 +38,8 @@ void MouseCursorEventFilter::OnDisplaysInitialized() {
}
void MouseCursorEventFilter::OnDisplayConfigurationChanged() {
- mouse_warp_controller_ =
- Shell::GetInstance()->display_manager()->CreateMouseWarpController(
- nullptr);
+ mouse_warp_controller_ = ash::CreateMouseWarpController(
+ Shell::GetInstance()->display_manager(), nullptr);
}
void MouseCursorEventFilter::OnMouseEvent(ui::MouseEvent* event) {
« no previous file with comments | « ash/display/mouse_cursor_event_filter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698