Make castv2 performance test work.
[chromium-blink-merge.git] / ui / views / widget / desktop_aura / x11_move_loop_delegate.h
blobecc2396921c94ea7a8808aacedafd438f060d2fa
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.
5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_
8 namespace views {
10 // Receives mouse events while the X11MoveLoop is tracking a drag.
11 class X11MoveLoopDelegate {
12 public:
13 // Called when we receive a mouse move event.
14 virtual void OnMouseMovement(const gfx::Point& screen_point,
15 int flags,
16 base::TimeDelta event_time) = 0;
18 // Called when the mouse button is released.
19 virtual void OnMouseReleased() = 0;
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;
26 } // namespace views
28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_