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 19 matching lines...) Expand all Loading... |
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/GraphicsLayer.h" | 38 #include "platform/graphics/GraphicsLayer.h" |
39 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 40 #include "public/platform/WebCompositorAnimationTimeline.h" |
40 #include "public/platform/WebDisplayMode.h" | 41 #include "public/platform/WebDisplayMode.h" |
41 #include "public/platform/WebFloatSize.h" | 42 #include "public/platform/WebFloatSize.h" |
42 #include "public/platform/WebGestureCurveTarget.h" | 43 #include "public/platform/WebGestureCurveTarget.h" |
43 #include "public/platform/WebLayer.h" | 44 #include "public/platform/WebLayer.h" |
44 #include "public/platform/WebPoint.h" | 45 #include "public/platform/WebPoint.h" |
45 #include "public/platform/WebRect.h" | 46 #include "public/platform/WebRect.h" |
46 #include "public/platform/WebSize.h" | 47 #include "public/platform/WebSize.h" |
47 #include "public/platform/WebString.h" | 48 #include "public/platform/WebString.h" |
48 #include "public/platform/WebVector.h" | 49 #include "public/platform/WebVector.h" |
49 #include "public/web/WebInputEvent.h" | 50 #include "public/web/WebInputEvent.h" |
(...skipping 20 matching lines...) Expand all Loading... |
70 class Frame; | 71 class Frame; |
71 class FullscreenController; | 72 class FullscreenController; |
72 class InspectorOverlay; | 73 class InspectorOverlay; |
73 class InspectorOverlayImpl; | 74 class InspectorOverlayImpl; |
74 class LinkHighlight; | 75 class LinkHighlight; |
75 class PageScaleConstraintsSet; | 76 class PageScaleConstraintsSet; |
76 class DeprecatedPaintLayerCompositor; | 77 class DeprecatedPaintLayerCompositor; |
77 class TopControls; | 78 class TopControls; |
78 class UserGestureToken; | 79 class UserGestureToken; |
79 class WebActiveGestureAnimation; | 80 class WebActiveGestureAnimation; |
80 class WebCompositorAnimationTimeline; | |
81 class WebDevToolsAgentImpl; | 81 class WebDevToolsAgentImpl; |
82 class WebElement; | 82 class WebElement; |
83 class WebLayerTreeView; | 83 class WebLayerTreeView; |
84 class WebLocalFrameImpl; | 84 class WebLocalFrameImpl; |
85 class WebImage; | 85 class WebImage; |
86 class WebPagePopupImpl; | 86 class WebPagePopupImpl; |
87 class WebPlugin; | 87 class WebPlugin; |
88 class WebSelection; | 88 class WebSelection; |
89 class WebSettingsImpl; | 89 class WebSettingsImpl; |
90 | 90 |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 434 } |
435 | 435 |
436 GraphicsLayer* rootGraphicsLayer(); | 436 GraphicsLayer* rootGraphicsLayer(); |
437 void setRootGraphicsLayer(GraphicsLayer*); | 437 void setRootGraphicsLayer(GraphicsLayer*); |
438 GraphicsLayerFactory* graphicsLayerFactory() const; | 438 GraphicsLayerFactory* graphicsLayerFactory() const; |
439 DeprecatedPaintLayerCompositor* compositor() const; | 439 DeprecatedPaintLayerCompositor* compositor() const; |
440 void registerForAnimations(WebLayer*); | 440 void registerForAnimations(WebLayer*); |
441 void scheduleAnimation(); | 441 void scheduleAnimation(); |
442 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); | 442 void attachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); |
443 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); | 443 void detachCompositorAnimationTimeline(WebCompositorAnimationTimeline*); |
| 444 WebCompositorAnimationTimeline* linkHighlightsTimeline() const { return m_li
nkHighlightsTimeline.get(); } |
444 | 445 |
445 void setVisibilityState(WebPageVisibilityState, bool) override; | 446 void setVisibilityState(WebPageVisibilityState, bool) override; |
446 | 447 |
447 bool hasOpenedPopup() const { return m_pagePopup; } | 448 bool hasOpenedPopup() const { return m_pagePopup; } |
448 | 449 |
449 // Returns true if the event leads to scrolling. | 450 // Returns true if the event leads to scrolling. |
450 static bool mapKeyCodeForScroll( | 451 static bool mapKeyCodeForScroll( |
451 int keyCode, | 452 int keyCode, |
452 ScrollDirectionPhysical*, | 453 ScrollDirectionPhysical*, |
453 ScrollGranularity*); | 454 ScrollGranularity*); |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 bool m_recreatingGraphicsContext; | 733 bool m_recreatingGraphicsContext; |
733 static const WebInputEvent* m_currentInputEvent; | 734 static const WebInputEvent* m_currentInputEvent; |
734 | 735 |
735 MediaKeysClientImpl m_mediaKeysClientImpl; | 736 MediaKeysClientImpl m_mediaKeysClientImpl; |
736 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 737 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
737 WebPoint m_positionOnFlingStart; | 738 WebPoint m_positionOnFlingStart; |
738 WebPoint m_globalPositionOnFlingStart; | 739 WebPoint m_globalPositionOnFlingStart; |
739 int m_flingModifier; | 740 int m_flingModifier; |
740 bool m_flingSourceDevice; | 741 bool m_flingSourceDevice; |
741 Vector<OwnPtr<LinkHighlight>> m_linkHighlights; | 742 Vector<OwnPtr<LinkHighlight>> m_linkHighlights; |
| 743 OwnPtr<WebCompositorAnimationTimeline> m_linkHighlightsTimeline; |
742 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; | 744 OwnPtrWillBePersistent<FullscreenController> m_fullscreenController; |
743 | 745 |
744 bool m_showFPSCounter; | 746 bool m_showFPSCounter; |
745 bool m_continuousPaintingEnabled; | 747 bool m_continuousPaintingEnabled; |
746 WebColor m_baseBackgroundColor; | 748 WebColor m_baseBackgroundColor; |
747 WebColor m_backgroundColorOverride; | 749 WebColor m_backgroundColorOverride; |
748 float m_zoomFactorOverride; | 750 float m_zoomFactorOverride; |
749 | 751 |
750 bool m_userGestureObserved; | 752 bool m_userGestureObserved; |
751 WebDisplayMode m_displayMode; | 753 WebDisplayMode m_displayMode; |
752 | 754 |
753 FloatSize m_elasticOverscroll; | 755 FloatSize m_elasticOverscroll; |
754 | 756 |
755 RefPtr<EventListener> m_popupMouseWheelEventListener; | 757 RefPtr<EventListener> m_popupMouseWheelEventListener; |
756 }; | 758 }; |
757 | 759 |
758 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 760 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
759 // We have no ways to check if the specified WebView is an instance of | 761 // We have no ways to check if the specified WebView is an instance of |
760 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 762 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 763 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
762 | 764 |
763 } // namespace blink | 765 } // namespace blink |
764 | 766 |
765 #endif | 767 #endif |
OLD | NEW |