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 22 matching lines...) Expand all Loading... |
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/animation/CompositorAnimationTimeline.h" |
37 #include "platform/geometry/IntPoint.h" | 37 #include "platform/geometry/IntPoint.h" |
38 #include "platform/geometry/IntRect.h" | 38 #include "platform/geometry/IntRect.h" |
39 #include "platform/graphics/GraphicsLayer.h" | 39 #include "platform/graphics/GraphicsLayer.h" |
40 #include "platform/heap/Handle.h" | 40 #include "platform/heap/Handle.h" |
41 #include "public/platform/WebDisplayMode.h" | 41 #include "public/platform/WebDisplayMode.h" |
42 #include "public/platform/WebFloatSize.h" | 42 #include "public/platform/WebFloatSize.h" |
| 43 #include "public/platform/WebFullscreenCallbacks.h" |
43 #include "public/platform/WebGestureCurveTarget.h" | 44 #include "public/platform/WebGestureCurveTarget.h" |
44 #include "public/platform/WebGestureEvent.h" | 45 #include "public/platform/WebGestureEvent.h" |
45 #include "public/platform/WebInputEvent.h" | 46 #include "public/platform/WebInputEvent.h" |
46 #include "public/platform/WebInputEventResult.h" | 47 #include "public/platform/WebInputEventResult.h" |
47 #include "public/platform/WebLayer.h" | 48 #include "public/platform/WebLayer.h" |
48 #include "public/platform/WebPoint.h" | 49 #include "public/platform/WebPoint.h" |
49 #include "public/platform/WebRect.h" | 50 #include "public/platform/WebRect.h" |
50 #include "public/platform/WebScheduler.h" | 51 #include "public/platform/WebScheduler.h" |
51 #include "public/platform/WebSize.h" | 52 #include "public/platform/WebSize.h" |
52 #include "public/platform/WebString.h" | 53 #include "public/platform/WebString.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { | 441 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { |
441 return m_fakePageScaleAnimationTargetPosition; | 442 return m_fakePageScaleAnimationTargetPosition; |
442 } | 443 } |
443 float fakePageScaleAnimationPageScaleForTesting() const { | 444 float fakePageScaleAnimationPageScaleForTesting() const { |
444 return m_fakePageScaleAnimationPageScaleFactor; | 445 return m_fakePageScaleAnimationPageScaleFactor; |
445 } | 446 } |
446 bool fakePageScaleAnimationUseAnchorForTesting() const { | 447 bool fakePageScaleAnimationUseAnchorForTesting() const { |
447 return m_fakePageScaleAnimationUseAnchor; | 448 return m_fakePageScaleAnimationUseAnchor; |
448 } | 449 } |
449 | 450 |
450 void enterFullscreenForElement(Element*); | 451 void enterFullscreen(LocalFrame&, std::unique_ptr<WebFullscreenCallbacks>); |
451 void exitFullscreen(LocalFrame*); | 452 void exitFullscreen(LocalFrame&); |
452 void fullscreenElementChanged(Element*, Element*); | 453 void fullscreenElementChanged(Element*, Element*); |
453 | 454 |
454 // Exposed for the purpose of overriding device metrics. | 455 // Exposed for the purpose of overriding device metrics. |
455 void sendResizeEventAndRepaint(); | 456 void sendResizeEventAndRepaint(); |
456 | 457 |
457 // Exposed for testing purposes. | 458 // Exposed for testing purposes. |
458 bool hasHorizontalScrollbar(); | 459 bool hasHorizontalScrollbar(); |
459 bool hasVerticalScrollbar(); | 460 bool hasVerticalScrollbar(); |
460 | 461 |
461 // Exposed for tests. | 462 // Exposed for tests. |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 static const WebInputEvent* m_currentInputEvent; | 693 static const WebInputEvent* m_currentInputEvent; |
693 | 694 |
694 MediaKeysClientImpl m_mediaKeysClientImpl; | 695 MediaKeysClientImpl m_mediaKeysClientImpl; |
695 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; | 696 std::unique_ptr<WebActiveGestureAnimation> m_gestureAnimation; |
696 WebPoint m_positionOnFlingStart; | 697 WebPoint m_positionOnFlingStart; |
697 WebPoint m_globalPositionOnFlingStart; | 698 WebPoint m_globalPositionOnFlingStart; |
698 int m_flingModifier; | 699 int m_flingModifier; |
699 WebGestureDevice m_flingSourceDevice; | 700 WebGestureDevice m_flingSourceDevice; |
700 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; | 701 Vector<std::unique_ptr<LinkHighlightImpl>> m_linkHighlights; |
701 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; | 702 std::unique_ptr<CompositorAnimationTimeline> m_linkHighlightsTimeline; |
702 Persistent<FullscreenController> m_fullscreenController; | 703 std::unique_ptr<FullscreenController> m_fullscreenController; |
703 | 704 |
704 WebColor m_baseBackgroundColor; | 705 WebColor m_baseBackgroundColor; |
705 WebColor m_backgroundColorOverride; | 706 WebColor m_backgroundColorOverride; |
706 float m_zoomFactorOverride; | 707 float m_zoomFactorOverride; |
707 | 708 |
708 bool m_userGestureObserved; | 709 bool m_userGestureObserved; |
709 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; | 710 bool m_shouldDispatchFirstVisuallyNonEmptyLayout; |
710 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; | 711 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; |
711 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; | 712 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; |
712 WebDisplayMode m_displayMode; | 713 WebDisplayMode m_displayMode; |
(...skipping 22 matching lines...) Expand all Loading... |
735 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 736 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
736 }; | 737 }; |
737 | 738 |
738 // We have no ways to check if the specified WebView is an instance of | 739 // We have no ways to check if the specified WebView is an instance of |
739 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 740 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
740 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 741 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
741 | 742 |
742 } // namespace blink | 743 } // namespace blink |
743 | 744 |
744 #endif | 745 #endif |
OLD | NEW |