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

Unified Diff: components/zoom/zoom_prefs_delegate.h

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: ... and tell closure_compiler. Created 3 years, 10 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 | « components/zoom/zoom_controller.cc ('k') | content/browser/host_zoom_map_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/zoom/zoom_prefs_delegate.h
diff --git a/components/zoom/zoom_prefs_delegate.h b/components/zoom/zoom_prefs_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..a27e8ddacb9835cf1d0a7cf5cb46b50d0d43facc
--- /dev/null
+++ b/components/zoom/zoom_prefs_delegate.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_ZOOM_ZOOM_PREFS_DELEGATE_H_
+#define COMPONENTS_ZOOM_ZOOM_PREFS_DELEGATE_H_
+
+#include "base/callback_list.h"
+#include "content/public/browser/zoom_level_delegate.h"
+
+namespace zoom {
+
+// An interface to allow ZoomController to know the default zoom scope pref.
+class ZoomPrefsDelegate : public content::ZoomLevelDelegate {
+ public:
+ typedef base::CallbackList<void(void)>::Subscription
+ DefaultZoomScopeSubscription;
+
+ virtual bool GetZoomScopeIsPerOriginPref() const = 0;
+ virtual std::unique_ptr<DefaultZoomScopeSubscription>
+ RegisterDefaultZoomScopeCallback(const base::Closure& callback) = 0;
+
+ static constexpr bool kZoomScopeSettingDefault = true;
+};
+
+} // namespace zoom
+
+#endif // COMPONENTS_ZOOM_ZOOM_PREFS_DELEGATE_H_
« no previous file with comments | « components/zoom/zoom_controller.cc ('k') | content/browser/host_zoom_map_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698