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

Unified Diff: content/browser/host_zoom_map_impl.h

Issue 224733018: Changes to content/ to facilitate new zoom extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | content/browser/host_zoom_map_impl.cc » ('j') | content/common/view_messages.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/host_zoom_map_impl.h
diff --git a/content/browser/host_zoom_map_impl.h b/content/browser/host_zoom_map_impl.h
index 155f18e00fb2babd091a352d5df7b2b6974982ce..b941f07b21b5938ff28e297c1e9617a853ab58d4 100644
--- a/content/browser/host_zoom_map_impl.h
+++ b/content/browser/host_zoom_map_impl.h
@@ -54,12 +54,20 @@ class CONTENT_EXPORT HostZoomMapImpl : public NON_EXPORTED_BASE(HostZoomMap),
double GetTemporaryZoomLevel(int render_process_id,
int render_view_id) const;
+ // Passes a zoom ID along to the ZoomController.
Fady Samuel 2014/04/07 21:27:24 ZoomController is a chrome concept. Remove referen
paulmeyer 2014/04/08 21:13:20 Done.
+ virtual void SetZoomLevelForHost(
+ const std::string& host,
+ int zoom_id,
+ double level);
+
// Sets the temporary zoom level that's only valid for the lifetime of this
// WebContents.
//
// This should only be called on the UI thread.
void SetTemporaryZoomLevel(int render_process_id,
int render_view_id,
+ const std::string& host,
+ int zoom_id,
double level);
// NotificationObserver implementation.
@@ -68,8 +76,17 @@ class CONTENT_EXPORT HostZoomMapImpl : public NON_EXPORTED_BASE(HostZoomMap),
const NotificationDetails& details) OVERRIDE;
private:
+ // Erases an entry in |temporary_zoom_levels_|.
+ void EraseTemporaryZoomLevel(int render_process_id, int render_view_id);
+
double GetZoomLevelForHost(const std::string& host) const;
+ // Notifies the renderers from this browser context to change the zoom level
+ // for the specified host and scheme.
+ void SendZoomLevelChange(const std::string& scheme,
+ const std::string& host,
+ double level);
+
typedef std::map<std::string, double> HostZoomLevels;
typedef std::map<std::string, HostZoomLevels> SchemeHostZoomLevels;
« no previous file with comments | « no previous file | content/browser/host_zoom_map_impl.cc » ('j') | content/common/view_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698