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/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "cc/output/copy_output_request.h" | 16 #include "cc/output/copy_output_request.h" |
17 #include "cc/test/pixel_test_output_surface.h" | 17 #include "cc/test/pixel_test_output_surface.h" |
18 #include "cc/test/test_compositor_frame_sink.h" | 18 #include "cc/test/test_compositor_frame_sink.h" |
19 #include "components/test_runner/test_common.h" | |
20 #include "components/test_runner/web_frame_test_proxy.h" | |
21 #include "components/test_runner/web_view_test_proxy.h" | |
22 #include "components/test_runner/web_widget_test_proxy.h" | |
23 #include "content/browser/bluetooth/bluetooth_device_chooser_controller.h" | 19 #include "content/browser/bluetooth/bluetooth_device_chooser_controller.h" |
24 #include "content/browser/renderer_host/render_process_host_impl.h" | 20 #include "content/browser/renderer_host/render_process_host_impl.h" |
25 #include "content/browser/renderer_host/render_widget_host_impl.h" | 21 #include "content/browser/renderer_host/render_widget_host_impl.h" |
26 #include "content/child/request_extra_data.h" | 22 #include "content/child/request_extra_data.h" |
27 #include "content/common/renderer.mojom.h" | 23 #include "content/common/renderer.mojom.h" |
28 #include "content/public/common/page_state.h" | 24 #include "content/public/common/page_state.h" |
29 #include "content/public/common/screen_info.h" | 25 #include "content/public/common/screen_info.h" |
30 #include "content/public/renderer/renderer_gamepad_provider.h" | 26 #include "content/public/renderer/renderer_gamepad_provider.h" |
31 #include "content/renderer/fetchers/manifest_fetcher.h" | 27 #include "content/renderer/fetchers/manifest_fetcher.h" |
32 #include "content/renderer/gpu/render_widget_compositor.h" | 28 #include "content/renderer/gpu/render_widget_compositor.h" |
33 #include "content/renderer/history_entry.h" | 29 #include "content/renderer/history_entry.h" |
34 #include "content/renderer/history_serialization.h" | 30 #include "content/renderer/history_serialization.h" |
35 #include "content/renderer/input/render_widget_input_handler_delegate.h" | 31 #include "content/renderer/input/render_widget_input_handler_delegate.h" |
36 #include "content/renderer/layout_test_dependencies.h" | 32 #include "content/renderer/layout_test_dependencies.h" |
37 #include "content/renderer/render_frame_impl.h" | 33 #include "content/renderer/render_frame_impl.h" |
38 #include "content/renderer/render_thread_impl.h" | 34 #include "content/renderer/render_thread_impl.h" |
39 #include "content/renderer/render_view_impl.h" | 35 #include "content/renderer/render_view_impl.h" |
40 #include "content/renderer/render_widget.h" | 36 #include "content/renderer/render_widget.h" |
41 #include "content/renderer/renderer_blink_platform_impl.h" | 37 #include "content/renderer/renderer_blink_platform_impl.h" |
42 #include "content/shell/common/shell_switches.h" | 38 #include "content/shell/common/shell_switches.h" |
| 39 #include "content/shell/test_runner/test_common.h" |
| 40 #include "content/shell/test_runner/web_frame_test_proxy.h" |
| 41 #include "content/shell/test_runner/web_view_test_proxy.h" |
| 42 #include "content/shell/test_runner/web_widget_test_proxy.h" |
43 #include "gpu/ipc/service/image_transport_surface.h" | 43 #include "gpu/ipc/service/image_transport_surface.h" |
44 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" | 44 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" |
45 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 45 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
46 #include "third_party/WebKit/public/platform/WebGamepads.h" | 46 #include "third_party/WebKit/public/platform/WebGamepads.h" |
47 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 47 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
48 #include "third_party/WebKit/public/platform/WebRect.h" | 48 #include "third_party/WebKit/public/platform/WebRect.h" |
49 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" | 49 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eMotionData.h" |
50 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" | 50 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic
eOrientationData.h" |
51 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" | 51 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" |
52 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 52 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 } | 604 } |
605 } | 605 } |
606 | 606 |
607 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { | 607 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { |
608 RequestExtraData* extra_data = static_cast<RequestExtraData*>( | 608 RequestExtraData* extra_data = static_cast<RequestExtraData*>( |
609 request.getExtraData()); | 609 request.getExtraData()); |
610 return extra_data && extra_data->navigation_initiated_by_renderer(); | 610 return extra_data && extra_data->navigation_initiated_by_renderer(); |
611 } | 611 } |
612 | 612 |
613 } // namespace content | 613 } // namespace content |
OLD | NEW |