| 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 "WebCursorInfo.h" | |
| 35 #include "WebInputEventConversion.h" | 34 #include "WebInputEventConversion.h" |
| 36 #include "WebSettingsImpl.h" | 35 #include "WebSettingsImpl.h" |
| 37 #include "WebViewClient.h" | 36 #include "WebViewClient.h" |
| 38 #include "WebViewImpl.h" | 37 #include "WebViewImpl.h" |
| 39 #include "WebWidgetClient.h" | 38 #include "WebWidgetClient.h" |
| 40 #include "core/dom/ContextFeatures.h" | 39 #include "core/dom/ContextFeatures.h" |
| 41 #include "core/loader/DocumentLoader.h" | 40 #include "core/loader/DocumentLoader.h" |
| 42 #include "core/loader/EmptyClients.h" | 41 #include "core/loader/EmptyClients.h" |
| 43 #include "core/page/Chrome.h" | 42 #include "core/page/Chrome.h" |
| 44 #include "core/page/DOMWindowPagePopup.h" | 43 #include "core/page/DOMWindowPagePopup.h" |
| 45 #include "core/page/EventHandler.h" | 44 #include "core/page/EventHandler.h" |
| 46 #include "core/page/FocusController.h" | 45 #include "core/page/FocusController.h" |
| 47 #include "core/frame/Frame.h" | 46 #include "core/frame/Frame.h" |
| 48 #include "core/frame/FrameView.h" | 47 #include "core/frame/FrameView.h" |
| 49 #include "core/page/Page.h" | 48 #include "core/page/Page.h" |
| 50 #include "core/page/PagePopupClient.h" | 49 #include "core/page/PagePopupClient.h" |
| 51 #include "core/page/Settings.h" | 50 #include "core/page/Settings.h" |
| 51 #include "public/platform/WebCursorInfo.h" |
| 52 | 52 |
| 53 using namespace WebCore; | 53 using namespace WebCore; |
| 54 using namespace std; | 54 using namespace std; |
| 55 | 55 |
| 56 namespace blink { | 56 namespace blink { |
| 57 | 57 |
| 58 class PagePopupChromeClient : public EmptyChromeClient { | 58 class PagePopupChromeClient : public EmptyChromeClient { |
| 59 WTF_MAKE_NONCOPYABLE(PagePopupChromeClient); | 59 WTF_MAKE_NONCOPYABLE(PagePopupChromeClient); |
| 60 WTF_MAKE_FAST_ALLOCATED; | 60 WTF_MAKE_FAST_ALLOCATED; |
| 61 | 61 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 // A WebPagePopupImpl instance usually has two references. | 340 // A WebPagePopupImpl instance usually has two references. |
| 341 // - One owned by the instance itself. It represents the visible widget. | 341 // - One owned by the instance itself. It represents the visible widget. |
| 342 // - 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 |
| 343 // WebPagePopupImpl to close. | 343 // WebPagePopupImpl to close. |
| 344 // 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 |
| 345 // can be closed while the WebViewImpl is unaware of it. | 345 // can be closed while the WebViewImpl is unaware of it. |
| 346 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 346 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
| 347 } | 347 } |
| 348 | 348 |
| 349 } // namespace blink | 349 } // namespace blink |
| OLD | NEW |