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

Side by Side Diff: ui/views/widget/desktop_aura/x11_move_loop_delegate.h

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_X11_MOVE_LOOP_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_
7 7
8 namespace views { 8 namespace views {
9 9
10 // Receives mouse events while the X11MoveLoop is tracking a drag. 10 // Receives mouse events while the X11MoveLoop is tracking a drag.
11 class X11MoveLoopDelegate { 11 class X11MoveLoopDelegate {
12 public: 12 public:
13 // Called when we receive a mouse move event. 13 // Called when we receive a mouse move event.
14 virtual void OnMouseMovement(const gfx::Point& screen_point, 14 virtual void OnMouseMovement(const gfx::Point& screen_point,
15 int flags, 15 int flags,
16 base::TimeDelta event_time) = 0; 16 base::TimeTicks event_time) = 0;
17 17
18 // Called when the mouse button is released. 18 // Called when the mouse button is released.
19 virtual void OnMouseReleased() = 0; 19 virtual void OnMouseReleased() = 0;
20 20
21 // Called when the user has released the mouse button. The move loop will 21 // Called when the user has released the mouse button. The move loop will
22 // release the grab after this has been called. 22 // release the grab after this has been called.
23 virtual void OnMoveLoopEnded() = 0; 23 virtual void OnMoveLoopEnded() = 0;
24 }; 24 };
25 25
26 } // namespace views 26 } // namespace views
27 27
28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_ 28 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_MOVE_LOOP_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/x11_desktop_window_move_client.cc ('k') | ui/views/widget/root_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698