OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_ | |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_ | |
7 | |
8 #include <X11/Xlib.h> | |
9 | |
10 namespace views { | |
11 | |
12 // Receives mouse events while the X11MoveLoop is tracking a drag. | |
13 class X11MoveLoopDelegate { | |
14 public: | |
15 // Called when we receive a motion event. | |
16 virtual void OnMouseMovement(XMotionEvent* event) = 0; | |
17 | |
18 // Called when the mouse button is released. | |
19 virtual void OnMouseReleased() = 0; | |
20 | |
21 // Called when the user has released the mouse button. The move loop will | |
22 // release the grab after this has been called. | |
23 virtual void OnMoveLoopEnded() = 0; | |
24 }; | |
25 | |
26 } // namespace views | |
27 | |
28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_ | |
OLD | NEW |