OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/renderer/gpu/input_handler_proxy.h" | 5 #include "content/renderer/gpu/input_handler_proxy.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/renderer/gpu/input_handler_proxy_client.h" | 9 #include "content/renderer/gpu/input_handler_proxy_client.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" | 12 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatSize.h" | 13 #include "third_party/WebKit/public/platform/WebFloatSize.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGestureCurve.h" | 14 #include "third_party/WebKit/public/platform/WebGestureCurve.h" |
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" | 15 #include "third_party/WebKit/public/platform/WebPoint.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
17 | 17 |
18 using WebKit::WebActiveWheelFlingParameters; | 18 using WebKit::WebActiveWheelFlingParameters; |
19 using WebKit::WebFloatPoint; | 19 using WebKit::WebFloatPoint; |
20 using WebKit::WebFloatSize; | 20 using WebKit::WebFloatSize; |
21 using WebKit::WebGestureEvent; | 21 using WebKit::WebGestureEvent; |
22 using WebKit::WebInputEvent; | 22 using WebKit::WebInputEvent; |
23 using WebKit::WebMouseWheelEvent; | 23 using WebKit::WebMouseWheelEvent; |
24 using WebKit::WebPoint; | 24 using WebKit::WebPoint; |
25 using WebKit::WebSize; | 25 using WebKit::WebSize; |
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 gesture_.timeStampSeconds = 1234; | 990 gesture_.timeStampSeconds = 1234; |
991 base::TimeTicks time = | 991 base::TimeTicks time = |
992 base::TimeTicks() + | 992 base::TimeTicks() + |
993 base::TimeDelta::FromSeconds(gesture_.timeStampSeconds); | 993 base::TimeDelta::FromSeconds(gesture_.timeStampSeconds); |
994 gesture_.modifiers |= WebInputEvent::IsLastInputEventForCurrentVSync; | 994 gesture_.modifiers |= WebInputEvent::IsLastInputEventForCurrentVSync; |
995 EXPECT_CALL(mock_input_handler_, DidReceiveLastInputEventForBeginFrame(time)); | 995 EXPECT_CALL(mock_input_handler_, DidReceiveLastInputEventForBeginFrame(time)); |
996 input_handler_->HandleInputEvent(gesture_); | 996 input_handler_->HandleInputEvent(gesture_); |
997 } | 997 } |
998 | 998 |
999 } // namespace | 999 } // namespace |
OLD | NEW |