Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit cc5f6fb

Browse files
OrKoNwolfib
authored andcommitted
chore: cleanup tool defintion context interface (ChromeDevTools#1033)
these methods are not used by tools
1 parent 30e07ff commit cc5f6fb

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/tools/ToolDefinition.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,9 @@ export type Context = Readonly<{
112112
getDialog(): Dialog | undefined;
113113
clearDialog(): void;
114114
getPageById(pageId: number): Page;
115-
getPageId(page: Page): number | undefined;
116-
isPageSelected(page: Page): boolean;
117115
newPage(background?: boolean, isolatedContextName?: string): Promise<Page>;
118116
closePage(pageId: number): Promise<void>;
119117
selectPage(page: Page): void;
120-
getIsolatedContextName(page: Page): string | undefined;
121118
getElementByUid(uid: string): Promise<ElementHandle<Element>>;
122119
getAXNodeByUid(uid: string): TextSnapshotNode | undefined;
123120
emulate(options: {
@@ -128,12 +125,6 @@ export type Context = Readonly<{
128125
colorScheme?: 'dark' | 'light' | 'auto' | null;
129126
viewport?: Viewport | null;
130127
}): Promise<void>;
131-
getNetworkConditions(): string | null;
132-
getCpuThrottlingRate(): number;
133-
getGeolocation(): GeolocationOptions | null;
134-
getViewport(): Viewport | null;
135-
getUserAgent(): string | null;
136-
getColorScheme(): 'dark' | 'light' | null;
137128
saveTemporaryFile(
138129
data: Uint8Array<ArrayBufferLike>,
139130
mimeType: 'image/png' | 'image/jpeg' | 'image/webp',

0 commit comments

Comments
 (0)