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

Side by Side Diff: content/common/input/event_with_latency_info.h

Issue 2240473002: Give MainThreadEventQueue a mutable WebInputEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed consts Created 4 years, 4 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
« no previous file with comments | « no previous file | content/common/input/event_with_latency_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_ 5 #ifndef CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_
6 #define CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_ 6 #define CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 19 matching lines...) Expand all
30 blink::WebTouchEvent* event); 30 blink::WebTouchEvent* event);
31 bool CONTENT_EXPORT CanCoalesce(const blink::WebGestureEvent& event_to_coalesce, 31 bool CONTENT_EXPORT CanCoalesce(const blink::WebGestureEvent& event_to_coalesce,
32 const blink::WebGestureEvent& event); 32 const blink::WebGestureEvent& event);
33 void CONTENT_EXPORT Coalesce(const blink::WebGestureEvent& event_to_coalesce, 33 void CONTENT_EXPORT Coalesce(const blink::WebGestureEvent& event_to_coalesce,
34 blink::WebGestureEvent* event); 34 blink::WebGestureEvent* event);
35 35
36 } // namespace internal 36 } // namespace internal
37 37
38 class ScopedWebInputEventWithLatencyInfo { 38 class ScopedWebInputEventWithLatencyInfo {
39 public: 39 public:
40 ScopedWebInputEventWithLatencyInfo(const blink::WebInputEvent&, 40 ScopedWebInputEventWithLatencyInfo(ScopedWebInputEvent,
41 const ui::LatencyInfo&); 41 const ui::LatencyInfo&);
42 42
43 ~ScopedWebInputEventWithLatencyInfo(); 43 ~ScopedWebInputEventWithLatencyInfo();
44 44
45 bool CanCoalesceWith(const ScopedWebInputEventWithLatencyInfo& other) const 45 bool CanCoalesceWith(const ScopedWebInputEventWithLatencyInfo& other) const
46 WARN_UNUSED_RESULT; 46 WARN_UNUSED_RESULT;
47 47
48 const blink::WebInputEvent& event() const; 48 const blink::WebInputEvent& event() const;
49 blink::WebInputEvent& event(); 49 blink::WebInputEvent& event();
50 const ui::LatencyInfo latencyInfo() const { return latency_; } 50 const ui::LatencyInfo latencyInfo() const { return latency_; }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 typedef EventWithLatencyInfo<blink::WebMouseWheelEvent> 104 typedef EventWithLatencyInfo<blink::WebMouseWheelEvent>
105 MouseWheelEventWithLatencyInfo; 105 MouseWheelEventWithLatencyInfo;
106 typedef EventWithLatencyInfo<blink::WebMouseEvent> 106 typedef EventWithLatencyInfo<blink::WebMouseEvent>
107 MouseEventWithLatencyInfo; 107 MouseEventWithLatencyInfo;
108 typedef EventWithLatencyInfo<blink::WebTouchEvent> 108 typedef EventWithLatencyInfo<blink::WebTouchEvent>
109 TouchEventWithLatencyInfo; 109 TouchEventWithLatencyInfo;
110 110
111 } // namespace content 111 } // namespace content
112 112
113 #endif // CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_ 113 #endif // CONTENT_COMMON_INPUT_EVENT_WITH_LATENCY_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/input/event_with_latency_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698