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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 #include "wtf/RefCounted.h" | 68 #include "wtf/RefCounted.h" |
69 #include "wtf/Vector.h" | 69 #include "wtf/Vector.h" |
70 #include <memory> | 70 #include <memory> |
71 | 71 |
72 namespace blink { | 72 namespace blink { |
73 | 73 |
74 class BrowserControls; | 74 class BrowserControls; |
75 class DataObject; | 75 class DataObject; |
76 class DevToolsEmulator; | 76 class DevToolsEmulator; |
77 class Frame; | 77 class Frame; |
| 78 class FullscreenCallbacks; |
78 class FullscreenController; | 79 class FullscreenController; |
79 class InspectorOverlay; | 80 class InspectorOverlay; |
80 class LinkHighlightImpl; | 81 class LinkHighlightImpl; |
81 class PageOverlay; | 82 class PageOverlay; |
82 class PageScaleConstraintsSet; | 83 class PageScaleConstraintsSet; |
83 class PaintLayerCompositor; | 84 class PaintLayerCompositor; |
84 class UserGestureToken; | 85 class UserGestureToken; |
85 class WebActiveGestureAnimation; | 86 class WebActiveGestureAnimation; |
86 class WebDevToolsAgentImpl; | 87 class WebDevToolsAgentImpl; |
87 class WebElement; | 88 class WebElement; |
(...skipping 352 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<FullscreenCallbacks>); |
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 |