diff options
Diffstat (limited to 'ui/events')
| -rw-r--r-- | ui/events/devices/input_device.cc | 2 | ||||
| -rw-r--r-- | ui/events/devices/input_device.h | 1 | ||||
| -rw-r--r-- | ui/events/gesture_detection/gesture_detector.cc | 2 | ||||
| -rw-r--r-- | ui/events/gesture_detection/gesture_detector.h | 1 | ||||
| -rw-r--r-- | ui/events/gesture_detection/gesture_event_data.cc | 2 | ||||
| -rw-r--r-- | ui/events/gesture_detection/gesture_event_data.h | 1 | ||||
| -rw-r--r-- | ui/events/gesture_detection/gesture_provider.cc | 2 | ||||
| -rw-r--r-- | ui/events/gesture_detection/gesture_provider.h | 1 | ||||
| -rw-r--r-- | ui/events/gesture_detection/motion_event_generic.cc | 2 | ||||
| -rw-r--r-- | ui/events/gesture_detection/motion_event_generic.h | 1 | ||||
| -rw-r--r-- | ui/events/latency_info.cc | 2 | ||||
| -rw-r--r-- | ui/events/latency_info.h | 1 |
12 files changed, 18 insertions, 0 deletions
diff --git a/ui/events/devices/input_device.cc b/ui/events/devices/input_device.cc index 02139b1..4734edd 100644 --- a/ui/events/devices/input_device.cc +++ b/ui/events/devices/input_device.cc @@ -32,6 +32,8 @@ InputDevice::InputDevice(int id, vendor_id(vendor), product_id(product) {} +InputDevice::InputDevice(const InputDevice& other) = default; + InputDevice::~InputDevice() { } diff --git a/ui/events/devices/input_device.h b/ui/events/devices/input_device.h index c118261..4ef06b3 100644 --- a/ui/events/devices/input_device.h +++ b/ui/events/devices/input_device.h @@ -33,6 +33,7 @@ struct EVENTS_DEVICES_EXPORT InputDevice { const base::FilePath& sys_path, uint16_t vendor, uint16_t product); + InputDevice(const InputDevice& other); virtual ~InputDevice(); // ID of the device. This ID is unique between all input devices. diff --git a/ui/events/gesture_detection/gesture_detector.cc b/ui/events/gesture_detection/gesture_detector.cc index 2996bc7..6fc39a8 100644 --- a/ui/events/gesture_detection/gesture_detector.cc +++ b/ui/events/gesture_detection/gesture_detector.cc @@ -61,6 +61,8 @@ GestureDetector::Config::Config() single_tap_repeat_interval(1), velocity_tracker_strategy(VelocityTracker::Strategy::STRATEGY_DEFAULT) {} +GestureDetector::Config::Config(const Config& other) = default; + GestureDetector::Config::~Config() {} class GestureDetector::TimeoutGestureHandler { diff --git a/ui/events/gesture_detection/gesture_detector.h b/ui/events/gesture_detection/gesture_detector.h index 49def14..9fb6999 100644 --- a/ui/events/gesture_detection/gesture_detector.h +++ b/ui/events/gesture_detection/gesture_detector.h @@ -25,6 +25,7 @@ class GESTURE_DETECTION_EXPORT GestureDetector { public: struct GESTURE_DETECTION_EXPORT Config { Config(); + Config(const Config& other); ~Config(); base::TimeDelta longpress_timeout; diff --git a/ui/events/gesture_detection/gesture_event_data.cc b/ui/events/gesture_detection/gesture_event_data.cc index b166ffa..676dade 100644 --- a/ui/events/gesture_detection/gesture_event_data.cc +++ b/ui/events/gesture_detection/gesture_event_data.cc @@ -49,6 +49,8 @@ GestureEventData::GestureEventData(EventType type, details.set_bounding_box(other.details.bounding_box_f()); } +GestureEventData::GestureEventData(const GestureEventData& other) = default; + GestureEventData::GestureEventData() : motion_event_id(0), primary_tool_type(MotionEvent::TOOL_TYPE_UNKNOWN), diff --git a/ui/events/gesture_detection/gesture_event_data.h b/ui/events/gesture_detection/gesture_event_data.h index 8f54355..541fe12 100644 --- a/ui/events/gesture_detection/gesture_event_data.h +++ b/ui/events/gesture_detection/gesture_event_data.h @@ -30,6 +30,7 @@ struct GESTURE_DETECTION_EXPORT GestureEventData { const gfx::RectF& bounding_box, int flags); GestureEventData(EventType type, const GestureEventData&); + GestureEventData(const GestureEventData& other); EventType type() const { return details.type(); } diff --git a/ui/events/gesture_detection/gesture_provider.cc b/ui/events/gesture_detection/gesture_provider.cc index 2ea2b53..40944ff 100644 --- a/ui/events/gesture_detection/gesture_provider.cc +++ b/ui/events/gesture_detection/gesture_provider.cc @@ -75,6 +75,8 @@ GestureProvider::Config::Config() max_gesture_bounds_length(0) { } +GestureProvider::Config::Config(const Config& other) = default; + GestureProvider::Config::~Config() { } diff --git a/ui/events/gesture_detection/gesture_provider.h b/ui/events/gesture_detection/gesture_provider.h index c738f53..0da3316 100644 --- a/ui/events/gesture_detection/gesture_provider.h +++ b/ui/events/gesture_detection/gesture_provider.h @@ -28,6 +28,7 @@ class GESTURE_DETECTION_EXPORT GestureProvider { public: struct GESTURE_DETECTION_EXPORT Config { Config(); + Config(const Config& other); ~Config(); gfx::Display display; GestureDetector::Config gesture_detector_config; diff --git a/ui/events/gesture_detection/motion_event_generic.cc b/ui/events/gesture_detection/motion_event_generic.cc index 041bddd..935584c 100644 --- a/ui/events/gesture_detection/motion_event_generic.cc +++ b/ui/events/gesture_detection/motion_event_generic.cc @@ -50,6 +50,8 @@ PointerProperties::PointerProperties(const MotionEvent& event, source_device_id(0) { } +PointerProperties::PointerProperties(const PointerProperties& other) = default; + void PointerProperties::SetAxesAndOrientation(float radius_x, float radius_y, float rotation_angle_degree) { diff --git a/ui/events/gesture_detection/motion_event_generic.h b/ui/events/gesture_detection/motion_event_generic.h index c5ea1b0..bc9b351 100644 --- a/ui/events/gesture_detection/motion_event_generic.h +++ b/ui/events/gesture_detection/motion_event_generic.h @@ -19,6 +19,7 @@ struct GESTURE_DETECTION_EXPORT PointerProperties { PointerProperties(); PointerProperties(float x, float y, float touch_major); PointerProperties(const MotionEvent& event, size_t pointer_index); + PointerProperties(const PointerProperties& other); // Sets |touch_major|, |touch_minor|, and |orientation| from the given radius // and rotation angle (in degrees). diff --git a/ui/events/latency_info.cc b/ui/events/latency_info.cc index cd03d4c..841d648 100644 --- a/ui/events/latency_info.cc +++ b/ui/events/latency_info.cc @@ -148,6 +148,8 @@ LatencyInfo::LatencyInfo() terminated_(false) { } +LatencyInfo::LatencyInfo(const LatencyInfo& other) = default; + LatencyInfo::~LatencyInfo() { } diff --git a/ui/events/latency_info.h b/ui/events/latency_info.h index 77efe5f7..31a1055 100644 --- a/ui/events/latency_info.h +++ b/ui/events/latency_info.h @@ -131,6 +131,7 @@ class EVENTS_BASE_EXPORT LatencyInfo { kTypicalMaxComponentsPerLatencyInfo> LatencyMap; LatencyInfo(); + LatencyInfo(const LatencyInfo& other); ~LatencyInfo(); // For test only. |
