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

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

Issue 1202593002: Move browser-to-renderer opener plumbing to frame routing IDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@opener-create-opener-render-views
Patch Set: Remove suppress_opener Created 5 years, 5 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
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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,
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
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_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698