Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 2623933002: Use full viewport height for layout if URL bar is locked shown or hidden. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/BrowserControls.h ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698