| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 14 matching lines...) Expand all Loading... |
| 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 #ifndef WebViewImpl_h | 31 #ifndef WebViewImpl_h |
| 32 #define WebViewImpl_h | 32 #define WebViewImpl_h |
| 33 | 33 |
| 34 #include "core/page/EventWithHitTestResults.h" | 34 #include "core/page/EventWithHitTestResults.h" |
| 35 #include "core/page/PagePopupDriver.h" | |
| 36 #include "platform/geometry/IntPoint.h" | 35 #include "platform/geometry/IntPoint.h" |
| 37 #include "platform/geometry/IntRect.h" | 36 #include "platform/geometry/IntRect.h" |
| 38 #include "platform/graphics/GraphicsLayer.h" | 37 #include "platform/graphics/GraphicsLayer.h" |
| 39 #include "platform/heap/Handle.h" | 38 #include "platform/heap/Handle.h" |
| 40 #include "public/platform/WebGestureCurveTarget.h" | 39 #include "public/platform/WebGestureCurveTarget.h" |
| 41 #include "public/platform/WebLayer.h" | 40 #include "public/platform/WebLayer.h" |
| 42 #include "public/platform/WebPoint.h" | 41 #include "public/platform/WebPoint.h" |
| 43 #include "public/platform/WebRect.h" | 42 #include "public/platform/WebRect.h" |
| 44 #include "public/platform/WebSize.h" | 43 #include "public/platform/WebSize.h" |
| 45 #include "public/platform/WebString.h" | 44 #include "public/platform/WebString.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 class WebImage; | 76 class WebImage; |
| 78 class WebPagePopupImpl; | 77 class WebPagePopupImpl; |
| 79 class WebPlugin; | 78 class WebPlugin; |
| 80 class WebSettingsImpl; | 79 class WebSettingsImpl; |
| 81 | 80 |
| 82 struct WebSelectionBound; | 81 struct WebSelectionBound; |
| 83 | 82 |
| 84 class WebViewImpl final : public WebView | 83 class WebViewImpl final : public WebView |
| 85 , public RefCounted<WebViewImpl> | 84 , public RefCounted<WebViewImpl> |
| 86 , public WebGestureCurveTarget | 85 , public WebGestureCurveTarget |
| 87 , public PagePopupDriver | |
| 88 , public PageWidgetEventHandler { | 86 , public PageWidgetEventHandler { |
| 89 public: | 87 public: |
| 90 static WebViewImpl* create(WebViewClient*); | 88 static WebViewImpl* create(WebViewClient*); |
| 91 | 89 |
| 92 // WebWidget methods: | 90 // WebWidget methods: |
| 93 virtual void close() override; | 91 virtual void close() override; |
| 94 virtual WebSize size() override; | 92 virtual WebSize size() override; |
| 95 virtual void willStartLiveResize() override; | 93 virtual void willStartLiveResize() override; |
| 96 virtual void resize(const WebSize&) override; | 94 virtual void resize(const WebSize&) override; |
| 97 virtual void resizePinchViewport(const WebSize&) override; | 95 virtual void resizePinchViewport(const WebSize&) override; |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 void startDragging( | 401 void startDragging( |
| 404 LocalFrame*, | 402 LocalFrame*, |
| 405 const WebDragData& dragData, | 403 const WebDragData& dragData, |
| 406 WebDragOperationsMask mask, | 404 WebDragOperationsMask mask, |
| 407 const WebImage& dragImage, | 405 const WebImage& dragImage, |
| 408 const WebPoint& dragImageOffset); | 406 const WebPoint& dragImageOffset); |
| 409 | 407 |
| 410 // Notification that a popup was opened/closed. | 408 // Notification that a popup was opened/closed. |
| 411 void popupOpened(PopupContainer*); | 409 void popupOpened(PopupContainer*); |
| 412 void popupClosed(PopupContainer*); | 410 void popupClosed(PopupContainer*); |
| 413 // PagePopupDriver functions. | 411 PagePopup* openPagePopup(PagePopupClient*, const IntRect& originBoundsInRoot
View); |
| 414 virtual PagePopup* openPagePopup(PagePopupClient*, const IntRect& originBoun
dsInRootView) override; | 412 void closePagePopup(PagePopup*); |
| 415 virtual void closePagePopup(PagePopup*) override; | 413 LocalDOMWindow* pagePopupWindow() const; |
| 416 virtual LocalDOMWindow* pagePopupWindow() override; | |
| 417 | 414 |
| 418 // Returns the input event we're currently processing. This is used in some | 415 // Returns the input event we're currently processing. This is used in some |
| 419 // cases where the WebCore DOM event doesn't have the information we need. | 416 // cases where the WebCore DOM event doesn't have the information we need. |
| 420 static const WebInputEvent* currentInputEvent() | 417 static const WebInputEvent* currentInputEvent() |
| 421 { | 418 { |
| 422 return m_currentInputEvent; | 419 return m_currentInputEvent; |
| 423 } | 420 } |
| 424 | 421 |
| 425 GraphicsLayer* rootGraphicsLayer(); | 422 GraphicsLayer* rootGraphicsLayer(); |
| 426 void setRootGraphicsLayer(GraphicsLayer*); | 423 void setRootGraphicsLayer(GraphicsLayer*); |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 float m_topControlsLayoutHeight; | 752 float m_topControlsLayoutHeight; |
| 756 }; | 753 }; |
| 757 | 754 |
| 758 // We have no ways to check if the specified WebView is an instance of | 755 // We have no ways to check if the specified WebView is an instance of |
| 759 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 756 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 757 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 761 | 758 |
| 762 } // namespace blink | 759 } // namespace blink |
| 763 | 760 |
| 764 #endif | 761 #endif |
| OLD | NEW |