| 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 "WebPagePopupImpl.h" | 32 #include "WebPagePopupImpl.h" |
| 33 | 33 |
| 34 #include "PageWidgetDelegate.h" | |
| 35 #include "WebCursorInfo.h" | 34 #include "WebCursorInfo.h" |
| 36 #include "WebInputEventConversion.h" | 35 #include "WebInputEventConversion.h" |
| 37 #include "WebPagePopup.h" | |
| 38 #include "WebSettingsImpl.h" | 36 #include "WebSettingsImpl.h" |
| 39 #include "WebViewClient.h" | 37 #include "WebViewClient.h" |
| 40 #include "WebViewImpl.h" | 38 #include "WebViewImpl.h" |
| 41 #include "WebWidgetClient.h" | 39 #include "WebWidgetClient.h" |
| 42 #include "core/dom/ContextFeatures.h" | 40 #include "core/dom/ContextFeatures.h" |
| 43 #include "core/loader/DocumentLoader.h" | 41 #include "core/loader/DocumentLoader.h" |
| 44 #include "core/loader/EmptyClients.h" | 42 #include "core/loader/EmptyClients.h" |
| 45 #include "core/page/Chrome.h" | 43 #include "core/page/Chrome.h" |
| 46 #include "core/page/DOMWindowPagePopup.h" | 44 #include "core/page/DOMWindowPagePopup.h" |
| 47 #include "core/page/EventHandler.h" | 45 #include "core/page/EventHandler.h" |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 // A WebPagePopupImpl instance usually has two references. | 340 // A WebPagePopupImpl instance usually has two references. |
| 343 // - One owned by the instance itself. It represents the visible widget. | 341 // - One owned by the instance itself. It represents the visible widget. |
| 344 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 342 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
| 345 // WebPagePopupImpl to close. | 343 // WebPagePopupImpl to close. |
| 346 // We need them because the closing operation is asynchronous and the widget | 344 // We need them because the closing operation is asynchronous and the widget |
| 347 // can be closed while the WebViewImpl is unaware of it. | 345 // can be closed while the WebViewImpl is unaware of it. |
| 348 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 346 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
| 349 } | 347 } |
| 350 | 348 |
| 351 } // namespace blink | 349 } // namespace blink |
| OLD | NEW |