| 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_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 ~SettingsPrivateGetPrefFunction() override; | 55 ~SettingsPrivateGetPrefFunction() override; |
| 56 | 56 |
| 57 // AsyncExtensionFunction overrides. | 57 // AsyncExtensionFunction overrides. |
| 58 ResponseAction Run() override; | 58 ResponseAction Run() override; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateGetPrefFunction); | 60 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateGetPrefFunction); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 // Implements the chrome.settingsPrivate.getDefaultZoomPercent method. | 63 // Implements the chrome.settingsPrivate.getDefaultZoom method. |
| 64 class SettingsPrivateGetDefaultZoomPercentFunction | 64 class SettingsPrivateGetDefaultZoomFunction |
| 65 : public UIThreadExtensionFunction { | 65 : public UIThreadExtensionFunction { |
| 66 public: | 66 public: |
| 67 SettingsPrivateGetDefaultZoomPercentFunction() {} | 67 SettingsPrivateGetDefaultZoomFunction() {} |
| 68 DECLARE_EXTENSION_FUNCTION("settingsPrivate.getDefaultZoomPercent", | 68 DECLARE_EXTENSION_FUNCTION("settingsPrivate.getDefaultZoom", |
| 69 SETTINGSPRIVATE_GETDEFAULTZOOMPERCENTFUNCTION); | 69 SETTINGSPRIVATE_GETDEFAULTZOOMFUNCTION); |
| 70 | 70 |
| 71 protected: | 71 protected: |
| 72 ~SettingsPrivateGetDefaultZoomPercentFunction() override; | 72 ~SettingsPrivateGetDefaultZoomFunction() override; |
| 73 | 73 |
| 74 // AsyncExtensionFunction overrides. | 74 // AsyncExtensionFunction overrides. |
| 75 ResponseAction Run() override; | 75 ResponseAction Run() override; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateGetDefaultZoomPercentFunction); | 77 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateGetDefaultZoomFunction); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 // Implements the chrome.settingsPrivate.setDefaultZoomPercent method. | 80 // Implements the chrome.settingsPrivate.setDefaultZoom method. |
| 81 class SettingsPrivateSetDefaultZoomPercentFunction | 81 class SettingsPrivateSetDefaultZoomFunction |
| 82 : public UIThreadExtensionFunction { | 82 : public UIThreadExtensionFunction { |
| 83 public: | 83 public: |
| 84 SettingsPrivateSetDefaultZoomPercentFunction() {} | 84 SettingsPrivateSetDefaultZoomFunction() {} |
| 85 DECLARE_EXTENSION_FUNCTION("settingsPrivate.setDefaultZoomPercent", | 85 DECLARE_EXTENSION_FUNCTION("settingsPrivate.setDefaultZoom", |
| 86 SETTINGSPRIVATE_SETDEFAULTZOOMPERCENTFUNCTION); | 86 SETTINGSPRIVATE_SETDEFAULTZOOMFUNCTION); |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 ~SettingsPrivateSetDefaultZoomPercentFunction() override; | 89 ~SettingsPrivateSetDefaultZoomFunction() override; |
| 90 | 90 |
| 91 // AsyncExtensionFunction overrides. | 91 // AsyncExtensionFunction overrides. |
| 92 ResponseAction Run() override; | 92 ResponseAction Run() override; |
| 93 | 93 |
| 94 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateSetDefaultZoomPercentFunction); | 94 DISALLOW_COPY_AND_ASSIGN(SettingsPrivateSetDefaultZoomFunction); |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace extensions | 97 } // namespace extensions |
| 98 | 98 |
| 99 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_API_H
_ | 99 #endif // CHROME_BROWSER_EXTENSIONS_API_SETTINGS_PRIVATE_SETTINGS_PRIVATE_API_H
_ |
| OLD | NEW |