Chromium Code Reviews| Index: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h |
| diff --git a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h |
| index d4092489154ac5c4c79764bf35918fd3ddabb141..cd008f12a20c31a4e2bc86b8ecc44eed0e1a3543 100644 |
| --- a/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h |
| +++ b/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h |
| @@ -97,6 +97,17 @@ class VIEWS_EXPORT DesktopDragDropClientAuraX11 |
| virtual void OnMouseReleased() OVERRIDE; |
| virtual void OnMoveLoopEnded() OVERRIDE; |
| + protected: |
| + // The following methods are virtual for the sake of testing. |
| + |
| + // Returns the topmost X11 window at |screen_point| and returns it if it is |
|
varkha
2014/05/07 03:11:08
Nit: Do you want to rephrase it a bit (remove repe
pkotwicz
2014/05/07 15:16:36
Done.
|
| + // Xdnd aware. Returns NULL otherwise. |
| + virtual ::Window FindWindowFor(const gfx::Point& screen_point); |
| + |
| + // Sends |xev| to |xid|, optionally short circuiting the round trip to the X |
| + // server. |
| + virtual void SendXClientEvent(::Window xid, XEvent* xev); |
| + |
| private: |
| enum SourceState { |
| // |source_current_window_| will receive a drop once we receive an |
| @@ -166,10 +177,6 @@ class VIEWS_EXPORT DesktopDragDropClientAuraX11 |
| unsigned long event_time); |
| void SendXdndDrop(::Window dest_window); |
| - // Sends |xev| to |xid|, optionally short circuiting the round trip to the X |
| - // server. |
| - void SendXClientEvent(::Window xid, XEvent* xev); |
| - |
| // A nested message loop that notifies this object of events through the |
| // X11WholeScreenMoveLoopDelegate interface. |
| X11WholeScreenMoveLoop move_loop_; |