Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(617)

Side by Side Diff: content/browser/renderer_host/event_with_latency_info.h

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/browser/renderer_host/overscroll_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698