// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_ #define CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_ #include "ui/base/latency_info.h" namespace WebKit { class WebGestureEvent; class WebMouseEvent; class WebMouseWheelEvent; class WebTouchEvent; } namespace content { template class EventWithLatencyInfo { public: T event; ui::LatencyInfo latency; EventWithLatencyInfo(const T& e, const ui::LatencyInfo& l) : event(e), latency(l) {} EventWithLatencyInfo() {} }; typedef EventWithLatencyInfo GestureEventWithLatencyInfo; typedef EventWithLatencyInfo MouseWheelEventWithLatencyInfo; typedef EventWithLatencyInfo MouseEventWithLatencyInfo; typedef EventWithLatencyInfo TouchEventWithLatencyInfo; } // namespace content #endif // CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_