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

Side by Side Diff: content/public/test/test_renderer_host.h

Issue 2684993011: Revert of Make TestRenderWidgetHostView::Show/Hide call through to RWHI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@crash
Patch Set: Created 3 years, 10 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 #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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static bool HasTouchEventHandler(RenderViewHost* rvh); 151 static bool HasTouchEventHandler(RenderViewHost* rvh);
152 152
153 virtual ~RenderViewHostTester() {} 153 virtual ~RenderViewHostTester() {}
154 154
155 // Gives tests access to RenderViewHostImpl::CreateRenderView. 155 // Gives tests access to RenderViewHostImpl::CreateRenderView.
156 virtual bool CreateTestRenderView(const base::string16& frame_name, 156 virtual bool CreateTestRenderView(const base::string16& frame_name,
157 int opener_frame_route_id, 157 int opener_frame_route_id,
158 int proxy_routing_id, 158 int proxy_routing_id,
159 bool created_with_opener) = 0; 159 bool created_with_opener) = 0;
160 160
161 // Makes the WasHidden/WasShown calls to the RenderWidget that
162 // tell it it has been hidden or restored from having been hidden.
163 virtual void SimulateWasHidden() = 0;
164 virtual void SimulateWasShown() = 0;
165
161 // Promote ComputeWebkitPrefs to public. 166 // Promote ComputeWebkitPrefs to public.
162 virtual WebPreferences TestComputeWebkitPrefs() = 0; 167 virtual WebPreferences TestComputeWebkitPrefs() = 0;
163 }; 168 };
164 169
165 // You can instantiate only one class like this at a time. During its 170 // You can instantiate only one class like this at a time. During its
166 // lifetime, RenderViewHost and RenderFrameHost objects created may be used via 171 // lifetime, RenderViewHost and RenderFrameHost objects created may be used via
167 // RenderViewHostTester and RenderFrameHostTester respectively. 172 // RenderViewHostTester and RenderFrameHostTester respectively.
168 class RenderViewHostTestEnabler { 173 class RenderViewHostTestEnabler {
169 public: 174 public:
170 RenderViewHostTestEnabler(); 175 RenderViewHostTestEnabler();
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 #endif 286 #endif
282 std::unique_ptr<RenderViewHostTestEnabler> rvh_test_enabler_; 287 std::unique_ptr<RenderViewHostTestEnabler> rvh_test_enabler_;
283 RenderProcessHostFactory* factory_ = nullptr; 288 RenderProcessHostFactory* factory_ = nullptr;
284 289
285 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 290 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
286 }; 291 };
287 292
288 } // namespace content 293 } // namespace content
289 294
290 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 295 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_unittest.cc ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698