| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "content/renderer/render_frame_impl.h" | 33 #include "content/renderer/render_frame_impl.h" |
| 34 #include "content/renderer/render_thread_impl.h" | 34 #include "content/renderer/render_thread_impl.h" |
| 35 #include "content/renderer/render_view_impl.h" | 35 #include "content/renderer/render_view_impl.h" |
| 36 #include "content/renderer/render_widget.h" | 36 #include "content/renderer/render_widget.h" |
| 37 #include "content/renderer/renderer_blink_platform_impl.h" | 37 #include "content/renderer/renderer_blink_platform_impl.h" |
| 38 #include "content/shell/common/shell_switches.h" | 38 #include "content/shell/common/shell_switches.h" |
| 39 #include "content/shell/test_runner/test_common.h" | 39 #include "content/shell/test_runner/test_common.h" |
| 40 #include "content/shell/test_runner/web_frame_test_proxy.h" | 40 #include "content/shell/test_runner/web_frame_test_proxy.h" |
| 41 #include "content/shell/test_runner/web_view_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" | 42 #include "content/shell/test_runner/web_widget_test_proxy.h" |
| 43 #include "device/sensors/public/cpp/motion_data.h" | |
| 44 #include "device/sensors/public/cpp/orientation_data.h" | |
| 45 #include "gpu/ipc/service/image_transport_surface.h" | 43 #include "gpu/ipc/service/image_transport_surface.h" |
| 44 #include "services/device/public/cpp/sensors/motion_data.h" |
| 45 #include "services/device/public/cpp/sensors/orientation_data.h" |
| 46 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" | 46 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" |
| 47 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 47 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 48 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 48 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 49 #include "third_party/WebKit/public/platform/WebRect.h" | 49 #include "third_party/WebKit/public/platform/WebRect.h" |
| 50 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" | 50 #include "third_party/WebKit/public/platform/scheduler/test/renderer_scheduler_t
est_support.h" |
| 51 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 51 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
| 52 #include "third_party/WebKit/public/web/WebView.h" | 52 #include "third_party/WebKit/public/web/WebView.h" |
| 53 #include "ui/events/blink/blink_event_util.h" | 53 #include "ui/events/blink/blink_event_util.h" |
| 54 #include "ui/gfx/geometry/vector2d.h" | 54 #include "ui/gfx/geometry/vector2d.h" |
| 55 #include "ui/gfx/icc_profile.h" | 55 #include "ui/gfx/icc_profile.h" |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 } | 601 } |
| 602 } | 602 } |
| 603 | 603 |
| 604 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { | 604 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { |
| 605 RequestExtraData* extra_data = | 605 RequestExtraData* extra_data = |
| 606 static_cast<RequestExtraData*>(request.GetExtraData()); | 606 static_cast<RequestExtraData*>(request.GetExtraData()); |
| 607 return extra_data && extra_data->navigation_initiated_by_renderer(); | 607 return extra_data && extra_data->navigation_initiated_by_renderer(); |
| 608 } | 608 } |
| 609 | 609 |
| 610 } // namespace content | 610 } // namespace content |
| OLD | NEW |