| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ |
| 7 | 7 |
| 8 #include <cc/debug/latency_info.h> | 8 #include "ui/base/latency_info.h" |
| 9 | 9 |
| 10 namespace WebKit { | 10 namespace WebKit { |
| 11 class WebGestureEvent; | 11 class WebGestureEvent; |
| 12 class WebMouseEvent; | 12 class WebMouseEvent; |
| 13 class WebMouseWheelEvent; | 13 class WebMouseWheelEvent; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 template <typename T> | 18 template <typename T> |
| 19 class EventWithLatencyInfo { | 19 class EventWithLatencyInfo { |
| 20 public: | 20 public: |
| 21 T event; | 21 T event; |
| 22 cc::LatencyInfo latency; | 22 ui::LatencyInfo latency; |
| 23 | 23 |
| 24 EventWithLatencyInfo(const T& e, const cc::LatencyInfo& l) | 24 EventWithLatencyInfo(const T& e, const ui::LatencyInfo& l) |
| 25 : event(e), latency(l) {} | 25 : event(e), latency(l) {} |
| 26 | 26 |
| 27 EventWithLatencyInfo() {} | 27 EventWithLatencyInfo() {} |
| 28 }; | 28 }; |
| 29 | 29 |
| 30 typedef EventWithLatencyInfo<WebKit::WebGestureEvent> | 30 typedef EventWithLatencyInfo<WebKit::WebGestureEvent> |
| 31 GestureEventWithLatencyInfo; | 31 GestureEventWithLatencyInfo; |
| 32 typedef EventWithLatencyInfo<WebKit::WebMouseWheelEvent> | 32 typedef EventWithLatencyInfo<WebKit::WebMouseWheelEvent> |
| 33 MouseWheelEventWithLatencyInfo; | 33 MouseWheelEventWithLatencyInfo; |
| 34 typedef EventWithLatencyInfo<WebKit::WebMouseEvent> | 34 typedef EventWithLatencyInfo<WebKit::WebMouseEvent> |
| 35 MouseEventWithLatencyInfo; | 35 MouseEventWithLatencyInfo; |
| 36 | 36 |
| 37 } // namespace content | 37 } // namespace content |
| 38 | 38 |
| 39 #endif // CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ | 39 #endif // CONTENT_BROWSER_RENDERER_HOST_EVENT_WITH_LATENCY_INFO_H_ |
| OLD | NEW |