| 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 "content/browser/renderer_host/render_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #include "ui/aura/window_event_dispatcher.h" | 52 #include "ui/aura/window_event_dispatcher.h" |
| 53 #include "ui/aura/window_observer.h" | 53 #include "ui/aura/window_observer.h" |
| 54 #include "ui/base/ui_base_types.h" | 54 #include "ui/base/ui_base_types.h" |
| 55 #include "ui/compositor/compositor.h" | 55 #include "ui/compositor/compositor.h" |
| 56 #include "ui/compositor/layer_tree_owner.h" | 56 #include "ui/compositor/layer_tree_owner.h" |
| 57 #include "ui/compositor/test/draw_waiter_for_test.h" | 57 #include "ui/compositor/test/draw_waiter_for_test.h" |
| 58 #include "ui/events/blink/blink_event_util.h" | 58 #include "ui/events/blink/blink_event_util.h" |
| 59 #include "ui/events/event.h" | 59 #include "ui/events/event.h" |
| 60 #include "ui/events/event_utils.h" | 60 #include "ui/events/event_utils.h" |
| 61 #include "ui/events/gesture_detection/gesture_configuration.h" | 61 #include "ui/events/gesture_detection/gesture_configuration.h" |
| 62 #include "ui/events/keycodes/dom3/dom_code.h" | 62 #include "ui/events/keycodes/dom/dom_code.h" |
| 63 #include "ui/events/keycodes/dom4/keycode_converter.h" | 63 #include "ui/events/keycodes/dom/keycode_converter.h" |
| 64 #include "ui/events/test/event_generator.h" | 64 #include "ui/events/test/event_generator.h" |
| 65 #include "ui/wm/core/default_activation_client.h" | 65 #include "ui/wm/core/default_activation_client.h" |
| 66 #include "ui/wm/core/default_screen_position_client.h" | 66 #include "ui/wm/core/default_screen_position_client.h" |
| 67 #include "ui/wm/core/window_util.h" | 67 #include "ui/wm/core/window_util.h" |
| 68 | 68 |
| 69 using testing::_; | 69 using testing::_; |
| 70 | 70 |
| 71 using blink::WebGestureEvent; | 71 using blink::WebGestureEvent; |
| 72 using blink::WebInputEvent; | 72 using blink::WebInputEvent; |
| 73 using blink::WebMouseEvent; | 73 using blink::WebMouseEvent; |
| (...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3363 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 3363 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 3364 EXPECT_EQ(OVERSCROLL_NONE, overscroll_mode()); | 3364 EXPECT_EQ(OVERSCROLL_NONE, overscroll_mode()); |
| 3365 EXPECT_EQ(15.f, overscroll_delta_x()); | 3365 EXPECT_EQ(15.f, overscroll_delta_x()); |
| 3366 EXPECT_EQ(-5.f, overscroll_delta_y()); | 3366 EXPECT_EQ(-5.f, overscroll_delta_y()); |
| 3367 SimulateGestureFlingStartEvent(0.f, 0.1f, blink::WebGestureDeviceTouchpad); | 3367 SimulateGestureFlingStartEvent(0.f, 0.1f, blink::WebGestureDeviceTouchpad); |
| 3368 EXPECT_EQ(0.f, overscroll_delta_x()); | 3368 EXPECT_EQ(0.f, overscroll_delta_x()); |
| 3369 EXPECT_EQ(0.f, overscroll_delta_y()); | 3369 EXPECT_EQ(0.f, overscroll_delta_y()); |
| 3370 } | 3370 } |
| 3371 | 3371 |
| 3372 } // namespace content | 3372 } // namespace content |
| OLD | NEW |