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 15 matching lines...) Expand all Loading... |
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/ContextMenuProvider.h" | 34 #include "core/page/ContextMenuProvider.h" |
35 #include "core/page/EventWithHitTestResults.h" | 35 #include "core/page/EventWithHitTestResults.h" |
| 36 #include "platform/animation/CompositorAnimationTimeline.h" |
36 #include "platform/geometry/IntPoint.h" | 37 #include "platform/geometry/IntPoint.h" |
37 #include "platform/geometry/IntRect.h" | 38 #include "platform/geometry/IntRect.h" |
38 #include "platform/graphics/GraphicsLayer.h" | 39 #include "platform/graphics/GraphicsLayer.h" |
39 #include "platform/graphics/compositing/PaintArtifactCompositor.h" | 40 #include "platform/graphics/compositing/PaintArtifactCompositor.h" |
40 #include "platform/heap/Handle.h" | 41 #include "platform/heap/Handle.h" |
41 #include "public/platform/WebCompositorAnimationTimeline.h" | |
42 #include "public/platform/WebDisplayMode.h" | 42 #include "public/platform/WebDisplayMode.h" |
43 #include "public/platform/WebFloatSize.h" | 43 #include "public/platform/WebFloatSize.h" |
44 #include "public/platform/WebGestureCurveTarget.h" | 44 #include "public/platform/WebGestureCurveTarget.h" |
45 #include "public/platform/WebInputEventResult.h" | 45 #include "public/platform/WebInputEventResult.h" |
46 #include "public/platform/WebLayer.h" | 46 #include "public/platform/WebLayer.h" |
47 #include "public/platform/WebPoint.h" | 47 #include "public/platform/WebPoint.h" |
48 #include "public/platform/WebRect.h" | 48 #include "public/platform/WebRect.h" |
49 #include "public/platform/WebSize.h" | 49 #include "public/platform/WebSize.h" |
50 #include "public/platform/WebString.h" | 50 #include "public/platform/WebString.h" |
51 #include "public/platform/WebVector.h" | 51 #include "public/platform/WebVector.h" |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 { | 434 { |
435 return m_currentInputEvent; | 435 return m_currentInputEvent; |
436 } | 436 } |
437 | 437 |
438 GraphicsLayer* rootGraphicsLayer(); | 438 GraphicsLayer* rootGraphicsLayer(); |
439 void setRootGraphicsLayer(GraphicsLayer*); | 439 void setRootGraphicsLayer(GraphicsLayer*); |
440 GraphicsLayerFactory* graphicsLayerFactory() const; | 440 GraphicsLayerFactory* graphicsLayerFactory() const; |
441 PaintLayerCompositor* compositor() const; | 441 PaintLayerCompositor* compositor() const; |
442 void registerForAnimations(WebLayer*); | 442 void registerForAnimations(WebLayer*); |
443 void scheduleAnimation(); | 443 void scheduleAnimation(); |
444 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); | 444 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
445 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); | 445 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*); |
446 WebCompositorAnimationTimeline* linkHighlightsTimeline() const { return m_li
nkHighlightsTimeline.get(); } | 446 CompositorAnimationTimeline* linkHighlightsTimeline() const { return m_linkH
ighlightsTimeline.get(); } |
447 | 447 |
448 void setVisibilityState(WebPageVisibilityState, bool) override; | 448 void setVisibilityState(WebPageVisibilityState, bool) override; |
449 | 449 |
450 bool hasOpenedPopup() const { return m_pagePopup; } | 450 bool hasOpenedPopup() const { return m_pagePopup; } |
451 | 451 |
452 // Returns true if the event leads to scrolling. | 452 // Returns true if the event leads to scrolling. |
453 static bool mapKeyCodeForScroll( | 453 static bool mapKeyCodeForScroll( |
454 int keyCode, | 454 int keyCode, |
455 ScrollDirectionPhysical*, | 455 ScrollDirectionPhysical*, |
456 ScrollGranularity*); | 456 ScrollGranularity*); |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 bool m_matchesHeuristicsForGpuRasterization; | 741 bool m_matchesHeuristicsForGpuRasterization; |
742 static const WebInputEvent* m_currentInputEvent; | 742 static const WebInputEvent* m_currentInputEvent; |
743 | 743 |
744 MediaKeysClientImpl m_mediaKeysClientImpl; | 744 MediaKeysClientImpl m_mediaKeysClientImpl; |
745 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 745 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
746 WebPoint m_positionOnFlingStart; | 746 WebPoint m_positionOnFlingStart; |
747 WebPoint m_globalPositionOnFlingStart; | 747 WebPoint m_globalPositionOnFlingStart; |
748 int m_flingModifier; | 748 int m_flingModifier; |
749 WebGestureDevice m_flingSourceDevice; | 749 WebGestureDevice m_flingSourceDevice; |
750 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; | 750 Vector<OwnPtr<LinkHighlightImpl>> m_linkHighlights; |
751 OwnPtr<WebCompositorAnimationTimeline> m_linkHighlightsTimeline; | 751 OwnPtr<CompositorAnimationTimeline> m_linkHighlightsTimeline; |
752 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; | 752 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; |
753 | 753 |
754 bool m_showFPSCounter; | 754 bool m_showFPSCounter; |
755 WebColor m_baseBackgroundColor; | 755 WebColor m_baseBackgroundColor; |
756 WebColor m_backgroundColorOverride; | 756 WebColor m_backgroundColorOverride; |
757 float m_zoomFactorOverride; | 757 float m_zoomFactorOverride; |
758 | 758 |
759 bool m_userGestureObserved; | 759 bool m_userGestureObserved; |
760 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; | 760 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; |
761 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; | 761 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; |
(...skipping 13 matching lines...) Expand all Loading... |
775 }; | 775 }; |
776 | 776 |
777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 777 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
778 // We have no ways to check if the specified WebView is an instance of | 778 // We have no ways to check if the specified WebView is an instance of |
779 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 779 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 780 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
781 | 781 |
782 } // namespace blink | 782 } // namespace blink |
783 | 783 |
784 #endif | 784 #endif |
OLD | NEW |