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

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

Issue 287093002: Remove ViewMsg_SetZoomLevel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add std:: namespace to find() to fix Android compile. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e98e74e424ec5b5c4e7c5ec1f4807a1757ffcdef 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.
+ CONTENT_EXPORT static double GetZoomLevel(const WebContents* web_contents);
+
+ // Sets the current zoom level for the specified WebContents. The level may
+ // be temporary or host-specific depending on the particular WebContents.
+ 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;
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698