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

Side by Side Diff: Source/WebCore/loader/FrameLoader.cpp

Issue 13934004: Plumb an event through to content/ that is sent just before 'onload'. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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 | « Source/WebCore/loader/FrameLoader.h ('k') | Source/WebCore/loader/FrameLoaderClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 4 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com>
6 * Copyright (C) Research In Motion Limited 2009. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009. All rights reserved.
7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com> 7 * Copyright (C) 2011 Kris Jordan <krisjordan@gmail.com>
8 * Copyright (C) 2011 Google Inc. All rights reserved. 8 * Copyright (C) 2011 Google Inc. All rights reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2356 return count; 2356 return count;
2357 } 2357 }
2358 2358
2359 String FrameLoader::userAgent(const KURL& url) const 2359 String FrameLoader::userAgent(const KURL& url) const
2360 { 2360 {
2361 String userAgent = m_client->userAgent(url); 2361 String userAgent = m_client->userAgent(url);
2362 InspectorInstrumentation::applyUserAgentOverride(m_frame, &userAgent); 2362 InspectorInstrumentation::applyUserAgentOverride(m_frame, &userAgent);
2363 return userAgent; 2363 return userAgent;
2364 } 2364 }
2365 2365
2366 void FrameLoader::willHandleOnloadEvents()
2367 {
2368 m_client->dispatchWillHandleOnloadEvents();
2369 }
2370
2366 void FrameLoader::handledOnloadEvents() 2371 void FrameLoader::handledOnloadEvents()
2367 { 2372 {
2368 m_client->dispatchDidHandleOnloadEvents(); 2373 m_client->dispatchDidHandleOnloadEvents();
2369 2374
2370 if (documentLoader()) 2375 if (documentLoader())
2371 documentLoader()->handledOnloadEvents(); 2376 documentLoader()->handledOnloadEvents();
2372 } 2377 }
2373 2378
2374 void FrameLoader::frameDetached() 2379 void FrameLoader::frameDetached()
2375 { 2380 {
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3415 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect); 3420 FloatRect newWindowRect = DOMWindow::adjustWindowRect(page, windowRect);
3416 3421
3417 page->chrome()->setWindowRect(newWindowRect); 3422 page->chrome()->setWindowRect(newWindowRect);
3418 page->chrome()->show(); 3423 page->chrome()->show();
3419 3424
3420 created = true; 3425 created = true;
3421 return frame; 3426 return frame;
3422 } 3427 }
3423 3428
3424 } // namespace WebCore 3429 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/loader/FrameLoader.h ('k') | Source/WebCore/loader/FrameLoaderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698