@types/chrome 0.0.269 → 0.0.271
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +44 -1
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Sat, 14 Sep 2024 10:37:02 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
@@ -2535,6 +2535,24 @@ declare namespace chrome.devtools.network {
|
|
2535
2535
|
export var onNavigated: NavigatedEvent;
|
2536
2536
|
}
|
2537
2537
|
|
2538
|
+
////////////////////
|
2539
|
+
// Dev Tools - Performance
|
2540
|
+
////////////////////
|
2541
|
+
/**
|
2542
|
+
* The chrome.devtools.performance API allows developers to interact with the recording features of the Performance panel in Chrome DevTools. You can use this API to get notifications when recording starts or stops.
|
2543
|
+
* @since Chrome 128
|
2544
|
+
*/
|
2545
|
+
declare namespace chrome.devtools.performance {
|
2546
|
+
export interface ProfilingStartedEvent extends chrome.events.Event<() => void> {}
|
2547
|
+
|
2548
|
+
export interface ProfilingStoppedEvent extends chrome.events.Event<() => void> {}
|
2549
|
+
|
2550
|
+
/** Fired when the Performance panel begins recording performance data. */
|
2551
|
+
export var onProfilingStarted: ProfilingStartedEvent;
|
2552
|
+
/** Fired when the Performance panel stops recording performance data. */
|
2553
|
+
export var onProfilingStopped: ProfilingStoppedEvent;
|
2554
|
+
}
|
2555
|
+
|
2538
2556
|
////////////////////
|
2539
2557
|
// Dev Tools - Panels
|
2540
2558
|
////////////////////
|
@@ -8995,14 +9013,28 @@ declare namespace chrome.system.display {
|
|
8995
9013
|
singleUnified?: boolean | undefined;
|
8996
9014
|
}
|
8997
9015
|
|
9016
|
+
/**
|
9017
|
+
* An enum to tell if the display is detected and used by the system.
|
9018
|
+
* The display is considered 'inactive', if it is not detected by the system (maybe disconnected, or considered disconnected due to sleep mode, etc).
|
9019
|
+
* This state is used to keep existing display when the all displays are disconnected, for example.
|
9020
|
+
* @since Chrome 117
|
9021
|
+
*/
|
9022
|
+
export type ActiveStateEnum = "active" | "inactive";
|
9023
|
+
|
8998
9024
|
/** Information about display properties. */
|
8999
9025
|
export interface DisplayInfo {
|
9026
|
+
/**
|
9027
|
+
* Active if the display is detected and used by the system.
|
9028
|
+
* @since Chrome 117
|
9029
|
+
*/
|
9030
|
+
activeState: ActiveStateEnum;
|
9000
9031
|
/** The unique identifier of the display. */
|
9001
9032
|
id: string;
|
9002
9033
|
/** The user-friendly name (e.g. 'HP LCD monitor'). */
|
9003
9034
|
name: string;
|
9004
9035
|
/**
|
9005
9036
|
* requires(CrOS Kiosk app) Only available in Chrome OS Kiosk apps
|
9037
|
+
* @since Chrome 67
|
9006
9038
|
*/
|
9007
9039
|
edid?: {
|
9008
9040
|
/**
|
@@ -9032,6 +9064,7 @@ declare namespace chrome.system.display {
|
|
9032
9064
|
* Empty if no displays are being mirrored. This will be set to the same value
|
9033
9065
|
* for all displays.
|
9034
9066
|
* ❗ This must not include *mirroringSourceId*. ❗
|
9067
|
+
* @since Chrome 64
|
9035
9068
|
*/
|
9036
9069
|
mirroringDestinationIds: string[];
|
9037
9070
|
/** True if this is the primary display. */
|
@@ -9040,6 +9073,11 @@ declare namespace chrome.system.display {
|
|
9040
9073
|
isInternal: boolean;
|
9041
9074
|
/** True if this display is enabled. */
|
9042
9075
|
isEnabled: boolean;
|
9076
|
+
/**
|
9077
|
+
* True for all displays when in unified desktop mode
|
9078
|
+
* @since Chrome 59
|
9079
|
+
*/
|
9080
|
+
isUnified: boolean;
|
9043
9081
|
/** The number of pixels per inch along the x-axis. */
|
9044
9082
|
dpiX: number;
|
9045
9083
|
/** The number of pixels per inch along the y-axis. */
|
@@ -9058,15 +9096,20 @@ declare namespace chrome.system.display {
|
|
9058
9096
|
* The current mode will have isSelected=true.
|
9059
9097
|
* Only available on Chrome OS.
|
9060
9098
|
* Will be set to an empty array on other platforms.
|
9099
|
+
* @since Chrome 52
|
9061
9100
|
*/
|
9062
9101
|
modes: DisplayMode[];
|
9063
9102
|
/** True if this display has a touch input device associated with it. */
|
9064
9103
|
hasTouchSupport: boolean;
|
9065
|
-
/**
|
9104
|
+
/**
|
9105
|
+
* A list of zoom factor values that can be set for the display.
|
9106
|
+
* @since Chrome 67
|
9107
|
+
*/
|
9066
9108
|
availableDisplayZoomFactors: number[];
|
9067
9109
|
/**
|
9068
9110
|
* The ratio between the display's current and default zoom.
|
9069
9111
|
* For example, value 1 is equivalent to 100% zoom, and value 1.5 is equivalent to 150% zoom.
|
9112
|
+
* @since Chrome 65
|
9070
9113
|
*/
|
9071
9114
|
displayZoomFactor: number;
|
9072
9115
|
}
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.271",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -93,6 +93,6 @@
|
|
93
93
|
"@types/filesystem": "*",
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
|
-
"typesPublisherContentHash": "
|
96
|
+
"typesPublisherContentHash": "2d78bd0f0e42e12eb3a7a794724c743148b1befe10cc038d78381a0fdf1f7998",
|
97
97
|
"typeScriptVersion": "4.8"
|
98
98
|
}
|