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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); | 515 void PropagateZoomFactorToLocalFrameRoots(Frame*, float); |
516 | 516 |
517 void ScrollAndRescaleViewports(float scale_factor, | 517 void ScrollAndRescaleViewports(float scale_factor, |
518 const IntPoint& main_frame_origin, | 518 const IntPoint& main_frame_origin, |
519 const FloatPoint& visual_viewport_origin); | 519 const FloatPoint& visual_viewport_origin); |
520 | 520 |
521 float MaximumLegiblePageScale() const; | 521 float MaximumLegiblePageScale() const; |
522 void RefreshPageScaleFactorAfterLayout(); | 522 void RefreshPageScaleFactorAfterLayout(); |
523 IntSize ContentsSize() const; | 523 IntSize ContentsSize() const; |
524 | 524 |
525 void ResizeFrameView(WebLocalFrameImpl* webframe); | |
526 void UpdateICBAndResizeViewport(); | 525 void UpdateICBAndResizeViewport(); |
527 void ResizeViewWhileAnchored(float browser_controls_height, | 526 void ResizeViewWhileAnchored(float browser_controls_height, |
528 bool browser_controls_shrink_layout); | 527 bool browser_controls_shrink_layout); |
529 | 528 |
530 // Overrides the compositor visibility. See the description of | 529 // Overrides the compositor visibility. See the description of |
531 // m_overrideCompositorVisibility for more details. | 530 // m_overrideCompositorVisibility for more details. |
532 void SetCompositorVisibility(bool) override; | 531 void SetCompositorVisibility(bool) override; |
533 | 532 |
534 // TODO(lfg): Remove once WebViewFrameWidget is deleted. | 533 // TODO(lfg): Remove once WebViewFrameWidget is deleted. |
535 void ScheduleAnimationForWidget() override; | 534 void ScheduleAnimationForWidget() override; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 745 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
747 }; | 746 }; |
748 | 747 |
749 // We have no ways to check if the specified WebView is an instance of | 748 // We have no ways to check if the specified WebView is an instance of |
750 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 749 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
751 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 750 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
752 | 751 |
753 } // namespace blink | 752 } // namespace blink |
754 | 753 |
755 #endif | 754 #endif |
OLD | NEW |