| 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 17 matching lines...) Expand all Loading... |
| 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/ContextMenuProvider.h" | 34 #include "core/page/ContextMenuProvider.h" |
| 35 #include "core/page/EventWithHitTestResults.h" | 35 #include "core/page/EventWithHitTestResults.h" |
| 36 #include "platform/geometry/IntPoint.h" | 36 #include "platform/geometry/IntPoint.h" |
| 37 #include "platform/geometry/IntRect.h" | 37 #include "platform/geometry/IntRect.h" |
| 38 #include "platform/graphics/CompositedDisplayList.h" |
| 38 #include "platform/graphics/GraphicsLayer.h" | 39 #include "platform/graphics/GraphicsLayer.h" |
| 39 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
| 41 #include "public/platform/WebCompositedDisplayList.h" |
| 40 #include "public/platform/WebCompositorAnimationTimeline.h" | 42 #include "public/platform/WebCompositorAnimationTimeline.h" |
| 41 #include "public/platform/WebDisplayMode.h" | 43 #include "public/platform/WebDisplayMode.h" |
| 42 #include "public/platform/WebFloatSize.h" | 44 #include "public/platform/WebFloatSize.h" |
| 43 #include "public/platform/WebGestureCurveTarget.h" | 45 #include "public/platform/WebGestureCurveTarget.h" |
| 44 #include "public/platform/WebLayer.h" | 46 #include "public/platform/WebLayer.h" |
| 45 #include "public/platform/WebPoint.h" | 47 #include "public/platform/WebPoint.h" |
| 46 #include "public/platform/WebRect.h" | 48 #include "public/platform/WebRect.h" |
| 47 #include "public/platform/WebSize.h" | 49 #include "public/platform/WebSize.h" |
| 48 #include "public/platform/WebString.h" | 50 #include "public/platform/WebString.h" |
| 49 #include "public/platform/WebVector.h" | 51 #include "public/platform/WebVector.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 void hidePopups() override; | 266 void hidePopups() override; |
| 265 void setPageOverlayColor(WebColor) override; | 267 void setPageOverlayColor(WebColor) override; |
| 266 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; | 268 void transferActiveWheelFlingAnimation(const WebActiveWheelFlingParameters&)
override; |
| 267 bool endActiveFlingAnimation() override; | 269 bool endActiveFlingAnimation() override; |
| 268 void setShowPaintRects(bool) override; | 270 void setShowPaintRects(bool) override; |
| 269 void setShowDebugBorders(bool); | 271 void setShowDebugBorders(bool); |
| 270 void setShowFPSCounter(bool) override; | 272 void setShowFPSCounter(bool) override; |
| 271 void setShowScrollBottleneckRects(bool) override; | 273 void setShowScrollBottleneckRects(bool) override; |
| 272 void acceptLanguagesChanged() override; | 274 void acceptLanguagesChanged() override; |
| 273 | 275 |
| 276 void setCompositedDisplayList(PassOwnPtr<CompositedDisplayList>); |
| 277 WebCompositedDisplayList* compositedDisplayList() override; |
| 278 |
| 274 // WebViewImpl | 279 // WebViewImpl |
| 275 void enableViewport(); | 280 void enableViewport(); |
| 276 void disableViewport(); | 281 void disableViewport(); |
| 277 | 282 |
| 278 float defaultMinimumPageScaleFactor() const; | 283 float defaultMinimumPageScaleFactor() const; |
| 279 float defaultMaximumPageScaleFactor() const; | 284 float defaultMaximumPageScaleFactor() const; |
| 280 float minimumPageScaleFactor() const; | 285 float minimumPageScaleFactor() const; |
| 281 float maximumPageScaleFactor() const; | 286 float maximumPageScaleFactor() const; |
| 282 float clampPageScaleFactorToLimits(float) const; | 287 float clampPageScaleFactorToLimits(float) const; |
| 283 void resetScrollAndScaleStateImmediately(); | 288 void resetScrollAndScaleStateImmediately(); |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 WebLayerTreeView* m_layerTreeView; | 738 WebLayerTreeView* m_layerTreeView; |
| 734 WebLayer* m_rootLayer; | 739 WebLayer* m_rootLayer; |
| 735 GraphicsLayer* m_rootGraphicsLayer; | 740 GraphicsLayer* m_rootGraphicsLayer; |
| 736 GraphicsLayer* m_rootTransformLayer; | 741 GraphicsLayer* m_rootTransformLayer; |
| 737 OwnPtr<GraphicsLayerFactory> m_graphicsLayerFactory; | 742 OwnPtr<GraphicsLayerFactory> m_graphicsLayerFactory; |
| 738 bool m_matchesHeuristicsForGpuRasterization; | 743 bool m_matchesHeuristicsForGpuRasterization; |
| 739 // If true, the graphics context is being restored. | 744 // If true, the graphics context is being restored. |
| 740 bool m_recreatingGraphicsContext; | 745 bool m_recreatingGraphicsContext; |
| 741 static const WebInputEvent* m_currentInputEvent; | 746 static const WebInputEvent* m_currentInputEvent; |
| 742 | 747 |
| 748 WebCompositedDisplayList m_compositedDisplayList; |
| 749 |
| 743 MediaKeysClientImpl m_mediaKeysClientImpl; | 750 MediaKeysClientImpl m_mediaKeysClientImpl; |
| 744 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 751 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
| 745 WebPoint m_positionOnFlingStart; | 752 WebPoint m_positionOnFlingStart; |
| 746 WebPoint m_globalPositionOnFlingStart; | 753 WebPoint m_globalPositionOnFlingStart; |
| 747 int m_flingModifier; | 754 int m_flingModifier; |
| 748 bool m_flingSourceDevice; | 755 bool m_flingSourceDevice; |
| 749 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; | 756 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; |
| 750 OwnPtr<WebCompositorAnimationTimeline> m_linkHighlightsTimeline; | 757 OwnPtr<WebCompositorAnimationTimeline> m_linkHighlightsTimeline; |
| 751 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; | 758 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; |
| 752 | 759 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 766 }; | 773 }; |
| 767 | 774 |
| 768 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 775 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 769 // We have no ways to check if the specified WebView is an instance of | 776 // We have no ways to check if the specified WebView is an instance of |
| 770 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 777 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 771 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 772 | 779 |
| 773 } // namespace blink | 780 } // namespace blink |
| 774 | 781 |
| 775 #endif | 782 #endif |
| OLD | NEW |