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

Side by Side Diff: ui/events/ozone/evdev/device_event_dispatcher_evdev.h

Issue 1112813003: Pass gfx structs by const ref (gfx::Vector2d/F) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 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
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 UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ 5 #ifndef UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
6 #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ 6 #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 int device_id; 74 int device_id;
75 gfx::PointF location; 75 gfx::PointF location;
76 gfx::Vector2d delta; 76 gfx::Vector2d delta;
77 base::TimeDelta timestamp; 77 base::TimeDelta timestamp;
78 }; 78 };
79 79
80 struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams { 80 struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams {
81 ScrollEventParams(int device_id, 81 ScrollEventParams(int device_id,
82 EventType type, 82 EventType type,
83 const gfx::PointF location, 83 const gfx::PointF location,
84 const gfx::Vector2dF delta, 84 const gfx::Vector2dF& delta,
85 const gfx::Vector2dF ordinal_delta, 85 const gfx::Vector2dF& ordinal_delta,
86 int finger_count, 86 int finger_count,
87 const base::TimeDelta timestamp); 87 const base::TimeDelta timestamp);
88 ScrollEventParams(const ScrollEventParams& other); 88 ScrollEventParams(const ScrollEventParams& other);
89 ~ScrollEventParams(); 89 ~ScrollEventParams();
90 90
91 int device_id; 91 int device_id;
92 EventType type; 92 EventType type;
93 const gfx::PointF location; 93 const gfx::PointF location;
94 const gfx::Vector2dF delta; 94 const gfx::Vector2dF delta;
95 const gfx::Vector2dF ordinal_delta; 95 const gfx::Vector2dF ordinal_delta;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const std::vector<TouchscreenDevice>& devices) = 0; 139 const std::vector<TouchscreenDevice>& devices) = 0;
140 virtual void DispatchMouseDevicesUpdated( 140 virtual void DispatchMouseDevicesUpdated(
141 const std::vector<InputDevice>& devices) = 0; 141 const std::vector<InputDevice>& devices) = 0;
142 virtual void DispatchTouchpadDevicesUpdated( 142 virtual void DispatchTouchpadDevicesUpdated(
143 const std::vector<InputDevice>& devices) = 0; 143 const std::vector<InputDevice>& devices) = 0;
144 }; 144 };
145 145
146 } // namespace ui 146 } // namespace ui
147 147
148 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ 148 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/velocity_tracker_unittest.cc ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698