| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "WebHelperPluginImpl.h" | 32 #include "WebHelperPluginImpl.h" |
| 33 | 33 |
| 34 #include "HTMLPlugInElement.h" | |
| 35 #include "PageWidgetDelegate.h" | 34 #include "PageWidgetDelegate.h" |
| 36 #include "WebDocument.h" | 35 #include "WebDocument.h" |
| 37 #include "WebFrameImpl.h" | 36 #include "WebFrameImpl.h" |
| 38 #include "WebPlugin.h" | 37 #include "WebPlugin.h" |
| 39 #include "WebPluginContainerImpl.h" | 38 #include "WebPluginContainerImpl.h" |
| 40 #include "WebViewClient.h" | 39 #include "WebViewClient.h" |
| 41 #include "WebViewImpl.h" | 40 #include "WebViewImpl.h" |
| 42 #include "WebWidgetClient.h" | 41 #include "WebWidgetClient.h" |
| 43 #include "core/dom/NodeList.h" | 42 #include "core/dom/NodeList.h" |
| 43 #include "core/html/HTMLPlugInElement.h" |
| 44 #include "core/loader/DocumentLoader.h" | 44 #include "core/loader/DocumentLoader.h" |
| 45 #include "core/loader/EmptyClients.h" | 45 #include "core/loader/EmptyClients.h" |
| 46 #include "core/page/FocusController.h" | 46 #include "core/page/FocusController.h" |
| 47 #include "core/page/FrameView.h" | 47 #include "core/page/FrameView.h" |
| 48 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
| 49 #include "core/page/Settings.h" | 49 #include "core/page/Settings.h" |
| 50 | 50 |
| 51 using namespace WebCore; | 51 using namespace WebCore; |
| 52 | 52 |
| 53 namespace WebKit { | 53 namespace WebKit { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // A WebHelperPluginImpl instance usually has two references. | 246 // A WebHelperPluginImpl instance usually has two references. |
| 247 // - One owned by the instance itself. It represents the visible widget. | 247 // - One owned by the instance itself. It represents the visible widget. |
| 248 // - One owned by the hosting element. It's released when the hosting | 248 // - One owned by the hosting element. It's released when the hosting |
| 249 // element asks the WebHelperPluginImpl to close. | 249 // element asks the WebHelperPluginImpl to close. |
| 250 // We need them because the closing operation is asynchronous and the widget | 250 // We need them because the closing operation is asynchronous and the widget |
| 251 // can be closed while the hosting element is unaware of it. | 251 // can be closed while the hosting element is unaware of it. |
| 252 return adoptRef(new WebHelperPluginImpl(client)).leakRef(); | 252 return adoptRef(new WebHelperPluginImpl(client)).leakRef(); |
| 253 } | 253 } |
| 254 | 254 |
| 255 } // namespace WebKit | 255 } // namespace WebKit |
| OLD | NEW |