OLD | NEW |
(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_ |
OLD | NEW |