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

Unified Diff: content/public/browser/host_zoom_map.h

Issue 809223006: Check temporary zoom status when sending zoom level in navigation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
Index: content/public/browser/host_zoom_map.h
diff --git a/content/public/browser/host_zoom_map.h b/content/public/browser/host_zoom_map.h
index 653d24882fe0c5532e15524bf44129373748f276..eeb3b27111942fa6418c684dec5af199c660fbd1 100644
--- a/content/public/browser/host_zoom_map.h
+++ b/content/public/browser/host_zoom_map.h
@@ -137,6 +137,14 @@ class HostZoomMap {
virtual bool UsesTemporaryZoomLevel(int render_process_id,
int render_view_id) const = 0;
+ // Returns the temporary zoom level that's only valid for the lifetime of
+ // the given WebContents (i.e. isn't saved and doesn't affect other
+ // WebContentses) if it exists, the default zoom level otherwise.
+ //
+ // This may be called on any thread.
+ virtual double GetTemporaryZoomLevel(int render_process_id,
Charlie Reis 2015/02/11 18:34:31 From the Content API guidelines: http://www.chromi
wjmaclean 2015/02/11 20:29:34 Done.
+ int render_view_id) const = 0;
Charlie Reis 2015/02/11 18:34:31 From the Content API guidelines: http://www.chromi
wjmaclean 2015/02/11 20:29:34 Done.
+
// Sets the temporary zoom level that's only valid for the lifetime of this
// WebContents.
//

Powered by Google App Engine
This is Rietveld 408576698