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

Unified Diff: ui/aura/window_event_dispatcher.cc

Issue 971753008: Do not show the mouse cursor when the display is rotated in TouchView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rotate_display
Patch Set: Created 5 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
« ash/display/display_controller.cc ('K') | « ui/aura/window_event_dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index a21236ac38558d4daa23c68c62f3bf8a84b1032a..cd878c7898cf5a38c64ff614911b1bf1ec8d1306 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -158,6 +158,17 @@ DispatchDetails WindowEventDispatcher::DispatchMouseExitAtPoint(
return DispatchMouseEnterOrExit(window, event, ui::ET_MOUSE_EXITED);
}
+void WindowEventDispatcher::PostSynthesizeMouseMove() {
+ if (synthesize_mouse_move_)
+ return;
+ synthesize_mouse_move_ = true;
+ base::MessageLoop::current()->PostNonNestableTask(
+ FROM_HERE,
+ base::Bind(base::IgnoreResult(
+ &WindowEventDispatcher::SynthesizeMouseMoveEvent),
+ held_event_factory_.GetWeakPtr()));
+}
+
void WindowEventDispatcher::ProcessedTouchEvent(Window* window,
ui::EventResult result) {
scoped_ptr<ui::GestureRecognizer::Gestures> gestures(
@@ -685,17 +696,6 @@ ui::EventDispatchDetails WindowEventDispatcher::DispatchHeldEvents() {
return dispatch_details;
}
-void WindowEventDispatcher::PostSynthesizeMouseMove() {
- if (synthesize_mouse_move_)
- return;
- synthesize_mouse_move_ = true;
- base::MessageLoop::current()->PostNonNestableTask(
- FROM_HERE,
- base::Bind(base::IgnoreResult(
- &WindowEventDispatcher::SynthesizeMouseMoveEvent),
- held_event_factory_.GetWeakPtr()));
-}
-
void WindowEventDispatcher::SynthesizeMouseMoveAfterChangeToWindow(
Window* window) {
if (window->IsVisible() &&
« ash/display/display_controller.cc ('K') | « ui/aura/window_event_dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698