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