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_MOCK_INPUT_ACK_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/renderer_host/input/input_ack_handler.h" | 9 #include "content/browser/renderer_host/input/input_ack_handler.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 } | 43 } |
44 | 44 |
45 bool unexpected_event_ack_called() const { | 45 bool unexpected_event_ack_called() const { |
46 return unexpected_event_ack_called_; | 46 return unexpected_event_ack_called_; |
47 } | 47 } |
48 InputEventAckState ack_state() const { return ack_state_; } | 48 InputEventAckState ack_state() const { return ack_state_; } |
49 | 49 |
50 const NativeWebKeyboardEvent& acked_keyboard_event() const { | 50 const NativeWebKeyboardEvent& acked_keyboard_event() const { |
51 return acked_key_event_; | 51 return acked_key_event_; |
52 } | 52 } |
53 const WebKit::WebMouseWheelEvent& acked_wheel_event() const { | 53 const blink::WebMouseWheelEvent& acked_wheel_event() const { |
54 return acked_wheel_event_; | 54 return acked_wheel_event_; |
55 } | 55 } |
56 const TouchEventWithLatencyInfo& acked_touch_event() const { | 56 const TouchEventWithLatencyInfo& acked_touch_event() const { |
57 return acked_touch_event_; | 57 return acked_touch_event_; |
58 } | 58 } |
59 const WebKit::WebGestureEvent& acked_gesture_event() const { | 59 const blink::WebGestureEvent& acked_gesture_event() const { |
60 return acked_gesture_event_; | 60 return acked_gesture_event_; |
61 } | 61 } |
62 | 62 |
63 private: | 63 private: |
64 void RecordAckCalled(InputEventAckState ack_result); | 64 void RecordAckCalled(InputEventAckState ack_result); |
65 | 65 |
66 InputRouter* input_router_; | 66 InputRouter* input_router_; |
67 | 67 |
68 size_t ack_count_; | 68 size_t ack_count_; |
69 bool unexpected_event_ack_called_; | 69 bool unexpected_event_ack_called_; |
70 InputEventAckState ack_state_; | 70 InputEventAckState ack_state_; |
71 NativeWebKeyboardEvent acked_key_event_; | 71 NativeWebKeyboardEvent acked_key_event_; |
72 WebKit::WebMouseWheelEvent acked_wheel_event_; | 72 blink::WebMouseWheelEvent acked_wheel_event_; |
73 TouchEventWithLatencyInfo acked_touch_event_; | 73 TouchEventWithLatencyInfo acked_touch_event_; |
74 WebKit::WebGestureEvent acked_gesture_event_; | 74 blink::WebGestureEvent acked_gesture_event_; |
75 | 75 |
76 scoped_ptr<GestureEventWithLatencyInfo> gesture_followup_event_; | 76 scoped_ptr<GestureEventWithLatencyInfo> gesture_followup_event_; |
77 scoped_ptr<TouchEventWithLatencyInfo> touch_followup_event_; | 77 scoped_ptr<TouchEventWithLatencyInfo> touch_followup_event_; |
78 }; | 78 }; |
79 | 79 |
80 } // namespace content | 80 } // namespace content |
81 | 81 |
82 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ | 82 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_MOCK_INPUT_ACK_HANDLER_H_ |
OLD | NEW |