| 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 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 Loading... |
| 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_ |
| OLD | NEW |