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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/test/simple_test_tick_clock.h" | 17 #include "base/test/simple_test_tick_clock.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "cc/output/begin_frame_args.h" | 19 #include "cc/output/begin_frame_args.h" |
20 #include "cc/output/compositor_frame.h" | 20 #include "cc/output/compositor_frame.h" |
21 #include "cc/output/compositor_frame_metadata.h" | 21 #include "cc/output/compositor_frame_metadata.h" |
22 #include "cc/output/copy_output_request.h" | 22 #include "cc/output/copy_output_request.h" |
23 #include "cc/surfaces/surface.h" | 23 #include "cc/surfaces/surface.h" |
24 #include "cc/surfaces/surface_manager.h" | 24 #include "cc/surfaces/surface_manager.h" |
25 #include "content/browser/browser_thread_impl.h" | 25 #include "content/browser/browser_thread_impl.h" |
| 26 #include "content/browser/compositor/gl_helper.h" |
26 #include "content/browser/compositor/resize_lock.h" | 27 #include "content/browser/compositor/resize_lock.h" |
27 #include "content/browser/compositor/test/no_transport_image_transport_factory.h
" | 28 #include "content/browser/compositor/test/no_transport_image_transport_factory.h
" |
28 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 29 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
29 #include "content/browser/gpu/compositor_util.h" | 30 #include "content/browser/gpu/compositor_util.h" |
30 #include "content/browser/renderer_host/input/input_router.h" | 31 #include "content/browser/renderer_host/input/input_router.h" |
31 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" | 32 #include "content/browser/renderer_host/input/mouse_wheel_event_queue.h" |
32 #include "content/browser/renderer_host/input/web_input_event_util.h" | 33 #include "content/browser/renderer_host/input/web_input_event_util.h" |
33 #include "content/browser/renderer_host/overscroll_controller.h" | 34 #include "content/browser/renderer_host/overscroll_controller.h" |
34 #include "content/browser/renderer_host/overscroll_controller_delegate.h" | 35 #include "content/browser/renderer_host/overscroll_controller_delegate.h" |
35 #include "content/browser/renderer_host/render_view_host_factory.h" | 36 #include "content/browser/renderer_host/render_view_host_factory.h" |
36 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 37 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
37 #include "content/browser/renderer_host/render_widget_host_impl.h" | 38 #include "content/browser/renderer_host/render_widget_host_impl.h" |
38 #include "content/browser/web_contents/web_contents_view_aura.h" | 39 #include "content/browser/web_contents/web_contents_view_aura.h" |
39 #include "content/common/gpu/client/gl_helper.h" | |
40 #include "content/common/host_shared_bitmap_manager.h" | 40 #include "content/common/host_shared_bitmap_manager.h" |
41 #include "content/common/input/input_event_utils.h" | 41 #include "content/common/input/input_event_utils.h" |
42 #include "content/common/input/synthetic_web_input_event_builders.h" | 42 #include "content/common/input/synthetic_web_input_event_builders.h" |
43 #include "content/common/input_messages.h" | 43 #include "content/common/input_messages.h" |
44 #include "content/common/view_messages.h" | 44 #include "content/common/view_messages.h" |
45 #include "content/public/browser/render_widget_host_view.h" | 45 #include "content/public/browser/render_widget_host_view.h" |
46 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 46 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
47 #include "content/public/browser/web_contents_view_delegate.h" | 47 #include "content/public/browser/web_contents_view_delegate.h" |
48 #include "content/public/common/context_menu_params.h" | 48 #include "content/public/common/context_menu_params.h" |
49 #include "content/public/test/mock_render_process_host.h" | 49 #include "content/public/test/mock_render_process_host.h" |
(...skipping 4419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4469 view()->OnGestureEvent(&gesture_event); | 4469 view()->OnGestureEvent(&gesture_event); |
4470 | 4470 |
4471 EXPECT_TRUE(delegate->context_menu_request_received()); | 4471 EXPECT_TRUE(delegate->context_menu_request_received()); |
4472 EXPECT_EQ(delegate->context_menu_source_type(), ui::MENU_SOURCE_TOUCH); | 4472 EXPECT_EQ(delegate->context_menu_source_type(), ui::MENU_SOURCE_TOUCH); |
4473 #endif | 4473 #endif |
4474 | 4474 |
4475 RenderViewHostFactory::set_is_real_render_view_host(false); | 4475 RenderViewHostFactory::set_is_real_render_view_host(false); |
4476 } | 4476 } |
4477 | 4477 |
4478 } // namespace content | 4478 } // namespace content |
OLD | NEW |