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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 150403005: Chrome OS Accessibility: enable cursor compositing when screen magnifier is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not forward synthesized MOUSE_MOVED/DRAGGED events to CursorWindowController. 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.h » ('j') | 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 9925f39c8e5f0ff451f571998fb0dbd491f53bde..89946c770244423eb47a099cdb24d5c67d656457 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -90,8 +90,10 @@ void MouseCursorEventFilter::OnMouseEvent(ui::MouseEvent* event) {
return;
}
- Shell::GetInstance()->display_controller()->
- cursor_window_controller()->UpdateLocation();
+ if (!(event->flags() & ui::EF_IS_SYNTHESIZED)) {
+ Shell::GetInstance()->display_controller()->
+ cursor_window_controller()->UpdateLocation();
+ }
gfx::Point point_in_screen(event->location());
aura::Window* target = static_cast<aura::Window*>(event->target());
« no previous file with comments | « no previous file | chrome/browser/chromeos/accessibility/accessibility_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698