| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 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 CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ |
| 7 |
| 8 #include <cc/debug/latency_info.h> |
| 9 |
| 10 namespace WebKit { |
| 11 class WebGestureEvent; |
| 12 class WebMouseEvent; |
| 13 class WebMouseWheelEvent; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 |
| 18 template <typename T> |
| 19 class EventWithLatencyInfo { |
| 20 public: |
| 21 T event; |
| 22 cc::LatencyInfo latency; |
| 23 |
| 24 EventWithLatencyInfo(const T& e, const cc::LatencyInfo& l) |
| 25 : event(e), latency(l) {} |
| 26 |
| 27 EventWithLatencyInfo() {} |
| 28 }; |
| 29 |
| 30 typedef EventWithLatencyInfo<WebKit::WebGestureEvent> |
| 31 GestureEventWithLatencyInfo; |
| 32 typedef EventWithLatencyInfo<WebKit::WebMouseWheelEvent> |
| 33 MouseWheelEventWithLatencyInfo; |
| 34 typedef EventWithLatencyInfo<WebKit::WebMouseEvent> |
| 35 MouseEventWithLatencyInfo; |
| 36 |
| 37 } // namespace content |
| 38 |
| 39 #endif // CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ |
| OLD | NEW |