| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 WebSettingsImpl* settingsImpl(); | 555 WebSettingsImpl* settingsImpl(); |
| 556 | 556 |
| 557 // Returns the bounding box of the block type node touched by the WebRect. | 557 // Returns the bounding box of the block type node touched by the WebRect. |
| 558 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); | 558 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); |
| 559 | 559 |
| 560 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); | 560 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); |
| 561 | 561 |
| 562 // Exposed for tests. | 562 // Exposed for tests. |
| 563 WebVector<WebCompositionUnderline> compositionUnderlines() const; | 563 WebVector<WebCompositionUnderline> compositionUnderlines() const; |
| 564 | 564 |
| 565 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; }; |
| 566 |
| 565 private: | 567 private: |
| 566 float legibleScale() const; | 568 float legibleScale() const; |
| 567 void refreshPageScaleFactorAfterLayout(); | 569 void refreshPageScaleFactorAfterLayout(); |
| 568 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); | 570 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); |
| 569 float clampPageScaleFactorToLimits(float) const; | 571 float clampPageScaleFactorToLimits(float) const; |
| 570 WebCore::IntSize contentsSize() const; | 572 WebCore::IntSize contentsSize() const; |
| 571 | 573 |
| 572 void resetSavedScrollAndScaleState(); | 574 void resetSavedScrollAndScaleState(); |
| 573 | 575 |
| 574 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition,
bool programmaticScroll); | 576 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition,
bool programmaticScroll); |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 inline WebViewImpl* toWebViewImpl(WebView* webView) | 832 inline WebViewImpl* toWebViewImpl(WebView* webView) |
| 831 { | 833 { |
| 832 // We have no ways to check if the specified WebView is an instance of | 834 // We have no ways to check if the specified WebView is an instance of |
| 833 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 835 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 834 return static_cast<WebViewImpl*>(webView); | 836 return static_cast<WebViewImpl*>(webView); |
| 835 } | 837 } |
| 836 | 838 |
| 837 } // namespace WebKit | 839 } // namespace WebKit |
| 838 | 840 |
| 839 #endif | 841 #endif |
| OLD | NEW |