| 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 27 matching lines...) Expand all Loading... |
| 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" | 43 #include "device/sensors/public/cpp/motion_data.h" |
| 44 #include "device/sensors/public/cpp/orientation_data.h" | 44 #include "device/sensors/public/cpp/orientation_data.h" |
| 45 #include "gpu/ipc/service/image_transport_surface.h" | 45 #include "gpu/ipc/service/image_transport_surface.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/WebGamepads.h" | |
| 49 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 48 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 50 #include "third_party/WebKit/public/platform/WebRect.h" | 49 #include "third_party/WebKit/public/platform/WebRect.h" |
| 51 #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" |
| 52 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 51 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
| 53 #include "third_party/WebKit/public/web/WebView.h" | 52 #include "third_party/WebKit/public/web/WebView.h" |
| 54 #include "ui/events/blink/blink_event_util.h" | 53 #include "ui/events/blink/blink_event_util.h" |
| 55 #include "ui/gfx/geometry/vector2d.h" | 54 #include "ui/gfx/geometry/vector2d.h" |
| 56 #include "ui/gfx/icc_profile.h" | 55 #include "ui/gfx/icc_profile.h" |
| 57 #include "ui/gfx/test/icc_profiles.h" | 56 #include "ui/gfx/test/icc_profiles.h" |
| 58 | 57 |
| 59 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
| 60 #include "content/browser/frame_host/popup_menu_helper_mac.h" | 59 #include "content/browser/frame_host/popup_menu_helper_mac.h" |
| 61 #elif defined(OS_WIN) | 60 #elif defined(OS_WIN) |
| 62 #include "content/child/font_warmup_win.h" | 61 #include "content/child/font_warmup_win.h" |
| 63 #include "third_party/WebKit/public/web/win/WebFontRendering.h" | 62 #include "third_party/WebKit/public/web/win/WebFontRendering.h" |
| 64 #include "third_party/skia/include/core/SkRefCnt.h" | 63 #include "third_party/skia/include/core/SkRefCnt.h" |
| 65 #include "third_party/skia/include/ports/SkFontMgr.h" | 64 #include "third_party/skia/include/ports/SkFontMgr.h" |
| 66 #include "third_party/skia/include/ports/SkTypeface_win.h" | 65 #include "third_party/skia/include/ports/SkTypeface_win.h" |
| 67 #include "ui/gfx/win/direct_write.h" | 66 #include "ui/gfx/win/direct_write.h" |
| 68 #endif | 67 #endif |
| 69 | 68 |
| 70 using device::MotionData; | 69 using device::MotionData; |
| 71 using device::OrientationData; | 70 using device::OrientationData; |
| 72 using blink::WebGamepad; | |
| 73 using blink::WebGamepads; | |
| 74 using blink::WebRect; | 71 using blink::WebRect; |
| 75 using blink::WebSize; | 72 using blink::WebSize; |
| 76 | 73 |
| 77 namespace content { | 74 namespace content { |
| 78 | 75 |
| 79 namespace { | 76 namespace { |
| 80 | 77 |
| 81 base::LazyInstance<ViewProxyCreationCallback>::Leaky | 78 base::LazyInstance<ViewProxyCreationCallback>::Leaky |
| 82 g_view_test_proxy_callback = LAZY_INSTANCE_INITIALIZER; | 79 g_view_test_proxy_callback = LAZY_INSTANCE_INITIALIZER; |
| 83 | 80 |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 } | 601 } |
| 605 } | 602 } |
| 606 | 603 |
| 607 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { | 604 bool IsNavigationInitiatedByRenderer(const blink::WebURLRequest& request) { |
| 608 RequestExtraData* extra_data = | 605 RequestExtraData* extra_data = |
| 609 static_cast<RequestExtraData*>(request.GetExtraData()); | 606 static_cast<RequestExtraData*>(request.GetExtraData()); |
| 610 return extra_data && extra_data->navigation_initiated_by_renderer(); | 607 return extra_data && extra_data->navigation_initiated_by_renderer(); |
| 611 } | 608 } |
| 612 | 609 |
| 613 } // namespace content | 610 } // namespace content |
| OLD | NEW |