| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 WallpaperPrivateSetCustomWallpaperLayoutFunction(); | 187 WallpaperPrivateSetCustomWallpaperLayoutFunction(); |
| 188 | 188 |
| 189 protected: | 189 protected: |
| 190 ~WallpaperPrivateSetCustomWallpaperLayoutFunction() override; | 190 ~WallpaperPrivateSetCustomWallpaperLayoutFunction() override; |
| 191 | 191 |
| 192 // AsyncExtensionFunction overrides. | 192 // AsyncExtensionFunction overrides. |
| 193 bool RunAsync() override; | 193 bool RunAsync() override; |
| 194 }; | 194 }; |
| 195 | 195 |
| 196 class WallpaperPrivateMinimizeInactiveWindowsFunction | 196 class WallpaperPrivateMinimizeInactiveWindowsFunction |
| 197 : public AsyncExtensionFunction { | 197 : public UIThreadExtensionFunction { |
| 198 public: | 198 public: |
| 199 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.minimizeInactiveWindows", | 199 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.minimizeInactiveWindows", |
| 200 WALLPAPERPRIVATE_MINIMIZEINACTIVEWINDOWS) | 200 WALLPAPERPRIVATE_MINIMIZEINACTIVEWINDOWS) |
| 201 | 201 |
| 202 WallpaperPrivateMinimizeInactiveWindowsFunction(); | 202 WallpaperPrivateMinimizeInactiveWindowsFunction(); |
| 203 | 203 |
| 204 protected: | 204 protected: |
| 205 ~WallpaperPrivateMinimizeInactiveWindowsFunction() override; | 205 ~WallpaperPrivateMinimizeInactiveWindowsFunction() override; |
| 206 | 206 ResponseAction Run() override; |
| 207 // AsyncExtensionFunction overrides. | |
| 208 bool RunAsync() override; | |
| 209 }; | 207 }; |
| 210 | 208 |
| 211 class WallpaperPrivateRestoreMinimizedWindowsFunction | 209 class WallpaperPrivateRestoreMinimizedWindowsFunction |
| 212 : public AsyncExtensionFunction { | 210 : public UIThreadExtensionFunction { |
| 213 public: | 211 public: |
| 214 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.restoreMinimizedWindows", | 212 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.restoreMinimizedWindows", |
| 215 WALLPAPERPRIVATE_RESTOREMINIMIZEDWINDOWS) | 213 WALLPAPERPRIVATE_RESTOREMINIMIZEDWINDOWS) |
| 216 | 214 |
| 217 WallpaperPrivateRestoreMinimizedWindowsFunction(); | 215 WallpaperPrivateRestoreMinimizedWindowsFunction(); |
| 218 | 216 |
| 219 protected: | 217 protected: |
| 220 ~WallpaperPrivateRestoreMinimizedWindowsFunction() override; | 218 ~WallpaperPrivateRestoreMinimizedWindowsFunction() override; |
| 221 | 219 ResponseAction Run() override; |
| 222 // AsyncExtensionFunction overrides. | |
| 223 bool RunAsync() override; | |
| 224 }; | 220 }; |
| 225 | 221 |
| 226 class WallpaperPrivateGetThumbnailFunction : public AsyncExtensionFunction { | 222 class WallpaperPrivateGetThumbnailFunction : public AsyncExtensionFunction { |
| 227 public: | 223 public: |
| 228 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getThumbnail", | 224 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getThumbnail", |
| 229 WALLPAPERPRIVATE_GETTHUMBNAIL) | 225 WALLPAPERPRIVATE_GETTHUMBNAIL) |
| 230 | 226 |
| 231 WallpaperPrivateGetThumbnailFunction(); | 227 WallpaperPrivateGetThumbnailFunction(); |
| 232 | 228 |
| 233 protected: | 229 protected: |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 WALLPAPERPRIVATE_RECORDWALLPAPERUMA) | 315 WALLPAPERPRIVATE_RECORDWALLPAPERUMA) |
| 320 | 316 |
| 321 protected: | 317 protected: |
| 322 ~WallpaperPrivateRecordWallpaperUMAFunction() override {} | 318 ~WallpaperPrivateRecordWallpaperUMAFunction() override {} |
| 323 | 319 |
| 324 // SyncExtensionFunction overrides. | 320 // SyncExtensionFunction overrides. |
| 325 bool RunSync() override; | 321 bool RunSync() override; |
| 326 }; | 322 }; |
| 327 | 323 |
| 328 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 324 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| OLD | NEW |