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() const { return m_layerTreeView; }; |
| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 inline WebViewImpl* toWebViewImpl(WebView* webView) | 830 inline WebViewImpl* toWebViewImpl(WebView* webView) |
829 { | 831 { |
830 // We have no ways to check if the specified WebView is an instance of | 832 // We have no ways to check if the specified WebView is an instance of |
831 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 833 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
832 return static_cast<WebViewImpl*>(webView); | 834 return static_cast<WebViewImpl*>(webView); |
833 } | 835 } |
834 | 836 |
835 } // namespace WebKit | 837 } // namespace WebKit |
836 | 838 |
837 #endif | 839 #endif |
OLD | NEW |