| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 const MouseWheelEventWithLatencyInfo& wheel_event) override; | 61 const MouseWheelEventWithLatencyInfo& wheel_event) override; |
| 62 void SendKeyboardEvent( | 62 void SendKeyboardEvent( |
| 63 const NativeWebKeyboardEventWithLatencyInfo& key_event) override; | 63 const NativeWebKeyboardEventWithLatencyInfo& key_event) override; |
| 64 void SendGestureEvent( | 64 void SendGestureEvent( |
| 65 const GestureEventWithLatencyInfo& gesture_event) override; | 65 const GestureEventWithLatencyInfo& gesture_event) override; |
| 66 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override; | 66 void SendTouchEvent(const TouchEventWithLatencyInfo& touch_event) override; |
| 67 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override; | 67 const NativeWebKeyboardEvent* GetLastKeyboardEvent() const override; |
| 68 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override; | 68 void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override; |
| 69 void RequestNotificationWhenFlushed() override; | 69 void RequestNotificationWhenFlushed() override; |
| 70 bool HasPendingEvents() const override; | 70 bool HasPendingEvents() const override; |
| 71 void SetDeviceScaleFactor(float device_scale_factor) override; |
| 71 | 72 |
| 72 // IPC::Listener | 73 // IPC::Listener |
| 73 bool OnMessageReceived(const IPC::Message& message) override; | 74 bool OnMessageReceived(const IPC::Message& message) override; |
| 74 | 75 |
| 75 private: | 76 private: |
| 76 friend class InputRouterImplTest; | 77 friend class InputRouterImplTest; |
| 77 | 78 |
| 78 // TouchpadTapSuppressionControllerClient | 79 // TouchpadTapSuppressionControllerClient |
| 79 void SendMouseEventImmediately( | 80 void SendMouseEventImmediately( |
| 80 const MouseEventWithLatencyInfo& mouse_event) override; | 81 const MouseEventWithLatencyInfo& mouse_event) override; |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // end notification is asynchronous, we use a count rather than a boolean | 245 // end notification is asynchronous, we use a count rather than a boolean |
| 245 // to avoid races in bookkeeping when starting a new fling. | 246 // to avoid races in bookkeeping when starting a new fling. |
| 246 int active_renderer_fling_count_; | 247 int active_renderer_fling_count_; |
| 247 | 248 |
| 248 TouchEventQueue touch_event_queue_; | 249 TouchEventQueue touch_event_queue_; |
| 249 GestureEventQueue gesture_event_queue_; | 250 GestureEventQueue gesture_event_queue_; |
| 250 TouchActionFilter touch_action_filter_; | 251 TouchActionFilter touch_action_filter_; |
| 251 InputEventStreamValidator input_stream_validator_; | 252 InputEventStreamValidator input_stream_validator_; |
| 252 InputEventStreamValidator output_stream_validator_; | 253 InputEventStreamValidator output_stream_validator_; |
| 253 | 254 |
| 255 float device_scale_factor_; |
| 256 |
| 254 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); | 257 DISALLOW_COPY_AND_ASSIGN(InputRouterImpl); |
| 255 }; | 258 }; |
| 256 | 259 |
| 257 } // namespace content | 260 } // namespace content |
| 258 | 261 |
| 259 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ | 262 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_IMPL_H_ |
| OLD | NEW |