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

Unified Diff: ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h

Issue 196213004: Allows menu host windows to be enumerated in DragTargetWindowFinder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Implements menu XID caching and dispatches mouse drags in a posted task (test) Created 6 years, 9 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: ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
diff --git a/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h b/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
index 9fd51cb3bc820366a1f7f3d2dda3df255f1074c1..5140b3767ea7ba0d457e349a07bf70440a72faa3 100644
--- a/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
+++ b/ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h
@@ -62,6 +62,9 @@ class X11WholeScreenMoveLoop : public base::MessagePumpDispatcher {
// (defined as having a pixel with alpha > 32). If so, return true.
bool CheckIfIconValid();
+ // Dispatch mouse movement event to |delegate_| in a posted task.
+ void DispatchMouseMovement();
+
X11WholeScreenMoveLoopDelegate* delegate_;
// Are we running a nested message loop from RunMoveLoop()?
@@ -81,6 +84,8 @@ class X11WholeScreenMoveLoop : public base::MessagePumpDispatcher {
scoped_ptr<Widget> drag_widget_;
gfx::ImageSkia drag_image_;
gfx::Vector2dF drag_offset_;
+ XMotionEvent last_xmotion_;
+ bool motion_task_posted_;
DISALLOW_COPY_AND_ASSIGN(X11WholeScreenMoveLoop);
};

Powered by Google App Engine
This is Rietveld 408576698