| 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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 492 |
| 493 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } | 493 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } |
| 494 | 494 |
| 495 private: | 495 private: |
| 496 void setTopControlsContentOffset(float); | 496 void setTopControlsContentOffset(float); |
| 497 | 497 |
| 498 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to | 498 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to |
| 499 // prevent external usage | 499 // prevent external usage |
| 500 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; | 500 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; |
| 501 | 501 |
| 502 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); | |
| 503 | |
| 504 IntRect visibleRectInDocument() const; | |
| 505 | |
| 506 float legibleScale() const; | 502 float legibleScale() const; |
| 507 void refreshPageScaleFactorAfterLayout(); | 503 void refreshPageScaleFactorAfterLayout(); |
| 508 void resumeTreeViewCommits(); | 504 void resumeTreeViewCommits(); |
| 509 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); | 505 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); |
| 510 float clampPageScaleFactorToLimits(float) const; | 506 float clampPageScaleFactorToLimits(float) const; |
| 511 IntSize contentsSize() const; | 507 IntSize contentsSize() const; |
| 512 | 508 |
| 513 void resetSavedScrollAndScaleState(); | 509 void resetSavedScrollAndScaleState(); |
| 514 | 510 |
| 515 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); | 511 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 float m_topControlsContentOffset; | 727 float m_topControlsContentOffset; |
| 732 }; | 728 }; |
| 733 | 729 |
| 734 // We have no ways to check if the specified WebView is an instance of | 730 // We have no ways to check if the specified WebView is an instance of |
| 735 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 731 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 736 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 732 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 737 | 733 |
| 738 } // namespace blink | 734 } // namespace blink |
| 739 | 735 |
| 740 #endif | 736 #endif |
| OLD | NEW |