Index: content/public/test/layouttest_support.h |
diff --git a/content/public/test/layouttest_support.h b/content/public/test/layouttest_support.h |
index 4d0e444f0fb887df24cd81a2dfe604cbc4f796fb..ed490ec5a12363a4d89b66521013791e92af7eb1 100644 |
--- a/content/public/test/layouttest_support.h |
+++ b/content/public/test/layouttest_support.h |
@@ -20,6 +20,15 @@ namespace content { |
class RenderView; |
+// Turn the browser process into layout test mode. |
+void EnableBrowserLayoutTestMode(); |
+ |
+/////////////////////////////////////////////////////////////////////////////// |
+// The following methods are meant to be used from a renderer. |
+ |
+// Turn a renderer into layout test mode. |
+void EnableRendererLayoutTestMode(); |
+ |
// Enable injecting of a WebTestProxy between WebViews and RenderViews. |
// |callback| is invoked with a pointer to WebTestProxyBase for each created |
// WebTestProxy. |
@@ -30,20 +39,9 @@ void EnableWebTestProxyCreation(const base::Callback< |
// WebKitPlatformSupport::sampleGamepads(). |
void SetMockGamepads(const WebKit::WebGamepads& pads); |
-// Disable logging to the console from the appcache system. |
-void DisableAppCacheLogging(); |
- |
-// Enable testing support in the devtools client. |
-void EnableDevToolsFrontendTesting(); |
- |
// Returns the length of the local session history of a render view. |
int GetLocalSessionHistoryLength(RenderView* render_view); |
-void SetAllowOSMesaImageTransportForTesting(); |
- |
-// Suppress sending focus events from the renderer to the browser. |
-void DoNotSendFocusEvents(); |
- |
// Sync the current session history to the browser process. |
void SyncNavigationState(RenderView* render_view); |
@@ -52,26 +50,13 @@ void SyncNavigationState(RenderView* render_view); |
// process. |
void SetFocusAndActivate(RenderView* render_view, bool enable); |
-// When WebKit requests a size change, immediately report the new sizes back to |
-// WebKit instead of waiting for the browser to acknowledge the new size. |
-void EnableShortCircuitSizeUpdates(); |
- |
// Changes the window rect of the given render view. |
void ForceResizeRenderView(RenderView* render_view, |
const WebKit::WebSize& new_size); |
-// Never display error pages when a navigation fails. |
-void DisableNavigationErrorPages(); |
- |
// Set the device scale factor and force the compositor to resize. |
void SetDeviceScaleFactor(RenderView* render_view, float factor); |
-// Disable system calls related to drag & drop. |
-void DisableSystemDragDrop(); |
- |
-// Don't show modal popup menus. |
-void DisableModalPopupMenus(); |
- |
// Control auto resize mode. |
void EnableAutoResizeMode(RenderView* render_view, |
const WebKit::WebSize& min_size, |