| 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 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // given message. | 125 // given message. |
| 126 static bool TestOnMessageReceived(RenderViewHost* rvh, | 126 static bool TestOnMessageReceived(RenderViewHost* rvh, |
| 127 const IPC::Message& msg); | 127 const IPC::Message& msg); |
| 128 | 128 |
| 129 // Returns whether the underlying web-page has any touch-event handlers. | 129 // Returns whether the underlying web-page has any touch-event handlers. |
| 130 static bool HasTouchEventHandler(RenderViewHost* rvh); | 130 static bool HasTouchEventHandler(RenderViewHost* rvh); |
| 131 | 131 |
| 132 virtual ~RenderViewHostTester() {} | 132 virtual ~RenderViewHostTester() {} |
| 133 | 133 |
| 134 // Gives tests access to RenderViewHostImpl::CreateRenderView. | 134 // Gives tests access to RenderViewHostImpl::CreateRenderView. |
| 135 virtual bool CreateRenderView(const base::string16& frame_name, | 135 virtual bool CreateTestRenderView( |
| 136 int opener_route_id, | 136 const base::string16& frame_name, |
| 137 int proxy_routing_id, | 137 int opener_route_id, |
| 138 int32 max_page_id, | 138 int proxy_routing_id, |
| 139 bool created_with_opener) = 0; | 139 int32 max_page_id, |
| 140 bool created_with_opener) = 0; |
| 140 | 141 |
| 141 // Makes the WasHidden/WasShown calls to the RenderWidget that | 142 // Makes the WasHidden/WasShown calls to the RenderWidget that |
| 142 // tell it it has been hidden or restored from having been hidden. | 143 // tell it it has been hidden or restored from having been hidden. |
| 143 virtual void SimulateWasHidden() = 0; | 144 virtual void SimulateWasHidden() = 0; |
| 144 virtual void SimulateWasShown() = 0; | 145 virtual void SimulateWasShown() = 0; |
| 145 | 146 |
| 146 // Promote ComputeWebkitPrefs to public. | 147 // Promote ComputeWebkitPrefs to public. |
| 147 virtual WebPreferences TestComputeWebkitPrefs() = 0; | 148 virtual WebPreferences TestComputeWebkitPrefs() = 0; |
| 148 }; | 149 }; |
| 149 | 150 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 262 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
| 262 #endif | 263 #endif |
| 263 RenderViewHostTestEnabler rvh_test_enabler_; | 264 RenderViewHostTestEnabler rvh_test_enabler_; |
| 264 | 265 |
| 265 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 266 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 266 }; | 267 }; |
| 267 | 268 |
| 268 } // namespace content | 269 } // namespace content |
| 269 | 270 |
| 270 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 271 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |