| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 514 |
| 515 void scrollAndRescaleViewports(float scaleFactor, | 515 void scrollAndRescaleViewports(float scaleFactor, |
| 516 const IntPoint& mainFrameOrigin, | 516 const IntPoint& mainFrameOrigin, |
| 517 const FloatPoint& visualViewportOrigin); | 517 const FloatPoint& visualViewportOrigin); |
| 518 | 518 |
| 519 float maximumLegiblePageScale() const; | 519 float maximumLegiblePageScale() const; |
| 520 void refreshPageScaleFactorAfterLayout(); | 520 void refreshPageScaleFactorAfterLayout(); |
| 521 IntSize contentsSize() const; | 521 IntSize contentsSize() const; |
| 522 | 522 |
| 523 void performResize(); | 523 void performResize(); |
| 524 void resizeViewWhileAnchored(FrameView*, | 524 void resizeViewWhileAnchored(float browserControlsHeight, |
| 525 float browserControlsHeight, | |
| 526 bool browserControlsShrinkLayout); | 525 bool browserControlsShrinkLayout); |
| 527 | 526 |
| 528 // Overrides the compositor visibility. See the description of | 527 // Overrides the compositor visibility. See the description of |
| 529 // m_overrideCompositorVisibility for more details. | 528 // m_overrideCompositorVisibility for more details. |
| 530 void setCompositorVisibility(bool); | 529 void setCompositorVisibility(bool); |
| 531 | 530 |
| 532 // TODO(lfg): Remove once WebViewFrameWidget is deleted. | 531 // TODO(lfg): Remove once WebViewFrameWidget is deleted. |
| 533 void scheduleAnimationForWidget(); | 532 void scheduleAnimationForWidget(); |
| 534 bool getCompositionCharacterBounds(WebVector<WebRect>&) override; | 533 bool getCompositionCharacterBounds(WebVector<WebRect>&) override; |
| 535 void applyReplacementRange(const WebRange&) override; | 534 void applyReplacementRange(const WebRange&) override; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 733 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 735 }; | 734 }; |
| 736 | 735 |
| 737 // We have no ways to check if the specified WebView is an instance of | 736 // We have no ways to check if the specified WebView is an instance of |
| 738 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 737 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 739 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 738 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 740 | 739 |
| 741 } // namespace blink | 740 } // namespace blink |
| 742 | 741 |
| 743 #endif | 742 #endif |
| OLD | NEW |