| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/browser/renderer_host/input/gesture_event_queue.h" | 9 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
| 10 #include "content/browser/renderer_host/input/input_router_client.h" | 10 #include "content/browser/renderer_host/input/input_router_client.h" |
| 11 #include "content/browser/renderer_host/input/input_router_impl.h" | 11 #include "content/browser/renderer_host/input/input_router_impl.h" |
| 12 #include "content/browser/renderer_host/input/mock_input_ack_handler.h" | 12 #include "content/browser/renderer_host/input/mock_input_ack_handler.h" |
| 13 #include "content/browser/renderer_host/input/mock_input_router_client.h" | 13 #include "content/browser/renderer_host/input/mock_input_router_client.h" |
| 14 #include "content/common/content_constants_internal.h" | 14 #include "content/common/content_constants_internal.h" |
| 15 #include "content/common/edit_command.h" | |
| 16 #include "content/common/input/synthetic_web_input_event_builders.h" | 15 #include "content/common/input/synthetic_web_input_event_builders.h" |
| 17 #include "content/common/input/touch_action.h" | 16 #include "content/common/input/touch_action.h" |
| 18 #include "content/common/input/web_input_event_traits.h" | 17 #include "content/common/input/web_input_event_traits.h" |
| 19 #include "content/common/input_messages.h" | 18 #include "content/common/input_messages.h" |
| 20 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
| 21 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
| 21 #include "content/public/common/edit_command.h" |
| 22 #include "content/public/test/mock_render_process_host.h" | 22 #include "content/public/test/mock_render_process_host.h" |
| 23 #include "content/public/test/test_browser_context.h" | 23 #include "content/public/test/test_browser_context.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "ui/events/keycodes/keyboard_codes.h" | 25 #include "ui/events/keycodes/keyboard_codes.h" |
| 26 | 26 |
| 27 #if defined(OS_WIN) || defined(USE_AURA) | 27 #if defined(OS_WIN) || defined(USE_AURA) |
| 28 #include "content/browser/renderer_host/ui_events_helper.h" | 28 #include "content/browser/renderer_host/ui_events_helper.h" |
| 29 #include "ui/events/event.h" | 29 #include "ui/events/event.h" |
| 30 #endif | 30 #endif |
| 31 | 31 |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 // dispatched, because the first tap occured when the touch-action was none. | 1291 // dispatched, because the first tap occured when the touch-action was none. |
| 1292 SimulateGestureEvent(WebInputEvent::GestureDoubleTap, | 1292 SimulateGestureEvent(WebInputEvent::GestureDoubleTap, |
| 1293 WebGestureEvent::Touchscreen); | 1293 WebGestureEvent::Touchscreen); |
| 1294 // This test will become invalid if GestureDoubleTap stops requiring an ack. | 1294 // This test will become invalid if GestureDoubleTap stops requiring an ack. |
| 1295 DCHECK(!WebInputEventTraits::IgnoresAckDisposition( | 1295 DCHECK(!WebInputEventTraits::IgnoresAckDisposition( |
| 1296 WebInputEvent::GestureDoubleTap)); | 1296 WebInputEvent::GestureDoubleTap)); |
| 1297 EXPECT_EQ(0, client_->in_flight_event_count()); | 1297 EXPECT_EQ(0, client_->in_flight_event_count()); |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 } // namespace content | 1300 } // namespace content |
| OLD | NEW |