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

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

Issue 13931009: Add latency info to input events sent to RenderWidget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/gesture_event_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/gesture_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698