OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
7 #include "base/shared_memory.h" | 7 #include "base/memory/shared_memory.h" |
8 #include "base/timer/timer.h" | 8 #include "base/timer/timer.h" |
9 #include "content/browser/browser_thread_impl.h" | 9 #include "content/browser/browser_thread_impl.h" |
10 #include "content/browser/renderer_host/backing_store.h" | 10 #include "content/browser/renderer_host/backing_store.h" |
11 #include "content/browser/renderer_host/gesture_event_filter.h" | 11 #include "content/browser/renderer_host/gesture_event_filter.h" |
12 #include "content/browser/renderer_host/overscroll_controller.h" | 12 #include "content/browser/renderer_host/overscroll_controller.h" |
13 #include "content/browser/renderer_host/overscroll_controller_delegate.h" | 13 #include "content/browser/renderer_host/overscroll_controller_delegate.h" |
14 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 14 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
15 #include "content/browser/renderer_host/tap_suppression_controller.h" | 15 #include "content/browser/renderer_host/tap_suppression_controller.h" |
16 #include "content/browser/renderer_host/tap_suppression_controller_client.h" | 16 #include "content/browser/renderer_host/tap_suppression_controller_client.h" |
17 #include "content/browser/renderer_host/test_render_view_host.h" | 17 #include "content/browser/renderer_host/test_render_view_host.h" |
(...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4236 EXPECT_EQ(OVERSCROLL_NONE, host_->overscroll_delegate()->completed_mode()); | 4236 EXPECT_EQ(OVERSCROLL_NONE, host_->overscroll_delegate()->completed_mode()); |
4237 | 4237 |
4238 SimulateGestureEvent(WebInputEvent::GestureScrollEnd, | 4238 SimulateGestureEvent(WebInputEvent::GestureScrollEnd, |
4239 WebGestureEvent::Touchscreen); | 4239 WebGestureEvent::Touchscreen); |
4240 EXPECT_EQ(OVERSCROLL_NONE, host_->overscroll_delegate()->current_mode()); | 4240 EXPECT_EQ(OVERSCROLL_NONE, host_->overscroll_delegate()->current_mode()); |
4241 EXPECT_EQ(OVERSCROLL_EAST, host_->overscroll_delegate()->completed_mode()); | 4241 EXPECT_EQ(OVERSCROLL_EAST, host_->overscroll_delegate()->completed_mode()); |
4242 process_->sink().ClearMessages(); | 4242 process_->sink().ClearMessages(); |
4243 } | 4243 } |
4244 | 4244 |
4245 } // namespace content | 4245 } // namespace content |
OLD | NEW |