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