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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_ 5 #ifndef CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_
6 #define CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_ 6 #define CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_
7 7
8 #include "ui/events/latency_info.h" 8 #include "ui/events/latency_info.h"
9 9
10 #include "content/common/input/web_input_event_traits.h" 10 #include "content/common/input/web_input_event_traits.h"
11 11
12 namespace WebKit { 12 namespace blink {
13 class WebGestureEvent; 13 class WebGestureEvent;
14 class WebMouseEvent; 14 class WebMouseEvent;
15 class WebMouseWheelEvent; 15 class WebMouseWheelEvent;
16 class WebTouchEvent; 16 class WebTouchEvent;
17 } 17 }
18 18
19 namespace content { 19 namespace content {
20 20
21 template <typename T> 21 template <typename T>
22 class EventWithLatencyInfo { 22 class EventWithLatencyInfo {
(...skipping 10 matching lines...) Expand all
33 const WARN_UNUSED_RESULT { 33 const WARN_UNUSED_RESULT {
34 return WebInputEventTraits::CanCoalesce(other.event, event); 34 return WebInputEventTraits::CanCoalesce(other.event, event);
35 } 35 }
36 36
37 void CoalesceWith(const EventWithLatencyInfo& other) { 37 void CoalesceWith(const EventWithLatencyInfo& other) {
38 WebInputEventTraits::Coalesce(other.event, &event); 38 WebInputEventTraits::Coalesce(other.event, &event);
39 latency.MergeWith(other.latency); 39 latency.MergeWith(other.latency);
40 } 40 }
41 }; 41 };
42 42
43 typedef EventWithLatencyInfo<WebKit::WebGestureEvent> 43 typedef EventWithLatencyInfo<blink::WebGestureEvent>
44 GestureEventWithLatencyInfo; 44 GestureEventWithLatencyInfo;
45 typedef EventWithLatencyInfo<WebKit::WebMouseWheelEvent> 45 typedef EventWithLatencyInfo<blink::WebMouseWheelEvent>
46 MouseWheelEventWithLatencyInfo; 46 MouseWheelEventWithLatencyInfo;
47 typedef EventWithLatencyInfo<WebKit::WebMouseEvent> 47 typedef EventWithLatencyInfo<blink::WebMouseEvent>
48 MouseEventWithLatencyInfo; 48 MouseEventWithLatencyInfo;
49 typedef EventWithLatencyInfo<WebKit::WebTouchEvent> 49 typedef EventWithLatencyInfo<blink::WebTouchEvent>
50 TouchEventWithLatencyInfo; 50 TouchEventWithLatencyInfo;
51 51
52 } // namespace content 52 } // namespace content
53 53
54 #endif // CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_ 54 #endif // CONTENT_PORT_BROWSER_EVENT_WITH_LATENCY_INFO_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | content/port/browser/render_view_host_delegate_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698