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_IMMEDIATE_INPUT_ROUTER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void OnMsgMoveCaretAck(); | 123 void OnMsgMoveCaretAck(); |
124 void OnSelectRangeAck(); | 124 void OnSelectRangeAck(); |
125 void OnHasTouchEventHandlers(bool has_handlers); | 125 void OnHasTouchEventHandlers(bool has_handlers); |
126 | 126 |
127 // Indicates the source of an ack provided to |ProcessInputEventAck()|. | 127 // Indicates the source of an ack provided to |ProcessInputEventAck()|. |
128 // The source is tracked by |current_ack_source_|, which aids in ack routing. | 128 // The source is tracked by |current_ack_source_|, which aids in ack routing. |
129 enum AckSource { | 129 enum AckSource { |
130 RENDERER, | 130 RENDERER, |
131 CLIENT, | 131 CLIENT, |
132 OVERSCROLL_CONTROLLER, | 132 OVERSCROLL_CONTROLLER, |
| 133 IGNORING_DISPOSITION, |
133 ACK_SOURCE_NONE | 134 ACK_SOURCE_NONE |
134 }; | 135 }; |
135 // Note: This function may result in |this| being deleted, and as such | 136 // Note: This function may result in |this| being deleted, and as such |
136 // should be the last method called in any internal chain of event handling. | 137 // should be the last method called in any internal chain of event handling. |
137 void ProcessInputEventAck(blink::WebInputEvent::Type event_type, | 138 void ProcessInputEventAck(blink::WebInputEvent::Type event_type, |
138 InputEventAckState ack_result, | 139 InputEventAckState ack_result, |
139 const ui::LatencyInfo& latency_info, | 140 const ui::LatencyInfo& latency_info, |
140 AckSource ack_source); | 141 AckSource ack_source); |
141 | 142 |
142 // Dispatches the ack'ed event to |ack_handler_|. | 143 // Dispatches the ack'ed event to |ack_handler_|. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 241 |
241 scoped_ptr<TouchEventQueue> touch_event_queue_; | 242 scoped_ptr<TouchEventQueue> touch_event_queue_; |
242 scoped_ptr<GestureEventFilter> gesture_event_filter_; | 243 scoped_ptr<GestureEventFilter> gesture_event_filter_; |
243 | 244 |
244 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); | 245 DISALLOW_COPY_AND_ASSIGN(ImmediateInputRouter); |
245 }; | 246 }; |
246 | 247 |
247 } // namespace content | 248 } // namespace content |
248 | 249 |
249 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ | 250 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_IMMEDIATE_INPUT_ROUTER_H_ |
OLD | NEW |