gesture_event_data.h revision effb81e5f8246d0db0270817048dc992db66e9fb
1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 6#define UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 7 8#include "base/time/time.h" 9#include "ui/events/event_constants.h" 10#include "ui/events/gesture_detection/gesture_detection_export.h" 11#include "ui/events/gesture_event_details.h" 12 13namespace ui { 14 15class GestureEventDataPacket; 16 17struct GESTURE_DETECTION_EXPORT GestureEventData { 18 GestureEventData(EventType type, 19 base::TimeTicks time, 20 float x, 21 float y, 22 const GestureEventDetails& details); 23 24 GestureEventData(EventType type, 25 base::TimeTicks time, 26 float x, 27 float y); 28 29 EventType type; 30 base::TimeTicks time; 31 float x; 32 float y; 33 34 GestureEventDetails details; 35 36 private: 37 friend class GestureEventDataPacket; 38 39 // Initializes type to GESTURE_TYPE_INVALID. 40 GestureEventData(); 41}; 42 43} // namespace ui 44 45#endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 46