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

Unified Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc

Issue 17514009: Fix flakiness in using touch with immersive fullscreen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
diff --git a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
index 7c31ac53f02ccff441b8c9257b7ec76ae685c915..21c2e8ec3facc59369c9fb060a3dbcb441cf5760 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc
@@ -461,6 +461,11 @@ void ImmersiveModeControllerAsh::OnMouseEvent(ui::MouseEvent* event) {
if (!enabled_)
return;
+ // Counterintuitively, we can still get synthesized mouse moves when
+ // aura::client::CursorClient::IsMouseEventsEnabled() == false.
+ if (event->flags() & ui::EF_IS_SYNTHESIZED)
+ return;
+
if (event->type() != ui::ET_MOUSE_MOVED &&
event->type() != ui::ET_MOUSE_PRESSED &&
event->type() != ui::ET_MOUSE_RELEASED &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698