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

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

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: Add more tests. Created 3 years, 11 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/zoom_level_delegate.h
diff --git a/content/public/browser/zoom_level_delegate.h b/content/public/browser/zoom_level_delegate.h
index e6a93bde06ef2f09c3b5d8c7b46d329b1be0a22e..370009d7080ecb28637f4ec011a06cbc5942c701 100644
--- a/content/public/browser/zoom_level_delegate.h
+++ b/content/public/browser/zoom_level_delegate.h
@@ -5,14 +5,25 @@
#ifndef CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_DELEGATE_H_
#define CONTENT_PUBLIC_BROWSER_ZOOM_LEVEL_DELEGATE_H_
+#include "base/callback_list.h"
+
namespace content {
class HostZoomMap;
-// An interface to allow the client to initialize the HostZoomMap.
+// An interface to allow the client to initialize the HostZoomMap
+// and to know the default zoom scope.
class ZoomLevelDelegate {
public:
+ typedef base::CallbackList<void(void)>::Subscription
+ DefaultZoomScopeSubscription;
+
virtual void InitHostZoomMap(HostZoomMap* host_zoom_map) = 0;
+
+ virtual bool GetIsOriginScopePref() const = 0;
+ virtual std::unique_ptr<DefaultZoomScopeSubscription>
+ RegisterDefaultZoomScopeCallback(const base::Closure& callback) = 0;
+
virtual ~ZoomLevelDelegate() {}
};

Powered by Google App Engine
This is Rietveld 408576698