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

Side by Side Diff: content/test/test_web_contents.cc

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through surface ID *and* widget surface ID for window.open Created 5 years, 3 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 #include "content/test/test_web_contents.h" 5 #include "content/test/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "content/browser/browser_url_handler_impl.h" 10 #include "content/browser/browser_url_handler_impl.h"
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 int error_code, 295 int error_code,
296 const base::string16& error_description, 296 const base::string16& error_description,
297 bool was_ignored_by_handler) { 297 bool was_ignored_by_handler) {
298 FrameHostMsg_DidFailLoadWithError msg( 298 FrameHostMsg_DidFailLoadWithError msg(
299 0, url, error_code, error_description, was_ignored_by_handler); 299 0, url, error_code, error_description, was_ignored_by_handler);
300 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); 300 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg);
301 } 301 }
302 302
303 void TestWebContents::CreateNewWindow( 303 void TestWebContents::CreateNewWindow(
304 SiteInstance* source_site_instance, 304 SiteInstance* source_site_instance,
305 int route_id, 305 int32 route_id,
306 int main_frame_route_id, 306 int32 main_frame_route_id,
307 int32 main_frame_widget_route_id,
308 int32 surface_id,
307 const ViewHostMsg_CreateWindow_Params& params, 309 const ViewHostMsg_CreateWindow_Params& params,
308 SessionStorageNamespace* session_storage_namespace) { 310 SessionStorageNamespace* session_storage_namespace) {}
309 }
310 311
311 void TestWebContents::CreateNewWidget(int32 render_process_id, 312 void TestWebContents::CreateNewWidget(int32 render_process_id,
312 int32 route_id, 313 int32 route_id,
313 int32 surface_id, 314 int32 surface_id,
314 blink::WebPopupType popup_type) {} 315 blink::WebPopupType popup_type) {}
315 316
316 void TestWebContents::CreateNewFullscreenWidget(int32 render_process_id, 317 void TestWebContents::CreateNewFullscreenWidget(int32 render_process_id,
317 int32 route_id, 318 int32 route_id,
318 int32 surface_id) {} 319 int32 surface_id) {}
319 320
(...skipping 10 matching lines...) Expand all
330 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 331 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
331 } 332 }
332 333
333 void TestWebContents::SaveFrameWithHeaders(const GURL& url, 334 void TestWebContents::SaveFrameWithHeaders(const GURL& url,
334 const Referrer& referrer, 335 const Referrer& referrer,
335 const std::string& headers) { 336 const std::string& headers) {
336 save_frame_headers_ = headers; 337 save_frame_headers_ = headers;
337 } 338 }
338 339
339 } // namespace content 340 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698