| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 483 |
| 484 bool pinchVirtualViewportEnabled() const; | 484 bool pinchVirtualViewportEnabled() const; |
| 485 | 485 |
| 486 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } | 486 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } |
| 487 | 487 |
| 488 private: | 488 private: |
| 489 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to | 489 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to |
| 490 // prevent external usage | 490 // prevent external usage |
| 491 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; | 491 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; |
| 492 | 492 |
| 493 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); |
| 494 |
| 495 IntRect visibleRectInDocument() const; |
| 496 |
| 493 float legibleScale() const; | 497 float legibleScale() const; |
| 494 void refreshPageScaleFactorAfterLayout(); | 498 void refreshPageScaleFactorAfterLayout(); |
| 495 void resumeTreeViewCommits(); | 499 void resumeTreeViewCommits(); |
| 496 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); | 500 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); |
| 497 float clampPageScaleFactorToLimits(float) const; | 501 float clampPageScaleFactorToLimits(float) const; |
| 498 IntSize contentsSize() const; | 502 IntSize contentsSize() const; |
| 499 | 503 |
| 500 void resetSavedScrollAndScaleState(); | 504 void resetSavedScrollAndScaleState(); |
| 501 | 505 |
| 502 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); | 506 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 bool m_userGestureObserved; | 719 bool m_userGestureObserved; |
| 716 }; | 720 }; |
| 717 | 721 |
| 718 // We have no ways to check if the specified WebView is an instance of | 722 // We have no ways to check if the specified WebView is an instance of |
| 719 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 723 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 720 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 724 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 721 | 725 |
| 722 } // namespace blink | 726 } // namespace blink |
| 723 | 727 |
| 724 #endif | 728 #endif |
| OLD | NEW |