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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 2417783005: [Master/Overview CL] Make PageScaleFactor work for oopif subframe.
Patch Set: Rebase to master@{#429656}. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebView.h
diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
index ae1bcf9ab0bae829fc46fa50ea11bdc558154e18..e1abf8fb4e03524dc67351fc3cf73faec195c2f4 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -273,6 +273,9 @@ class WebView : protected WebWidget {
// Scales the page without affecting layout by using the visual viewport.
virtual void setPageScaleFactor(float) = 0;
+ // Returns the scale factor clamped within the current limits.
+ virtual float clampPageScaleFactorToLimits(float) const = 0;
+
// Sets the offset of the visual viewport within the main frame, in
// partial CSS pixels. The offset will be clamped so the visual viewport
// stays within the frame's bounds.
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698