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

Side by Side Diff: ui/views/widget/desktop_aura/x11_desktop_window_move_client.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 (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_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
7 7
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 15 matching lines...) Expand all
26 class VIEWS_EXPORT X11DesktopWindowMoveClient : 26 class VIEWS_EXPORT X11DesktopWindowMoveClient :
27 public views::X11MoveLoopDelegate, 27 public views::X11MoveLoopDelegate,
28 public aura::client::WindowMoveClient { 28 public aura::client::WindowMoveClient {
29 public: 29 public:
30 X11DesktopWindowMoveClient(); 30 X11DesktopWindowMoveClient();
31 ~X11DesktopWindowMoveClient() override; 31 ~X11DesktopWindowMoveClient() override;
32 32
33 // Overridden from X11WholeScreenMoveLoopDelegate: 33 // Overridden from X11WholeScreenMoveLoopDelegate:
34 void OnMouseMovement(const gfx::Point& screen_point, 34 void OnMouseMovement(const gfx::Point& screen_point,
35 int flags, 35 int flags,
36 base::TimeDelta event_time) override; 36 base::TimeTicks event_time) override;
37 void OnMouseReleased() override; 37 void OnMouseReleased() override;
38 void OnMoveLoopEnded() override; 38 void OnMoveLoopEnded() override;
39 39
40 // Overridden from aura::client::WindowMoveClient: 40 // Overridden from aura::client::WindowMoveClient:
41 aura::client::WindowMoveResult RunMoveLoop( 41 aura::client::WindowMoveResult RunMoveLoop(
42 aura::Window* window, 42 aura::Window* window,
43 const gfx::Vector2d& drag_offset, 43 const gfx::Vector2d& drag_offset,
44 aura::client::WindowMoveSource move_source) override; 44 aura::client::WindowMoveSource move_source) override;
45 void EndMoveLoop() override; 45 void EndMoveLoop() override;
46 46
47 private: 47 private:
48 X11WholeScreenMoveLoop move_loop_; 48 X11WholeScreenMoveLoop move_loop_;
49 49
50 // We need to keep track of this so we can actually move it when reacting to 50 // We need to keep track of this so we can actually move it when reacting to
51 // mouse events. 51 // mouse events.
52 aura::WindowTreeHost* host_; 52 aura::WindowTreeHost* host_;
53 53
54 // Our cursor offset from the top left window origin when the drag 54 // Our cursor offset from the top left window origin when the drag
55 // started. Used to calculate the window's new bounds relative to the current 55 // started. Used to calculate the window's new bounds relative to the current
56 // location of the cursor. 56 // location of the cursor.
57 gfx::Vector2d window_offset_; 57 gfx::Vector2d window_offset_;
58 }; 58 };
59 59
60 } // namespace views 60 } // namespace views
61 61
62 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_ 62 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698