OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
7 | 7 |
8 #include <X11/Xlib.h> | 8 #include <X11/Xlib.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void Drop(aura::Window* target, const ui::LocatedEvent& event) override; | 93 void Drop(aura::Window* target, const ui::LocatedEvent& event) override; |
94 void DragCancel() override; | 94 void DragCancel() override; |
95 bool IsDragDropInProgress() override; | 95 bool IsDragDropInProgress() override; |
96 | 96 |
97 // Overridden from aura::WindowObserver: | 97 // Overridden from aura::WindowObserver: |
98 void OnWindowDestroyed(aura::Window* window) override; | 98 void OnWindowDestroyed(aura::Window* window) override; |
99 | 99 |
100 // Overridden from X11WholeScreenMoveLoopDelegate: | 100 // Overridden from X11WholeScreenMoveLoopDelegate: |
101 void OnMouseMovement(const gfx::Point& screen_point, | 101 void OnMouseMovement(const gfx::Point& screen_point, |
102 int flags, | 102 int flags, |
103 base::TimeDelta event_time) override; | 103 base::TimeTicks event_time) override; |
104 void OnMouseReleased() override; | 104 void OnMouseReleased() override; |
105 void OnMoveLoopEnded() override; | 105 void OnMoveLoopEnded() override; |
106 | 106 |
107 protected: | 107 protected: |
108 // The following methods are virtual for the sake of testing. | 108 // The following methods are virtual for the sake of testing. |
109 | 109 |
110 // Creates a move loop. | 110 // Creates a move loop. |
111 virtual std::unique_ptr<X11MoveLoop> CreateMoveLoop( | 111 virtual std::unique_ptr<X11MoveLoop> CreateMoveLoop( |
112 X11MoveLoopDelegate* delegate); | 112 X11MoveLoopDelegate* delegate); |
113 | 113 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 gfx::Vector2d drag_widget_offset_; | 289 gfx::Vector2d drag_widget_offset_; |
290 | 290 |
291 base::WeakPtrFactory<DesktopDragDropClientAuraX11> weak_ptr_factory_; | 291 base::WeakPtrFactory<DesktopDragDropClientAuraX11> weak_ptr_factory_; |
292 | 292 |
293 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); | 293 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); |
294 }; | 294 }; |
295 | 295 |
296 } // namespace views | 296 } // namespace views |
297 | 297 |
298 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ | 298 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ |
OLD | NEW |