Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Side by Side Diff: content/test/layouttest_support.cc

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn libs defs Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "components/test_runner/test_common.h" 14 #include "components/test_runner/test_common.h"
15 #include "components/test_runner/web_frame_test_proxy.h" 15 #include "components/test_runner/web_frame_test_proxy.h"
16 #include "components/test_runner/web_test_proxy.h" 16 #include "components/test_runner/web_test_proxy.h"
17 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h" 17 #include "content/browser/bluetooth/bluetooth_dispatcher_host.h"
18 #include "content/browser/renderer_host/render_process_host_impl.h" 18 #include "content/browser/renderer_host/render_process_host_impl.h"
19 #include "content/browser/renderer_host/render_widget_host_impl.h" 19 #include "content/browser/renderer_host/render_widget_host_impl.h"
20 #include "content/child/geofencing/web_geofencing_provider_impl.h" 20 #include "content/child/geofencing/web_geofencing_provider_impl.h"
21 #include "content/common/gpu/image_transport_surface.h"
22 #include "content/common/site_isolation_policy.h" 21 #include "content/common/site_isolation_policy.h"
23 #include "content/public/common/page_state.h" 22 #include "content/public/common/page_state.h"
24 #include "content/public/renderer/renderer_gamepad_provider.h" 23 #include "content/public/renderer/renderer_gamepad_provider.h"
25 #include "content/renderer/fetchers/manifest_fetcher.h" 24 #include "content/renderer/fetchers/manifest_fetcher.h"
26 #include "content/renderer/history_entry.h" 25 #include "content/renderer/history_entry.h"
27 #include "content/renderer/history_serialization.h" 26 #include "content/renderer/history_serialization.h"
28 #include "content/renderer/render_frame_impl.h" 27 #include "content/renderer/render_frame_impl.h"
29 #include "content/renderer/render_thread_impl.h" 28 #include "content/renderer/render_thread_impl.h"
30 #include "content/renderer/render_view_impl.h" 29 #include "content/renderer/render_view_impl.h"
31 #include "content/renderer/renderer_blink_platform_impl.h" 30 #include "content/renderer/renderer_blink_platform_impl.h"
32 #include "content/shell/common/shell_switches.h" 31 #include "content/shell/common/shell_switches.h"
33 #include "device/bluetooth/bluetooth_adapter.h" 32 #include "device/bluetooth/bluetooth_adapter.h"
33 #include "gpu/ipc/service/image_transport_surface.h"
34 #include "third_party/WebKit/public/platform/WebGamepads.h" 34 #include "third_party/WebKit/public/platform/WebGamepads.h"
35 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h" 35 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eMotionData.h"
36 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h" 36 #include "third_party/WebKit/public/platform/modules/device_orientation/WebDevic eOrientationData.h"
37 #include "third_party/WebKit/public/web/WebHistoryItem.h" 37 #include "third_party/WebKit/public/web/WebHistoryItem.h"
38 #include "third_party/WebKit/public/web/WebView.h" 38 #include "third_party/WebKit/public/web/WebView.h"
39 39
40 #if defined(OS_MACOSX) 40 #if defined(OS_MACOSX)
41 #include "content/browser/frame_host/popup_menu_helper_mac.h" 41 #include "content/browser/frame_host/popup_menu_helper_mac.h"
42 #elif defined(OS_WIN) 42 #elif defined(OS_WIN)
43 #include "content/child/font_warmup_win.h" 43 #include "content/child/font_warmup_win.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 if (ShouldUseDirectWriteFontProxyFieldTrial()) 167 if (ShouldUseDirectWriteFontProxyFieldTrial())
168 RegisterSideloadedTypefaces(SkFontMgr_New_DirectWrite()); 168 RegisterSideloadedTypefaces(SkFontMgr_New_DirectWrite());
169 else 169 else
170 RegisterSideloadedTypefaces(GetPreSandboxWarmupFontMgr()); 170 RegisterSideloadedTypefaces(GetPreSandboxWarmupFontMgr());
171 } 171 }
172 #endif 172 #endif
173 } 173 }
174 174
175 void EnableBrowserLayoutTestMode() { 175 void EnableBrowserLayoutTestMode() {
176 #if defined(OS_MACOSX) 176 #if defined(OS_MACOSX)
177 ImageTransportSurface::SetAllowOSMesaForTesting(true); 177 gpu::ImageTransportSurface::SetAllowOSMesaForTesting(true);
178 PopupMenuHelper::DontShowPopupMenuForTesting(); 178 PopupMenuHelper::DontShowPopupMenuForTesting();
179 #endif 179 #endif
180 RenderWidgetHostImpl::DisableResizeAckCheckForTesting(); 180 RenderWidgetHostImpl::DisableResizeAckCheckForTesting();
181 } 181 }
182 182
183 int GetLocalSessionHistoryLength(RenderView* render_view) { 183 int GetLocalSessionHistoryLength(RenderView* render_view) {
184 return static_cast<RenderViewImpl*>(render_view)-> 184 return static_cast<RenderViewImpl*>(render_view)->
185 GetLocalSessionHistoryLengthForTesting(); 185 GetLocalSessionHistoryLengthForTesting();
186 } 186 }
187 187
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 result.append( 445 result.append(
446 DumpHistoryItem(entry->root_history_node(), 446 DumpHistoryItem(entry->root_history_node(),
447 8, 447 8,
448 index == current_index)); 448 index == current_index));
449 } 449 }
450 result.append("===============================================\n"); 450 result.append("===============================================\n");
451 return result; 451 return result;
452 } 452 }
453 453
454 } // namespace content 454 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698