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