| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE
_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE
_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE
_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEGATE
_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Gets the value of the pref with the given |name|. | 41 // Gets the value of the pref with the given |name|. |
| 42 virtual std::unique_ptr<base::Value> GetPref(const std::string& name); | 42 virtual std::unique_ptr<base::Value> GetPref(const std::string& name); |
| 43 | 43 |
| 44 // Gets the values of all whitelisted prefs. | 44 // Gets the values of all whitelisted prefs. |
| 45 virtual std::unique_ptr<base::Value> GetAllPrefs(); | 45 virtual std::unique_ptr<base::Value> GetAllPrefs(); |
| 46 | 46 |
| 47 // Gets the value. | 47 // Gets the value. |
| 48 virtual std::unique_ptr<base::Value> GetDefaultZoomPercent(); | 48 virtual std::unique_ptr<base::Value> GetDefaultZoomPercent(); |
| 49 | 49 |
| 50 // Sets the pref. | 50 // Sets the pref. |
| 51 virtual PrefsUtil::SetPrefResult SetDefaultZoomPercent(int percent); | 51 virtual PrefsUtil::SetPrefResult SetDefaultZoomPercent(double percent); |
| 52 | 52 |
| 53 protected: | 53 protected: |
| 54 Profile* profile_; // weak; not owned by us | 54 Profile* profile_; // weak; not owned by us |
| 55 std::unique_ptr<PrefsUtil> prefs_util_; | 55 std::unique_ptr<PrefsUtil> prefs_util_; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateDelegate); | 58 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateDelegate); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace extensions | 61 } // namespace extensions |
| 62 | 62 |
| 63 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEG
ATE_H_ | 63 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_DELEG
ATE_H_ |
| OLD | NEW |