| 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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/port/browser/event_with_latency_info.h" | 9 #include "content/port/browser/event_with_latency_info.h" |
| 10 #include "content/port/common/input_event_ack_state.h" | 10 #include "content/port/common/input_event_ack_state.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // Returns |true| if the caller should immediately forward touch events to the | 54 // Returns |true| if the caller should immediately forward touch events to the |
| 55 // router. When |false|, the caller can forego sending touch events, and | 55 // router. When |false|, the caller can forego sending touch events, and |
| 56 // instead consume them directly. | 56 // instead consume them directly. |
| 57 virtual bool ShouldForwardTouchEvent() const = 0; | 57 virtual bool ShouldForwardTouchEvent() const = 0; |
| 58 | 58 |
| 59 // Returns |true| if the caller should immediately forward the provided | 59 // Returns |true| if the caller should immediately forward the provided |
| 60 // |gesture_event| to the router. | 60 // |gesture_event| to the router. |
| 61 virtual bool ShouldForwardGestureEvent( | 61 virtual bool ShouldForwardGestureEvent( |
| 62 const GestureEventWithLatencyInfo& gesture_event) const = 0; | 62 const GestureEventWithLatencyInfo& gesture_event) const = 0; |
| 63 | |
| 64 // Returns |true| if the router has any queued or in-flight gesture events. | |
| 65 virtual bool HasQueuedGestureEvents() const = 0; | |
| 66 }; | 63 }; |
| 67 | 64 |
| 68 } // namespace content | 65 } // namespace content |
| 69 | 66 |
| 70 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ | 67 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ |
| OLD | NEW |