// Copyright (c) 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_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ #define CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ #include namespace WebKit { class WebGestureEvent; class WebMouseEvent; class WebMouseWheelEvent; } namespace content { template class EventWithLatencyInfo { public: T event; cc::LatencyInfo latency; EventWithLatencyInfo(const T& e, const cc::LatencyInfo& l) : event(e), latency(l) {} EventWithLatencyInfo() {} }; typedef EventWithLatencyInfo GestureEventWithLatencyInfo; typedef EventWithLatencyInfo MouseWheelEventWithLatencyInfo; typedef EventWithLatencyInfo MouseEventWithLatencyInfo; } // namespace content #endif // CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_