Chromium Code Reviews| 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 CreateTestRenderView( | 135 virtual bool CreateTestRenderView(const base::string16& frame_name, |
|
nasko
2015/07/07 16:26:21
Yuck, I've missed this in my patch to move frame n
| |
| 136 const base::string16& frame_name, | 136 int opener_frame_route_id, |
| 137 int opener_route_id, | 137 int proxy_routing_id, |
| 138 int proxy_routing_id, | 138 int32 max_page_id, |
| 139 int32 max_page_id, | 139 bool created_with_opener) = 0; |
| 140 bool created_with_opener) = 0; | |
| 141 | 140 |
| 142 // Makes the WasHidden/WasShown calls to the RenderWidget that | 141 // Makes the WasHidden/WasShown calls to the RenderWidget that |
| 143 // tell it it has been hidden or restored from having been hidden. | 142 // tell it it has been hidden or restored from having been hidden. |
| 144 virtual void SimulateWasHidden() = 0; | 143 virtual void SimulateWasHidden() = 0; |
| 145 virtual void SimulateWasShown() = 0; | 144 virtual void SimulateWasShown() = 0; |
| 146 | 145 |
| 147 // Promote ComputeWebkitPrefs to public. | 146 // Promote ComputeWebkitPrefs to public. |
| 148 virtual WebPreferences TestComputeWebkitPrefs() = 0; | 147 virtual WebPreferences TestComputeWebkitPrefs() = 0; |
| 149 }; | 148 }; |
| 150 | 149 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 262 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 261 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
| 263 #endif | 262 #endif |
| 264 RenderViewHostTestEnabler rvh_test_enabler_; | 263 RenderViewHostTestEnabler rvh_test_enabler_; |
| 265 | 264 |
| 266 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 265 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 267 }; | 266 }; |
| 268 | 267 |
| 269 } // namespace content | 268 } // namespace content |
| 270 | 269 |
| 271 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ | 270 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ |
| OLD | NEW |