| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const NativeWebKeyboardEvent& key_event, | 67 const NativeWebKeyboardEvent& key_event, |
| 68 const ui::LatencyInfo& latency_info, | 68 const ui::LatencyInfo& latency_info, |
| 69 bool is_keyboard_shortcut) OVERRIDE; | 69 bool is_keyboard_shortcut) OVERRIDE; |
| 70 virtual void SendGestureEvent( | 70 virtual void SendGestureEvent( |
| 71 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE; | 71 const GestureEventWithLatencyInfo& gesture_event) OVERRIDE; |
| 72 virtual void SendTouchEvent( | 72 virtual void SendTouchEvent( |
| 73 const TouchEventWithLatencyInfo& touch_event) OVERRIDE; | 73 const TouchEventWithLatencyInfo& touch_event) OVERRIDE; |
| 74 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const OVERRIDE; | 74 virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const OVERRIDE; |
| 75 virtual bool ShouldForwardTouchEvent() const OVERRIDE; | 75 virtual bool ShouldForwardTouchEvent() const OVERRIDE; |
| 76 virtual void OnViewUpdated(int view_flags) OVERRIDE; | 76 virtual void OnViewUpdated(int view_flags) OVERRIDE; |
| 77 virtual bool HasPendingEvents() const OVERRIDE; |
| 77 | 78 |
| 78 // IPC::Listener | 79 // IPC::Listener |
| 79 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 80 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 80 | 81 |
| 81 private: | 82 private: |
| 82 friend class InputRouterImplTest; | 83 friend class InputRouterImplTest; |
| 83 | 84 |
| 84 // TouchpadTapSuppressionControllerClient | 85 // TouchpadTapSuppressionControllerClient |
| 85 virtual void SendMouseEventImmediately( | 86 virtual void SendMouseEventImmediately( |
| 86 const MouseEventWithLatencyInfo& mouse_event) OVERRIDE; | 87 const MouseEventWithLatencyInfo& mouse_event) OVERRIDE; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 // touch ack timeout feature of the |touch_event_queue_| as appropriate. Input | 199 // touch ack timeout feature of the |touch_event_queue_| as appropriate. Input |
| 199 // to that determination includes current view properties and the allowed | 200 // to that determination includes current view properties and the allowed |
| 200 // touch action. Note that this will only affect platforms that have a | 201 // touch action. Note that this will only affect platforms that have a |
| 201 // non-zero touch timeout configuration. | 202 // non-zero touch timeout configuration. |
| 202 void UpdateTouchAckTimeoutEnabled(); | 203 void UpdateTouchAckTimeoutEnabled(); |
| 203 | 204 |
| 204 // If a flush has been requested, signals a completed flush to the client if | 205 // If a flush has been requested, signals a completed flush to the client if |
| 205 // all events have been dispatched (i.e., |HasPendingEvents()| is false). | 206 // all events have been dispatched (i.e., |HasPendingEvents()| is false). |
| 206 void SignalFlushedIfNecessary(); | 207 void SignalFlushedIfNecessary(); |
| 207 | 208 |
| 208 bool HasPendingEvents() const; | |
| 209 | |
| 210 bool IsInOverscrollGesture() const; | 209 bool IsInOverscrollGesture() const; |
| 211 | 210 |
| 212 int routing_id() const { return routing_id_; } | 211 int routing_id() const { return routing_id_; } |
| 213 | 212 |
| 214 | 213 |
| 215 IPC::Sender* sender_; | 214 IPC::Sender* sender_; |
| 216 InputRouterClient* client_; | 215 InputRouterClient* client_; |
| 217 InputAckHandler* ack_handler_; | 216 InputAckHandler* ack_handler_; |
| 218 int routing_id_; | 217 int routing_id_; |
| 219 | 218 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 TouchActionFilter touch_action_filter_; | 276 TouchActionFilter touch_action_filter_; |
| 278 InputEventStreamValidator input_stream_validator_; | 277 InputEventStreamValidator input_stream_validator_; |
| 279 InputEventStreamValidator output_stream_validator_; | 278 InputEventStreamValidator output_stream_validator_; |
| 280 | 279 |
| 281 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 280 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 282 }; | 281 }; |
| 283 | 282 |
| 284 } // namespace content | 283 } // namespace content |
| 285 | 284 |
| 286 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 285 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |