| 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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 WebCore::ScrollGranularity* scrollGranularity
); | 532 WebCore::ScrollGranularity* scrollGranularity
); |
| 533 | 533 |
| 534 // Called by a full frame plugin inside this view to inform it that its | 534 // Called by a full frame plugin inside this view to inform it that its |
| 535 // zoom level has been updated. The plugin should only call this function | 535 // zoom level has been updated. The plugin should only call this function |
| 536 // if the zoom change was triggered by the browser, it's only needed in case | 536 // if the zoom change was triggered by the browser, it's only needed in case |
| 537 // a plugin can update its own zoom, say because of its own UI. | 537 // a plugin can update its own zoom, say because of its own UI. |
| 538 void fullFramePluginZoomLevelChanged(double zoomLevel); | 538 void fullFramePluginZoomLevelChanged(double zoomLevel); |
| 539 | 539 |
| 540 void computeScaleAndScrollForHitRect(const WebRect& hitRect, AutoZoomType, f
loat& scale, WebPoint& scroll, bool& isAnchor); | 540 void computeScaleAndScrollForHitRect(const WebRect& hitRect, AutoZoomType, f
loat& scale, WebPoint& scroll, bool& isAnchor); |
| 541 WebCore::Node* bestTapNode(const WebCore::PlatformGestureEvent& tapEvent); | 541 WebCore::Node* bestTapNode(const WebCore::PlatformGestureEvent& tapEvent); |
| 542 void enableTapHighlight(const WebCore::PlatformGestureEvent& tapEvent); | 542 void enableTapHighlightAtPoint(const WebCore::PlatformGestureEvent& tapEvent
); |
| 543 void enableTapHighlights(Vector<WebCore::Node*>&); |
| 543 void computeScaleAndScrollForFocusedNode(WebCore::Node* focusedNode, float&
scale, WebCore::IntPoint& scroll, bool& needAnimation); | 544 void computeScaleAndScrollForFocusedNode(WebCore::Node* focusedNode, float&
scale, WebCore::IntPoint& scroll, bool& needAnimation); |
| 544 void animateZoomAroundPoint(const WebCore::IntPoint&, AutoZoomType); | 545 void animateZoomAroundPoint(const WebCore::IntPoint&, AutoZoomType); |
| 545 | 546 |
| 546 void enableFakeDoubleTapAnimationForTesting(bool); | 547 void enableFakeDoubleTapAnimationForTesting(bool); |
| 547 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 548 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
| 548 WebCore::IntPoint fakeDoubleTapTargetPositionForTesting() const { return m_f
akeDoubleTapTargetPosition; } | 549 WebCore::IntPoint fakeDoubleTapTargetPositionForTesting() const { return m_f
akeDoubleTapTargetPosition; } |
| 549 float fakeDoubleTapPageScaleFactorForTesting() const { return m_fakeDoubleTa
pPageScaleFactor; } | 550 float fakeDoubleTapPageScaleFactorForTesting() const { return m_fakeDoubleTa
pPageScaleFactor; } |
| 550 bool fakeDoubleTapUseAnchorForTesting() const { return m_fakeDoubleTapUseAnc
hor; } | 551 bool fakeDoubleTapUseAnchorForTesting() const { return m_fakeDoubleTapUseAnc
hor; } |
| 551 | 552 |
| 552 void enterFullScreenForElement(WebCore::Element*); | 553 void enterFullScreenForElement(WebCore::Element*); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 563 // disable the system cursor. | 564 // disable the system cursor. |
| 564 virtual bool requestPointerLock(); | 565 virtual bool requestPointerLock(); |
| 565 virtual void requestPointerUnlock(); | 566 virtual void requestPointerUnlock(); |
| 566 virtual bool isPointerLocked(); | 567 virtual bool isPointerLocked(); |
| 567 | 568 |
| 568 // Heuristic-based function for determining if we should disable workarounds | 569 // Heuristic-based function for determining if we should disable workarounds |
| 569 // for viewing websites that are not optimized for mobile devices. | 570 // for viewing websites that are not optimized for mobile devices. |
| 570 bool shouldDisableDesktopWorkarounds(); | 571 bool shouldDisableDesktopWorkarounds(); |
| 571 | 572 |
| 572 // Exposed for tests. | 573 // Exposed for tests. |
| 573 LinkHighlight* linkHighlight() { return m_linkHighlight.get(); } | 574 LinkHighlight* linkHighlight(int i) { return m_linkHighlights[i].get(); } |
| 574 | 575 |
| 575 WebSettingsImpl* settingsImpl(); | 576 WebSettingsImpl* settingsImpl(); |
| 576 | 577 |
| 577 private: | 578 private: |
| 578 void refreshPageScaleFactorAfterLayout(); | 579 void refreshPageScaleFactorAfterLayout(); |
| 579 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); | 580 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); |
| 580 float clampPageScaleFactorToLimits(float) const; | 581 float clampPageScaleFactorToLimits(float) const; |
| 581 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); | 582 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); |
| 582 WebCore::IntSize contentsSize() const; | 583 WebCore::IntSize contentsSize() const; |
| 583 | 584 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 825 | 826 |
| 826 UserMediaClientImpl m_userMediaClientImpl; | 827 UserMediaClientImpl m_userMediaClientImpl; |
| 827 #if ENABLE(NAVIGATOR_CONTENT_UTILS) | 828 #if ENABLE(NAVIGATOR_CONTENT_UTILS) |
| 828 OwnPtr<NavigatorContentUtilsClientImpl> m_navigatorContentUtilsClient; | 829 OwnPtr<NavigatorContentUtilsClientImpl> m_navigatorContentUtilsClient; |
| 829 #endif | 830 #endif |
| 830 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 831 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
| 831 WebPoint m_positionOnFlingStart; | 832 WebPoint m_positionOnFlingStart; |
| 832 WebPoint m_globalPositionOnFlingStart; | 833 WebPoint m_globalPositionOnFlingStart; |
| 833 int m_flingModifier; | 834 int m_flingModifier; |
| 834 bool m_flingSourceDevice; | 835 bool m_flingSourceDevice; |
| 835 OwnPtr<LinkHighlight> m_linkHighlight; | 836 Vector<OwnPtr<LinkHighlight> > m_linkHighlights; |
| 836 OwnPtr<ValidationMessageClientImpl> m_validationMessage; | 837 OwnPtr<ValidationMessageClientImpl> m_validationMessage; |
| 837 | 838 |
| 838 bool m_showFPSCounter; | 839 bool m_showFPSCounter; |
| 839 bool m_showPaintRects; | 840 bool m_showPaintRects; |
| 840 bool m_showDebugBorders; | 841 bool m_showDebugBorders; |
| 841 bool m_continuousPaintingEnabled; | 842 bool m_continuousPaintingEnabled; |
| 842 }; | 843 }; |
| 843 | 844 |
| 844 } // namespace WebKit | 845 } // namespace WebKit |
| 845 | 846 |
| 846 #endif | 847 #endif |
| OLD | NEW |