| 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/bind.h" | 6 #include "base/bind.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
| 9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
| 10 #include "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "content/public/browser/notification_types.h" | 28 #include "content/public/browser/notification_types.h" |
| 29 #include "content/public/test/mock_render_process_host.h" | 29 #include "content/public/test/mock_render_process_host.h" |
| 30 #include "content/public/test/test_browser_context.h" | 30 #include "content/public/test/test_browser_context.h" |
| 31 #include "content/test/test_render_view_host.h" | 31 #include "content/test/test_render_view_host.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 33 #include "ui/events/keycodes/keyboard_codes.h" | 33 #include "ui/events/keycodes/keyboard_codes.h" |
| 34 #include "ui/gfx/canvas.h" | 34 #include "ui/gfx/canvas.h" |
| 35 #include "ui/gfx/screen.h" | 35 #include "ui/gfx/screen.h" |
| 36 | 36 |
| 37 #if defined(USE_AURA) | 37 #if defined(USE_AURA) |
| 38 #include "content/browser/aura/image_transport_factory.h" | 38 #include "content/browser/compositor/image_transport_factory.h" |
| 39 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 39 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 40 #include "ui/aura/env.h" | 40 #include "ui/aura/env.h" |
| 41 #include "ui/aura/test/test_screen.h" | 41 #include "ui/aura/test/test_screen.h" |
| 42 #include "ui/compositor/test/test_context_factory.h" | 42 #include "ui/compositor/test/test_context_factory.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 #if defined(OS_WIN) || defined(USE_AURA) | 45 #if defined(OS_WIN) || defined(USE_AURA) |
| 46 #include "content/browser/renderer_host/ui_events_helper.h" | 46 #include "content/browser/renderer_host/ui_events_helper.h" |
| 47 #include "ui/events/event.h" | 47 #include "ui/events/event.h" |
| 48 #endif | 48 #endif |
| (...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2503 | 2503 |
| 2504 TEST_F(RenderWidgetHostTest, InputRouterReceivesHasTouchEventHandlers) { | 2504 TEST_F(RenderWidgetHostTest, InputRouterReceivesHasTouchEventHandlers) { |
| 2505 host_->SetupForInputRouterTest(); | 2505 host_->SetupForInputRouterTest(); |
| 2506 | 2506 |
| 2507 host_->OnMessageReceived(ViewHostMsg_HasTouchEventHandlers(0, true)); | 2507 host_->OnMessageReceived(ViewHostMsg_HasTouchEventHandlers(0, true)); |
| 2508 | 2508 |
| 2509 EXPECT_TRUE(host_->mock_input_router()->message_received_); | 2509 EXPECT_TRUE(host_->mock_input_router()->message_received_); |
| 2510 } | 2510 } |
| 2511 | 2511 |
| 2512 } // namespace content | 2512 } // namespace content |
| OLD | NEW |