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

Side by Side 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, 9 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_ZOOM_ZOOM_PREFS_DELEGATE_H_
6 #define COMPONENTS_ZOOM_ZOOM_PREFS_DELEGATE_H_
7
8 #include "base/callback_list.h"
9 #include "content/public/browser/zoom_level_delegate.h"
10
11 namespace zoom {
12
13 // An interface to allow ZoomController to know the default zoom scope pref.
14 class ZoomPrefsDelegate : public content::ZoomLevelDelegate {
15 public:
16 typedef base::CallbackList<void(void)>::Subscription
17 DefaultZoomScopeSubscription;
18
19 virtual bool GetZoomScopeIsPerOriginPref() const = 0;
20 virtual std::unique_ptr<DefaultZoomScopeSubscription>
21 RegisterDefaultZoomScopeCallback(const base::Closure& callback) = 0;
22
23 static constexpr bool kZoomScopeSettingDefault = true;
24 };
25
26 } // namespace zoom
27
28 #endif // COMPONENTS_ZOOM_ZOOM_PREFS_DELEGATE_H_
OLDNEW
« 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