| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 virtual void setTopControlsLayoutHeight(float) OVERRIDE; | 504 virtual void setTopControlsLayoutHeight(float) OVERRIDE; |
| 505 | 505 |
| 506 private: | 506 private: |
| 507 void didUpdateTopControls(); | 507 void didUpdateTopControls(); |
| 508 void setTopControlsContentOffset(float); | 508 void setTopControlsContentOffset(float); |
| 509 | 509 |
| 510 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to | 510 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to |
| 511 // prevent external usage | 511 // prevent external usage |
| 512 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; | 512 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) O
VERRIDE; |
| 513 | 513 |
| 514 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); |
| 515 |
| 516 IntRect visibleRectInDocument() const; |
| 517 |
| 514 float legibleScale() const; | 518 float legibleScale() const; |
| 515 void refreshPageScaleFactorAfterLayout(); | 519 void refreshPageScaleFactorAfterLayout(); |
| 516 void resumeTreeViewCommits(); | 520 void resumeTreeViewCommits(); |
| 517 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); | 521 void setUserAgentPageScaleConstraints(PageScaleConstraints newConstraints); |
| 518 float clampPageScaleFactorToLimits(float) const; | 522 float clampPageScaleFactorToLimits(float) const; |
| 519 IntSize contentsSize() const; | 523 IntSize contentsSize() const; |
| 520 | 524 |
| 521 void resetSavedScrollAndScaleState(); | 525 void resetSavedScrollAndScaleState(); |
| 522 | 526 |
| 523 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); | 527 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 float m_topControlsLayoutHeight; | 748 float m_topControlsLayoutHeight; |
| 745 }; | 749 }; |
| 746 | 750 |
| 747 // We have no ways to check if the specified WebView is an instance of | 751 // We have no ways to check if the specified WebView is an instance of |
| 748 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 752 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 749 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 753 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 750 | 754 |
| 751 } // namespace blink | 755 } // namespace blink |
| 752 | 756 |
| 753 #endif | 757 #endif |
| OLD | NEW |