| // 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. |
| |
| interface Window { |
| chooseEntryResult?: Entry|null; |
| step: (() => void)|null; |
| autoStep(): void; |
| autostep: boolean; |
| currentStep: Promise<void>|null; |
| } |
| |
| |
| // Copied from the fileManagerPrivate. |
| // TODO(TS): Remove this interface when file_manager_private.d.ts is |
| // auto-generated and submitted. |
| interface FileTaskDescriptor { |
| appId: string; |
| taskType: string; |
| actionId: string; |
| } |
| |
| |
| // TODO(b/319189127): Remove these when the integration tests extension is |
| // migrated to manifest v3 and can use the Promise version of these APIs. |
| declare namespace chrome { |
| export namespace commandLinePrivate { |
| export function hasSwitch( |
| name: string, callback: (result: boolean) => void): void; |
| } |
| |
| export namespace windows { |
| export function getAll( |
| queryOptions?: QueryOptions, |
| callback?: (windows: Window[]) => void): void; |
| export function create( |
| createData?: { |
| url?: string|string[], |
| tabId?: number, |
| left?: number, |
| top?: number, |
| width?: number, |
| height?: number, |
| focused?: boolean, |
| incognito?: boolean, |
| type?: CreateType, |
| state?: WindowState, |
| setSelfAsOpener?: boolean, |
| }, |
| callback?: (window: Window) => void): void; |
| } |
| export namespace extension { |
| export const inIncognitoContext: boolean; |
| } |
| } |