OLD | NEW |
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 Loading... |
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 // Returns true if |input_event| was successfully sent to the gpu service |
| 131 // as an async IPC Message |
| 132 bool OfferToGpuService(const blink::WebInputEvent& input_event, |
| 133 bool is_keyboard_shortcut); |
| 134 |
130 // A data structure that attaches some metadata to a WebMouseWheelEvent | 135 // A data structure that attaches some metadata to a WebMouseWheelEvent |
131 // and its latency info. | 136 // and its latency info. |
132 struct QueuedWheelEvent { | 137 struct QueuedWheelEvent { |
133 QueuedWheelEvent(); | 138 QueuedWheelEvent(); |
134 QueuedWheelEvent(const MouseWheelEventWithLatencyInfo& event, | 139 QueuedWheelEvent(const MouseWheelEventWithLatencyInfo& event, |
135 bool synthesized_from_pinch); | 140 bool synthesized_from_pinch); |
136 ~QueuedWheelEvent(); | 141 ~QueuedWheelEvent(); |
137 | 142 |
138 MouseWheelEventWithLatencyInfo event; | 143 MouseWheelEventWithLatencyInfo event; |
139 bool synthesized_from_pinch; | 144 bool synthesized_from_pinch; |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 TouchActionFilter touch_action_filter_; | 280 TouchActionFilter touch_action_filter_; |
276 InputEventStreamValidator input_stream_validator_; | 281 InputEventStreamValidator input_stream_validator_; |
277 InputEventStreamValidator output_stream_validator_; | 282 InputEventStreamValidator output_stream_validator_; |
278 | 283 |
279 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 284 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
280 }; | 285 }; |
281 | 286 |
282 } // namespace content | 287 } // namespace content |
283 | 288 |
284 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 289 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
OLD | NEW |