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

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

Issue 1804023002: Fix page zoom to be frame-centric for out-of-process frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove 'anonymous'. Created 4 years, 7 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 522
523 bool isTransparent() const; 523 bool isTransparent() const;
524 void setIsTransparent(bool value); 524 void setIsTransparent(bool value);
525 525
526 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } 526 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; }
527 527
528 private: 528 private:
529 InspectorOverlay* inspectorOverlay(); 529 InspectorOverlay* inspectorOverlay();
530 530
531 void setPageScaleFactorAndLocation(float, const FloatPoint&); 531 void setPageScaleFactorAndLocation(float, const FloatPoint&);
532 void propagateZoomToLocalFrameRoots(Frame*);
532 533
533 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin); 534 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO rigin, const FloatPoint& visualViewportOrigin);
534 535
535 float maximumLegiblePageScale() const; 536 float maximumLegiblePageScale() const;
536 void refreshPageScaleFactorAfterLayout(); 537 void refreshPageScaleFactorAfterLayout();
537 IntSize contentsSize() const; 538 IntSize contentsSize() const;
538 539
539 void performResize(); 540 void performResize();
540 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout); 541 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo ntrolsShrinkLayout);
541 542
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 }; 756 };
756 757
757 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView()); 758 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is WebView());
758 // We have no ways to check if the specified WebView is an instance of 759 // We have no ways to check if the specified WebView is an instance of
759 // WebViewImpl because WebViewImpl is the only implementation of WebView. 760 // WebViewImpl because WebViewImpl is the only implementation of WebView.
760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
761 762
762 } // namespace blink 763 } // namespace blink
763 764
764 #endif 765 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698