| 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 #include "content/browser/renderer_host/input/mock_input_ack_handler.h" | 5 #include "content/browser/renderer_host/input/mock_input_ack_handler.h" |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/input/input_router.h" | 7 #include "content/browser/renderer_host/input/input_router.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 using base::TimeDelta; | 10 using base::TimeDelta; |
| 11 using WebKit::WebGestureEvent; | 11 using blink::WebGestureEvent; |
| 12 using WebKit::WebInputEvent; | 12 using blink::WebInputEvent; |
| 13 using WebKit::WebMouseEvent; | 13 using blink::WebMouseEvent; |
| 14 using WebKit::WebMouseWheelEvent; | 14 using blink::WebMouseWheelEvent; |
| 15 using WebKit::WebTouchEvent; | 15 using blink::WebTouchEvent; |
| 16 using WebKit::WebTouchPoint; | 16 using blink::WebTouchPoint; |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 MockInputAckHandler::MockInputAckHandler() | 20 MockInputAckHandler::MockInputAckHandler() |
| 21 : input_router_(NULL), | 21 : input_router_(NULL), |
| 22 ack_count_(0), | 22 ack_count_(0), |
| 23 unexpected_event_ack_called_(false), | 23 unexpected_event_ack_called_(false), |
| 24 ack_state_(INPUT_EVENT_ACK_STATE_UNKNOWN) {} | 24 ack_state_(INPUT_EVENT_ACK_STATE_UNKNOWN) {} |
| 25 | 25 |
| 26 MockInputAckHandler::~MockInputAckHandler() {} | 26 MockInputAckHandler::~MockInputAckHandler() {} |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ack_count_ = 0; | 71 ack_count_ = 0; |
| 72 return ack_count; | 72 return ack_count; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void MockInputAckHandler::RecordAckCalled(InputEventAckState ack_result) { | 75 void MockInputAckHandler::RecordAckCalled(InputEventAckState ack_result) { |
| 76 ++ack_count_; | 76 ++ack_count_; |
| 77 ack_state_ = ack_result; | 77 ack_state_ = ack_result; |
| 78 } | 78 } |
| 79 | 79 |
| 80 } // namespace content | 80 } // namespace content |
| OLD | NEW |