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