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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 634313002: Add mouse input forwarding to gpu service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GpuProcessHostUIShim -> GpuProcessHost Created 6 years, 2 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
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_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Returns true if |input_event| was consumed by the client. 120 // Returns true if |input_event| was consumed by the client.
121 bool OfferToClient(const blink::WebInputEvent& input_event, 121 bool OfferToClient(const blink::WebInputEvent& input_event,
122 const ui::LatencyInfo& latency_info); 122 const ui::LatencyInfo& latency_info);
123 123
124 // Returns true if |input_event| was successfully sent to the renderer 124 // Returns true if |input_event| was successfully sent to the renderer
125 // as an async IPC Message. 125 // as an async IPC Message.
126 bool OfferToRenderer(const blink::WebInputEvent& input_event, 126 bool OfferToRenderer(const blink::WebInputEvent& input_event,
127 const ui::LatencyInfo& latency_info, 127 const ui::LatencyInfo& latency_info,
128 bool is_keyboard_shortcut); 128 bool is_keyboard_shortcut);
129 129
130 void OfferToGpuService(const blink::WebInputEvent& input_event,
131 bool is_keyboard_shortcut);
132
130 // A data structure that attaches some metadata to a WebMouseWheelEvent 133 // A data structure that attaches some metadata to a WebMouseWheelEvent
131 // and its latency info. 134 // and its latency info.
132 struct QueuedWheelEvent { 135 struct QueuedWheelEvent {
133 QueuedWheelEvent(); 136 QueuedWheelEvent();
134 QueuedWheelEvent(const MouseWheelEventWithLatencyInfo& event, 137 QueuedWheelEvent(const MouseWheelEventWithLatencyInfo& event,
135 bool synthesized_from_pinch); 138 bool synthesized_from_pinch);
136 ~QueuedWheelEvent(); 139 ~QueuedWheelEvent();
137 140
138 MouseWheelEventWithLatencyInfo event; 141 MouseWheelEventWithLatencyInfo event;
139 bool synthesized_from_pinch; 142 bool synthesized_from_pinch;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 TouchActionFilter touch_action_filter_; 278 TouchActionFilter touch_action_filter_;
276 InputEventStreamValidator input_stream_validator_; 279 InputEventStreamValidator input_stream_validator_;
277 InputEventStreamValidator output_stream_validator_; 280 InputEventStreamValidator output_stream_validator_;
278 281
279 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); 282 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
280 }; 283 };
281 284
282 } // namespace content 285 } // namespace content
283 286
284 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ 287 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698