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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.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_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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 void Drop(aura::Window* target, const ui::LocatedEvent& event) override; 92 void Drop(aura::Window* target, const ui::LocatedEvent& event) override;
93 void DragCancel() override; 93 void DragCancel() override;
94 bool IsDragDropInProgress() override; 94 bool IsDragDropInProgress() override;
95 95
96 // Overridden from aura::WindowObserver: 96 // Overridden from aura::WindowObserver:
97 void OnWindowDestroyed(aura::Window* window) override; 97 void OnWindowDestroyed(aura::Window* window) override;
98 98
99 // Overridden from X11WholeScreenMoveLoopDelegate: 99 // Overridden from X11WholeScreenMoveLoopDelegate:
100 void OnMouseMovement(const gfx::Point& screen_point, 100 void OnMouseMovement(const gfx::Point& screen_point,
101 int flags, 101 int flags,
102 base::TimeDelta event_time) override; 102 base::TimeTicks event_time) override;
103 void OnMouseReleased() override; 103 void OnMouseReleased() override;
104 void OnMoveLoopEnded() override; 104 void OnMoveLoopEnded() override;
105 105
106 protected: 106 protected:
107 // The following methods are virtual for the sake of testing. 107 // The following methods are virtual for the sake of testing.
108 108
109 // Creates a move loop. 109 // Creates a move loop.
110 virtual std::unique_ptr<X11MoveLoop> CreateMoveLoop( 110 virtual std::unique_ptr<X11MoveLoop> CreateMoveLoop(
111 X11MoveLoopDelegate* delegate); 111 X11MoveLoopDelegate* delegate);
112 112
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 gfx::Vector2d drag_widget_offset_; 282 gfx::Vector2d drag_widget_offset_;
283 283
284 base::WeakPtrFactory<DesktopDragDropClientAuraX11> weak_ptr_factory_; 284 base::WeakPtrFactory<DesktopDragDropClientAuraX11> weak_ptr_factory_;
285 285
286 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11); 286 DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11);
287 }; 287 };
288 288
289 } // namespace views 289 } // namespace views
290 290
291 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_ 291 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DRAG_DROP_CLIENT_AURAX11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698