| Index: content/browser/renderer_host/event_with_latency_info.h
|
| diff --git a/content/browser/renderer_host/event_with_latency_info.h b/content/browser/renderer_host/event_with_latency_info.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f7891fff1347058a4b0f02127ef3e0e16ad89f68
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/event_with_latency_info.h
|
| @@ -0,0 +1,39 @@
|
| +// 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 <cc/debug/latency_info.h>
|
| +
|
| +namespace WebKit {
|
| +class WebGestureEvent;
|
| +class WebMouseEvent;
|
| +class WebMouseWheelEvent;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +template <typename T>
|
| +class EventWithLatencyInfo {
|
| + public:
|
| + T event;
|
| + cc::LatencyInfo latency;
|
| +
|
| + EventWithLatencyInfo(const T& e, const cc::LatencyInfo& l)
|
| + : event(e), latency(l) {}
|
| +
|
| + EventWithLatencyInfo() {}
|
| +};
|
| +
|
| +typedef EventWithLatencyInfo<WebKit::WebGestureEvent>
|
| + GestureEventWithLatencyInfo;
|
| +typedef EventWithLatencyInfo<WebKit::WebMouseWheelEvent>
|
| + MouseWheelEventWithLatencyInfo;
|
| +typedef EventWithLatencyInfo<WebKit::WebMouseEvent>
|
| + MouseEventWithLatencyInfo;
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_
|
|
|