blob: 90fc4e48f14943cc5efb30a845c1e8939f7293f8 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Definitions for chrome.wallpaper API
* Generated from: chrome/common/extensions/api/wallpaper.json
* run `tools/json_schema_compiler/compiler.py
* chrome/common/extensions/api/wallpaper.json -g ts_definitions` to regenerate.
*/
declare namespace chrome {
export namespace wallpaper {
export enum WallpaperLayout {
STRETCH = 'STRETCH',
CENTER = 'CENTER',
CENTER_CROPPED = 'CENTER_CROPPED',
}
export function setWallpaper(details: {
data?: ArrayBuffer,
url?: string, layout: WallpaperLayout, filename: string,
thumbnail?: boolean,
}): Promise<ArrayBuffer>;
}
}