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