| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 virtual void zoomToFindInPageRect(const WebRect&) OVERRIDE; | 172 virtual void zoomToFindInPageRect(const WebRect&) OVERRIDE; |
| 173 virtual void advanceFocus(bool reverse) OVERRIDE; | 173 virtual void advanceFocus(bool reverse) OVERRIDE; |
| 174 virtual double zoomLevel() OVERRIDE; | 174 virtual double zoomLevel() OVERRIDE; |
| 175 virtual double setZoomLevel(double) OVERRIDE; | 175 virtual double setZoomLevel(double) OVERRIDE; |
| 176 virtual void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLe
vel) OVERRIDE; | 176 virtual void zoomLimitsChanged(double minimumZoomLevel, double maximumZoomLe
vel) OVERRIDE; |
| 177 virtual float textZoomFactor() OVERRIDE; | 177 virtual float textZoomFactor() OVERRIDE; |
| 178 virtual float setTextZoomFactor(float) OVERRIDE; | 178 virtual float setTextZoomFactor(float) OVERRIDE; |
| 179 virtual void setInitialPageScaleOverride(float) OVERRIDE; | 179 virtual void setInitialPageScaleOverride(float) OVERRIDE; |
| 180 virtual bool zoomToMultipleTargetsRect(const WebRect&) OVERRIDE; | 180 virtual bool zoomToMultipleTargetsRect(const WebRect&) OVERRIDE; |
| 181 virtual float pageScaleFactor() const OVERRIDE; | 181 virtual float pageScaleFactor() const OVERRIDE; |
| 182 virtual void setPageScaleFactorPreservingScrollOffset(float) OVERRIDE; | |
| 183 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; | |
| 184 virtual void setPageScaleFactorLimits(float minPageScale, float maxPageScale
) OVERRIDE; | 182 virtual void setPageScaleFactorLimits(float minPageScale, float maxPageScale
) OVERRIDE; |
| 183 virtual void setMainFrameScrollOffset(const WebPoint&) OVERRIDE; |
| 184 virtual void setPageScaleFactor(float) OVERRIDE; |
| 185 virtual void setPinchViewportOffset(const WebFloatPoint&) OVERRIDE; |
| 186 virtual WebFloatPoint pinchViewportOffset() const OVERRIDE; |
| 185 virtual float minimumPageScaleFactor() const OVERRIDE; | 187 virtual float minimumPageScaleFactor() const OVERRIDE; |
| 186 virtual float maximumPageScaleFactor() const OVERRIDE; | 188 virtual float maximumPageScaleFactor() const OVERRIDE; |
| 187 virtual void saveScrollAndScaleState() OVERRIDE; | 189 virtual void saveScrollAndScaleState() OVERRIDE; |
| 188 virtual void restoreScrollAndScaleState() OVERRIDE; | 190 virtual void restoreScrollAndScaleState() OVERRIDE; |
| 189 virtual void resetScrollAndScaleState() OVERRIDE; | 191 virtual void resetScrollAndScaleState() OVERRIDE; |
| 190 virtual void setIgnoreViewportTagScaleLimits(bool) OVERRIDE; | 192 virtual void setIgnoreViewportTagScaleLimits(bool) OVERRIDE; |
| 191 virtual WebSize contentsPreferredMinimumSize() OVERRIDE; | 193 virtual WebSize contentsPreferredMinimumSize() OVERRIDE; |
| 192 | 194 |
| 193 virtual float deviceScaleFactor() const OVERRIDE; | 195 virtual float deviceScaleFactor() const OVERRIDE; |
| 194 virtual void setDeviceScaleFactor(float) OVERRIDE; | 196 virtual void setDeviceScaleFactor(float) OVERRIDE; |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); | 480 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); |
| 479 | 481 |
| 480 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); | 482 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); |
| 481 | 483 |
| 482 // Exposed for tests. | 484 // Exposed for tests. |
| 483 WebVector<WebCompositionUnderline> compositionUnderlines() const; | 485 WebVector<WebCompositionUnderline> compositionUnderlines() const; |
| 484 | 486 |
| 485 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 487 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
| 486 | 488 |
| 487 private: | 489 private: |
| 490 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to |
| 491 // prevent external usage |
| 492 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; |
| 493 |
| 494 bool pinchVirtualViewportEnabled() const; |
| 495 |
| 488 float legibleScale() const; | 496 float legibleScale() const; |
| 489 void refreshPageScaleFactorAfterLayout(); | 497 void refreshPageScaleFactorAfterLayout(); |
| 490 void resumeTreeViewCommits(); | 498 void resumeTreeViewCommits(); |
| 491 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); | 499 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); |
| 492 float clampPageScaleFactorToLimits(float) const; | 500 float clampPageScaleFactorToLimits(float) const; |
| 493 WebCore::IntSize contentsSize() const; | 501 WebCore::IntSize contentsSize() const; |
| 494 | 502 |
| 495 void resetSavedScrollAndScaleState(); | 503 void resetSavedScrollAndScaleState(); |
| 496 | 504 |
| 497 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition,
bool programmaticScroll); | 505 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition,
bool programmaticScroll); |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 float m_zoomFactorOverride; | 729 float m_zoomFactorOverride; |
| 722 }; | 730 }; |
| 723 | 731 |
| 724 // We have no ways to check if the specified WebView is an instance of | 732 // We have no ways to check if the specified WebView is an instance of |
| 725 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 733 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 726 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 734 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 727 | 735 |
| 728 } // namespace blink | 736 } // namespace blink |
| 729 | 737 |
| 730 #endif | 738 #endif |
| OLD | NEW |