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

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

Issue 226523006: Changes to content/ to facilitate new zoom extension API (work in progress) (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
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..debbd41ac9c66ea8b6ee082c52caa0a76055c19c 100644
--- a/content/public/browser/host_zoom_map.h
+++ b/content/public/browser/host_zoom_map.h
@@ -92,13 +92,28 @@ class HostZoomMap {
const std::string& host,
double level) = 0;
+ // Sets the temporary zoom level that's only valid for the lifetime of this
+ // WebContents.
+ //
+ // This should only be called on the UI thread.
+ virtual void SetTemporaryZoomLevel(int render_process_id,
+ int render_view_id,
+ const std::string& host,
+ double level);
+
+ // Erases the temporary zoom level stored for this WebContents.
+ //
+ // This should only be called on the UI thread.
+ virtual void EraseTemporaryZoomLevel(int render_process_id,
+ int render_view_id);
+
// Get/Set the default zoom level for pages that don't override it.
virtual double GetDefaultZoomLevel() const = 0;
virtual void SetDefaultZoomLevel(double level) = 0;;
typedef base::Callback<void(const ZoomLevelChange&)> ZoomLevelChangedCallback;
typedef base::CallbackList<void(const ZoomLevelChange&)>::Subscription
- Subscription;
+ Subscription;
jam 2014/05/01 23:21:13 nit: leave as is
// Add and remove zoom level changed callbacks.
virtual scoped_ptr<Subscription> AddZoomLevelChangedCallback(
const ZoomLevelChangedCallback& callback) = 0;

Powered by Google App Engine
This is Rietveld 408576698