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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Returns |true| if the caller should immediately forward touch events to the | 58 // Returns |true| if the caller should immediately forward touch events to the |
59 // router. When |false|, the caller can forego sending touch events, and | 59 // router. When |false|, the caller can forego sending touch events, and |
60 // instead consume them directly. | 60 // instead consume them directly. |
61 virtual bool ShouldForwardTouchEvent() const = 0; | 61 virtual bool ShouldForwardTouchEvent() const = 0; |
62 | 62 |
63 // Returns |true| if the caller should immediately forward the provided | 63 // Returns |true| if the caller should immediately forward the provided |
64 // |gesture_event| to the router. | 64 // |gesture_event| to the router. |
65 virtual bool ShouldForwardGestureEvent( | 65 virtual bool ShouldForwardGestureEvent( |
66 const GestureEventWithLatencyInfo& gesture_event) const = 0; | 66 const GestureEventWithLatencyInfo& gesture_event) const = 0; |
67 | |
68 // Returns |true| if the router has any queued or in-flight gesture events. | |
69 virtual bool HasQueuedGestureEvents() const = 0; | |
70 }; | 67 }; |
71 | 68 |
72 } // namespace content | 69 } // namespace content |
73 | 70 |
74 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ | 71 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ |
OLD | NEW |