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

Side by Side Diff: Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp

Issue 10905105: Merge 125500 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 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 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 if (!element->renderer()) 1484 if (!element->renderer())
1485 return 0; 1485 return 0;
1486 1486
1487 return container; 1487 return container;
1488 } 1488 }
1489 1489
1490 // This method gets called when a plugin is put in place of html content 1490 // This method gets called when a plugin is put in place of html content
1491 // (e.g., acrobat reader). 1491 // (e.g., acrobat reader).
1492 void FrameLoaderClientImpl::redirectDataToPlugin(Widget* pluginWidget) 1492 void FrameLoaderClientImpl::redirectDataToPlugin(Widget* pluginWidget)
1493 { 1493 {
1494 if (pluginWidget->isPluginContainer()) 1494 ASSERT(!pluginWidget || pluginWidget->isPluginContainer());
1495 m_pluginWidget = static_cast<WebPluginContainerImpl*>(pluginWidget); 1495 m_pluginWidget = static_cast<WebPluginContainerImpl*>(pluginWidget);
1496 ASSERT(m_pluginWidget);
1497 } 1496 }
1498 1497
1499 PassRefPtr<Widget> FrameLoaderClientImpl::createJavaAppletWidget( 1498 PassRefPtr<Widget> FrameLoaderClientImpl::createJavaAppletWidget(
1500 const IntSize& size, 1499 const IntSize& size,
1501 HTMLAppletElement* element, 1500 HTMLAppletElement* element,
1502 const KURL& /* baseURL */, 1501 const KURL& /* baseURL */,
1503 const Vector<String>& paramNames, 1502 const Vector<String>& paramNames,
1504 const Vector<String>& paramValues) 1503 const Vector<String>& paramValues)
1505 { 1504 {
1506 return createPlugin(size, element, KURL(), paramNames, paramValues, 1505 return createPlugin(size, element, KURL(), paramNames, paramValues,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1630 m_webFrame->client()->dispatchIntent(webFrame(), intentRequest); 1629 m_webFrame->client()->dispatchIntent(webFrame(), intentRequest);
1631 } 1630 }
1632 #endif 1631 #endif
1633 1632
1634 void FrameLoaderClientImpl::dispatchWillOpenSocketStream(SocketStreamHandle* han dle) 1633 void FrameLoaderClientImpl::dispatchWillOpenSocketStream(SocketStreamHandle* han dle)
1635 { 1634 {
1636 m_webFrame->client()->willOpenSocketStream(SocketStreamHandleInternal::toWeb SocketStreamHandle(handle)); 1635 m_webFrame->client()->willOpenSocketStream(SocketStreamHandleInternal::toWeb SocketStreamHandle(handle));
1637 } 1636 }
1638 1637
1639 } // namespace WebKit 1638 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698