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: components/exo/pointer.h

Issue 2458853002: exo: Replace fling cancel with generic zero distance scroll
Patch Set: Created 4 years, 1 month 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') | components/exo/pointer.cc » ('J')
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 "components/exo/surface_delegate.h" 11 #include "components/exo/surface_delegate.h"
12 #include "components/exo/surface_observer.h" 12 #include "components/exo/surface_observer.h"
13 #include "components/exo/wm_helper.h" 13 #include "components/exo/wm_helper.h"
14 #include "ui/events/event_constants.h"
14 #include "ui/events/event_handler.h" 15 #include "ui/events/event_handler.h"
15 #include "ui/gfx/geometry/point.h" 16 #include "ui/gfx/geometry/point.h"
16 #include "ui/gfx/geometry/point_f.h" 17 #include "ui/gfx/geometry/point_f.h"
17 18
18 namespace ui { 19 namespace ui {
19 class Event; 20 class Event;
20 class MouseEvent; 21 class MouseEvent;
21 class MouseWheelEvent; 22 class MouseWheelEvent;
22 } 23 }
23 24
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 104
104 // The current pointer tilt. 105 // The current pointer tilt.
105 gfx::Vector2dF tilt_; 106 gfx::Vector2dF tilt_;
106 107
107 // The current pointer force. 108 // The current pointer force.
108 float force_; 109 float force_;
109 110
110 // True if the pointer is controlled via direct input. 111 // True if the pointer is controlled via direct input.
111 bool is_direct_input_ = false; 112 bool is_direct_input_ = false;
112 113
114 // Last received event type
reveman 2016/10/31 02:25:13 nit: s/type/type./
denniskempin 2016/10/31 17:33:49 Done.
115 ui::EventType last_event_type_ = ui::ET_UNKNOWN;
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') | components/exo/pointer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698