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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 145313003: Implement cursor compositing mode on Ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always update cursor image in SetCursor. Fixes initial wrong cursor. Created 6 years, 10 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
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 bc1368f681dda458089ac930d8f99a788b536cf6..9925f39c8e5f0ff451f571998fb0dbd491f53bde 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -4,9 +4,9 @@
#include "ash/display/mouse_cursor_event_filter.h"
+#include "ash/display/cursor_window_controller.h"
#include "ash/display/display_controller.h"
#include "ash/display/display_manager.h"
-#include "ash/display/mirror_window_controller.h"
#include "ash/display/shared_display_edge_indicator.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
@@ -89,8 +89,9 @@ void MouseCursorEventFilter::OnMouseEvent(ui::MouseEvent* event) {
event->type() != ui::ET_MOUSE_DRAGGED) {
return;
}
+
Shell::GetInstance()->display_controller()->
- mirror_window_controller()->UpdateCursorLocation();
+ cursor_window_controller()->UpdateLocation();
gfx::Point point_in_screen(event->location());
aura::Window* target = static_cast<aura::Window*>(event->target());

Powered by Google App Engine
This is Rietveld 408576698