virtual ~WallpaperPrivateGetStringsFunction() {}
// SyncExtensionFunction overrides.
- virtual bool RunSync() OVERRIDE;
+ virtual bool RunSync() override;
+};
+
+// Check if sync themes setting is enabled.
+class WallpaperPrivateGetSyncSettingFunction : public SyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getSyncSetting",
+ WALLPAPERPRIVATE_GETSYNCSETTING)
+
+ protected:
+ virtual ~WallpaperPrivateGetSyncSettingFunction() {}
+
+ // SyncExtensionFunction overrides.
+ virtual bool RunSync() override;
};
class WallpaperPrivateSetWallpaperIfExistsFunction
virtual ~WallpaperPrivateSetWallpaperIfExistsFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
- virtual void OnWallpaperDecoded(const gfx::ImageSkia& image) OVERRIDE;
+ virtual void OnWallpaperDecoded(const gfx::ImageSkia& image) override;
// File doesn't exist. Sets javascript callback parameter to false.
void OnFileNotExists(const std::string& error);
virtual ~WallpaperPrivateSetWallpaperFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
- virtual void OnWallpaperDecoded(const gfx::ImageSkia& image) OVERRIDE;
+ virtual void OnWallpaperDecoded(const gfx::ImageSkia& image) override;
// Saves the image data to a file.
void SaveToFile();
virtual ~WallpaperPrivateResetWallpaperFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
class WallpaperPrivateSetCustomWallpaperFunction
virtual ~WallpaperPrivateSetCustomWallpaperFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
- virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) OVERRIDE;
+ virtual void OnWallpaperDecoded(const gfx::ImageSkia& wallpaper) override;
// Generates thumbnail of custom wallpaper. A simple STRETCH is used for
// generating thunbail.
virtual ~WallpaperPrivateSetCustomWallpaperLayoutFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
class WallpaperPrivateMinimizeInactiveWindowsFunction
virtual ~WallpaperPrivateMinimizeInactiveWindowsFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
class WallpaperPrivateRestoreMinimizedWindowsFunction
virtual ~WallpaperPrivateRestoreMinimizedWindowsFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
};
class WallpaperPrivateGetThumbnailFunction : public AsyncExtensionFunction {
virtual ~WallpaperPrivateGetThumbnailFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
// Failed to get thumbnail for |file_name|.
virtual ~WallpaperPrivateSaveThumbnailFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
// Failed to save thumbnail for |file_name|.
virtual ~WallpaperPrivateGetOfflineWallpaperListFunction();
// AsyncExtensionFunction overrides.
- virtual bool RunAsync() OVERRIDE;
+ virtual bool RunAsync() override;
private:
// Enumerates the list of files in online wallpaper directory.