| 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/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/macros.h" |
| 9 #include "content/common/input/synthetic_web_input_event_builders.h" | 10 #include "content/common/input/synthetic_web_input_event_builders.h" |
| 10 #include "content/common/input_messages.h" | 11 #include "content/common/input_messages.h" |
| 11 #include "content/public/test/mock_render_thread.h" | 12 #include "content/public/test/mock_render_thread.h" |
| 12 #include "content/test/fake_compositor_dependencies.h" | 13 #include "content/test/fake_compositor_dependencies.h" |
| 13 #include "content/test/mock_render_process.h" | 14 #include "content/test/mock_render_process.h" |
| 14 #include "ipc/ipc_test_sink.h" | 15 #include "ipc/ipc_test_sink.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 17 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 17 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 18 | 19 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 InputHostMsg_DidOverscroll::Read(message, ¶ms); | 209 InputHostMsg_DidOverscroll::Read(message, ¶ms); |
| 209 const DidOverscrollParams& overscroll = base::get<0>(params); | 210 const DidOverscrollParams& overscroll = base::get<0>(params); |
| 210 EXPECT_EQ(gfx::Vector2dF(10, 5), overscroll.latest_overscroll_delta); | 211 EXPECT_EQ(gfx::Vector2dF(10, 5), overscroll.latest_overscroll_delta); |
| 211 EXPECT_EQ(gfx::Vector2dF(5, 5), overscroll.accumulated_overscroll); | 212 EXPECT_EQ(gfx::Vector2dF(5, 5), overscroll.accumulated_overscroll); |
| 212 EXPECT_EQ(gfx::PointF(1, 1), overscroll.causal_event_viewport_point); | 213 EXPECT_EQ(gfx::PointF(1, 1), overscroll.causal_event_viewport_point); |
| 213 EXPECT_EQ(gfx::Vector2dF(-10, -5), overscroll.current_fling_velocity); | 214 EXPECT_EQ(gfx::Vector2dF(-10, -5), overscroll.current_fling_velocity); |
| 214 widget()->sink()->ClearMessages(); | 215 widget()->sink()->ClearMessages(); |
| 215 } | 216 } |
| 216 | 217 |
| 217 } // namespace content | 218 } // namespace content |
| OLD | NEW |