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 930769721106ec55a76d22f33a5682f68a1cdb3c..05ba574c5ebe3c5795f8c617d16d62d14de42227 100644 |
--- a/content/public/browser/host_zoom_map.h |
+++ b/content/public/browser/host_zoom_map.h |
@@ -18,6 +18,7 @@ namespace content { |
class BrowserContext; |
class ResourceContext; |
+class WebContents; |
// Maps hostnames to custom zoom levels. Written on the UI thread and read on |
// any thread. One instance per browser context. Must be created on the UI |
@@ -54,6 +55,15 @@ class HostZoomMap { |
CONTENT_EXPORT static HostZoomMap* GetForBrowserContext( |
BrowserContext* browser_context); |
+ // Returns the current zoom level for the specified WebContents. May be |
+ // temporary or host specific. |
Peter Kasting
2014/05/28 22:49:58
Nit: host specific -> host-specific
wjmaclean
2014/05/29 14:49:45
Done.
|
+ CONTENT_EXPORT static double GetZoomLevel(const WebContents* web_contents); |
+ |
+ // Sets the current zoom level for the specified WebContents. The level may |
+ // be temporary or hosti-specific depending on the particular WebContents. |
Peter Kasting
2014/05/28 22:49:58
Nit: hosti -> host
wjmaclean
2014/05/29 14:49:45
Done.
|
+ CONTENT_EXPORT static void SetZoomLevel(const WebContents* web_contents, |
+ double level); |
+ |
// Copy the zoom levels from the given map. Can only be called on the UI |
// thread. |
virtual void CopyFrom(HostZoomMap* copy) = 0; |