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

Side by Side Diff: components/exo/pointer.h

Issue 2840113002: exo: Replace fling cancel with generic zero distance scroll (Closed)
Patch Set: fixed nit in test Created 3 years, 7 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
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_EXO_POINTER_H_ 5 #ifndef COMPONENTS_EXO_POINTER_H_
6 #define COMPONENTS_EXO_POINTER_H_ 6 #define COMPONENTS_EXO_POINTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/unguessable_token.h" 12 #include "base/unguessable_token.h"
13 #include "components/exo/surface_delegate.h" 13 #include "components/exo/surface_delegate.h"
14 #include "components/exo/surface_observer.h" 14 #include "components/exo/surface_observer.h"
15 #include "components/exo/wm_helper.h" 15 #include "components/exo/wm_helper.h"
16 #include "ui/base/cursor/cursor.h" 16 #include "ui/base/cursor/cursor.h"
17 #include "ui/events/event_constants.h"
17 #include "ui/events/event_handler.h" 18 #include "ui/events/event_handler.h"
18 #include "ui/gfx/geometry/point.h" 19 #include "ui/gfx/geometry/point.h"
19 #include "ui/gfx/geometry/point_f.h" 20 #include "ui/gfx/geometry/point_f.h"
20 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
21 22
22 namespace cc { 23 namespace cc {
23 class CopyOutputResult; 24 class CopyOutputResult;
24 } 25 }
25 26
26 namespace ui { 27 namespace ui {
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 101
101 // The position of the pointer surface relative to the pointer location. 102 // The position of the pointer surface relative to the pointer location.
102 gfx::Point hotspot_; 103 gfx::Point hotspot_;
103 104
104 // The current cursor. 105 // The current cursor.
105 ui::Cursor cursor_; 106 ui::Cursor cursor_;
106 107
107 // Source used for cursor capture copy output requests. 108 // Source used for cursor capture copy output requests.
108 const base::UnguessableToken cursor_capture_source_id_; 109 const base::UnguessableToken cursor_capture_source_id_;
109 110
111 // Last received event type.
112 ui::EventType last_event_type_ = ui::ET_UNKNOWN;
113
110 // Weak pointer factory used for cursor capture callbacks. 114 // Weak pointer factory used for cursor capture callbacks.
111 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; 115 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_;
112 116
113 DISALLOW_COPY_AND_ASSIGN(Pointer); 117 DISALLOW_COPY_AND_ASSIGN(Pointer);
114 }; 118 };
115 119
116 } // namespace exo 120 } // namespace exo
117 121
118 #endif // COMPONENTS_EXO_POINTER_H_ 122 #endif // COMPONENTS_EXO_POINTER_H_
OLDNEW
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698