chrome-types 0.1.163 → 0.1.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/_all.d.ts +386 -2
  2. package/index.d.ts +386 -2
  3. package/package.json +2 -2
package/_all.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Jan 14 2023 22:29:39 GMT+0000 (Coordinated Universal Time)
18
- // Built at b966f8180ede3753691c56b476f278f1c5afcdfd
17
+ // Generated on Thu Jan 19 2023 22:30:07 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 264375da24bfa534433b1f5b573ba161dd31c98d
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -2101,6 +2101,11 @@ declare namespace chrome {
2101
2101
  */
2102
2102
  export type SortDirectionType = "unsorted" | "ascending" | "descending" | "other";
2103
2103
 
2104
+ /**
2105
+ * A type of AutomationPosition.
2106
+ */
2107
+ export type PositionType = "null" | "text" | "tree";
2108
+
2104
2109
  export interface Rect {
2105
2110
 
2106
2111
  left: number;
@@ -3463,6 +3468,8 @@ declare namespace chrome {
3463
3468
  */
3464
3469
  createPosition(
3465
3470
 
3471
+ type: PositionType,
3472
+
3466
3473
  offset: number,
3467
3474
 
3468
3475
  isUpstream?: boolean,
@@ -17388,6 +17395,63 @@ declare namespace chrome {
17388
17395
  },
17389
17396
  ) => void>;
17390
17397
 
17398
+ /**
17399
+ * Set the current composition. If this extension does not own the active IME, this fails.
17400
+ *
17401
+ * @chrome-returns-extra since Pending
17402
+ */
17403
+ export function setComposition(
17404
+
17405
+ parameters: {
17406
+
17407
+ /**
17408
+ * ID of the context where the composition text will be set
17409
+ */
17410
+ contextID: number,
17411
+
17412
+ /**
17413
+ * Text to set
17414
+ */
17415
+ text: string,
17416
+
17417
+ /**
17418
+ * Position in the text that the selection starts at.
17419
+ */
17420
+ selectionStart?: number,
17421
+
17422
+ /**
17423
+ * Position in the text that the selection ends at.
17424
+ */
17425
+ selectionEnd?: number,
17426
+
17427
+ /**
17428
+ * Position in the text of the cursor.
17429
+ */
17430
+ cursor: number,
17431
+
17432
+ /**
17433
+ * List of segments and their associated types.
17434
+ */
17435
+ segments?: {
17436
+
17437
+ /**
17438
+ * Index of the character to start this segment at
17439
+ */
17440
+ start: number,
17441
+
17442
+ /**
17443
+ * Index of the character to end this segment after.
17444
+ */
17445
+ end: number,
17446
+
17447
+ /**
17448
+ * The type of the underline to modify this segment.
17449
+ */
17450
+ style: UnderlineStyle,
17451
+ }[],
17452
+ },
17453
+ ): Promise<boolean>;
17454
+
17391
17455
  /**
17392
17456
  * Set the current composition. If this extension does not own the active IME, this fails.
17393
17457
  *
@@ -17449,6 +17513,22 @@ declare namespace chrome {
17449
17513
  ) => void,
17450
17514
  ): void;
17451
17515
 
17516
+ /**
17517
+ * Clear the current composition. If this extension does not own the active IME, this fails.
17518
+ *
17519
+ * @chrome-returns-extra since Pending
17520
+ */
17521
+ export function clearComposition(
17522
+
17523
+ parameters: {
17524
+
17525
+ /**
17526
+ * ID of the context where the composition will be cleared
17527
+ */
17528
+ contextID: number,
17529
+ },
17530
+ ): Promise<boolean>;
17531
+
17452
17532
  /**
17453
17533
  * Clear the current composition. If this extension does not own the active IME, this fails.
17454
17534
  *
@@ -17469,6 +17549,27 @@ declare namespace chrome {
17469
17549
  ) => void,
17470
17550
  ): void;
17471
17551
 
17552
+ /**
17553
+ * Commits the provided text to the current input.
17554
+ *
17555
+ * @chrome-returns-extra since Pending
17556
+ */
17557
+ export function commitText(
17558
+
17559
+ parameters: {
17560
+
17561
+ /**
17562
+ * ID of the context where the text will be committed
17563
+ */
17564
+ contextID: number,
17565
+
17566
+ /**
17567
+ * The text to commit
17568
+ */
17569
+ text: string,
17570
+ },
17571
+ ): Promise<boolean>;
17572
+
17472
17573
  /**
17473
17574
  * Commits the provided text to the current input.
17474
17575
  *
@@ -17494,6 +17595,27 @@ declare namespace chrome {
17494
17595
  ) => void,
17495
17596
  ): void;
17496
17597
 
17598
+ /**
17599
+ * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
17600
+ *
17601
+ * @chrome-returns-extra since Pending
17602
+ */
17603
+ export function sendKeyEvents(
17604
+
17605
+ parameters: {
17606
+
17607
+ /**
17608
+ * ID of the context where the key events will be sent, or zero to send key events to non-input field.
17609
+ */
17610
+ contextID: number,
17611
+
17612
+ /**
17613
+ * Data on the key event.
17614
+ */
17615
+ keyData: KeyboardEvent[],
17616
+ },
17617
+ ): Promise<void>;
17618
+
17497
17619
  /**
17498
17620
  * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
17499
17621
  *
@@ -17522,6 +17644,74 @@ declare namespace chrome {
17522
17644
  */
17523
17645
  export function hideInputView(): void;
17524
17646
 
17647
+ /**
17648
+ * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
17649
+ *
17650
+ * @chrome-returns-extra since Pending
17651
+ */
17652
+ export function setCandidateWindowProperties(
17653
+
17654
+ parameters: {
17655
+
17656
+ /**
17657
+ * ID of the engine to set properties on.
17658
+ */
17659
+ engineID: string,
17660
+
17661
+ properties: {
17662
+
17663
+ /**
17664
+ * True to show the Candidate window, false to hide it.
17665
+ */
17666
+ visible?: boolean,
17667
+
17668
+ /**
17669
+ * True to show the cursor, false to hide it.
17670
+ */
17671
+ cursorVisible?: boolean,
17672
+
17673
+ /**
17674
+ * True if the candidate window should be rendered vertical, false to make it horizontal.
17675
+ */
17676
+ vertical?: boolean,
17677
+
17678
+ /**
17679
+ * The number of candidates to display per page.
17680
+ */
17681
+ pageSize?: number,
17682
+
17683
+ /**
17684
+ * Text that is shown at the bottom of the candidate window.
17685
+ */
17686
+ auxiliaryText?: string,
17687
+
17688
+ /**
17689
+ * True to display the auxiliary text, false to hide it.
17690
+ */
17691
+ auxiliaryTextVisible?: boolean,
17692
+
17693
+ /**
17694
+ * The total number of candidates for the candidate window.
17695
+ *
17696
+ * @since Chrome 84
17697
+ */
17698
+ totalCandidates?: number,
17699
+
17700
+ /**
17701
+ * The index of the current chosen candidate out of total candidates.
17702
+ *
17703
+ * @since Chrome 84
17704
+ */
17705
+ currentCandidateIndex?: number,
17706
+
17707
+ /**
17708
+ * Where to display the candidate window.
17709
+ */
17710
+ windowPosition?: WindowPosition,
17711
+ },
17712
+ },
17713
+ ): Promise<boolean>;
17714
+
17525
17715
  /**
17526
17716
  * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
17527
17717
  *
@@ -17594,6 +17784,69 @@ declare namespace chrome {
17594
17784
  ) => void,
17595
17785
  ): void;
17596
17786
 
17787
+ /**
17788
+ * Sets the current candidate list. This fails if this extension doesn't own the active IME
17789
+ *
17790
+ * @chrome-returns-extra since Pending
17791
+ */
17792
+ export function setCandidates(
17793
+
17794
+ parameters: {
17795
+
17796
+ /**
17797
+ * ID of the context that owns the candidate window.
17798
+ */
17799
+ contextID: number,
17800
+
17801
+ /**
17802
+ * List of candidates to show in the candidate window
17803
+ */
17804
+ candidates: {
17805
+
17806
+ /**
17807
+ * The candidate
17808
+ */
17809
+ candidate: string,
17810
+
17811
+ /**
17812
+ * The candidate's id
17813
+ */
17814
+ id: number,
17815
+
17816
+ /**
17817
+ * The id to add these candidates under
17818
+ */
17819
+ parentId?: number,
17820
+
17821
+ /**
17822
+ * Short string displayed to next to the candidate, often the shortcut key or index
17823
+ */
17824
+ label?: string,
17825
+
17826
+ /**
17827
+ * Additional text describing the candidate
17828
+ */
17829
+ annotation?: string,
17830
+
17831
+ /**
17832
+ * The usage or detail description of word.
17833
+ */
17834
+ usage?: {
17835
+
17836
+ /**
17837
+ * The title string of details description.
17838
+ */
17839
+ title: string,
17840
+
17841
+ /**
17842
+ * The body string of detail description.
17843
+ */
17844
+ body: string,
17845
+ },
17846
+ }[],
17847
+ },
17848
+ ): Promise<boolean>;
17849
+
17597
17850
  /**
17598
17851
  * Sets the current candidate list. This fails if this extension doesn't own the active IME
17599
17852
  *
@@ -17661,6 +17914,27 @@ declare namespace chrome {
17661
17914
  ) => void,
17662
17915
  ): void;
17663
17916
 
17917
+ /**
17918
+ * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
17919
+ *
17920
+ * @chrome-returns-extra since Pending
17921
+ */
17922
+ export function setCursorPosition(
17923
+
17924
+ parameters: {
17925
+
17926
+ /**
17927
+ * ID of the context that owns the candidate window.
17928
+ */
17929
+ contextID: number,
17930
+
17931
+ /**
17932
+ * ID of the candidate to select.
17933
+ */
17934
+ candidateID: number,
17935
+ },
17936
+ ): Promise<boolean>;
17937
+
17664
17938
  /**
17665
17939
  * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
17666
17940
  *
@@ -17686,6 +17960,28 @@ declare namespace chrome {
17686
17960
  ) => void,
17687
17961
  ): void;
17688
17962
 
17963
+ /**
17964
+ * Shows/Hides an assistive window with the given properties.
17965
+ *
17966
+ * @chrome-returns-extra since Pending
17967
+ * @since Chrome 85
17968
+ */
17969
+ export function setAssistiveWindowProperties(
17970
+
17971
+ parameters: {
17972
+
17973
+ /**
17974
+ * ID of the context owning the assistive window.
17975
+ */
17976
+ contextID: number,
17977
+
17978
+ /**
17979
+ * Properties of the assistive window.
17980
+ */
17981
+ properties: AssistiveWindowProperties,
17982
+ },
17983
+ ): Promise<boolean>;
17984
+
17689
17985
  /**
17690
17986
  * Shows/Hides an assistive window with the given properties.
17691
17987
  *
@@ -17712,6 +18008,43 @@ declare namespace chrome {
17712
18008
  ) => void,
17713
18009
  ): void;
17714
18010
 
18011
+ /**
18012
+ * Highlights/Unhighlights a button in an assistive window.
18013
+ *
18014
+ * @chrome-returns-extra since Pending
18015
+ * @since Chrome 86
18016
+ */
18017
+ export function setAssistiveWindowButtonHighlighted(
18018
+
18019
+ parameters: {
18020
+
18021
+ /**
18022
+ * ID of the context owning the assistive window.
18023
+ */
18024
+ contextID: number,
18025
+
18026
+ /**
18027
+ * The ID of the button
18028
+ */
18029
+ buttonID: AssistiveWindowButton,
18030
+
18031
+ /**
18032
+ * The window type the button belongs to.
18033
+ */
18034
+ windowType: AssistiveWindowType,
18035
+
18036
+ /**
18037
+ * The text for the screenreader to announce.
18038
+ */
18039
+ announceString?: string,
18040
+
18041
+ /**
18042
+ * Whether the button should be highlighted.
18043
+ */
18044
+ highlighted: boolean,
18045
+ },
18046
+ ): Promise<void>;
18047
+
17715
18048
  /**
17716
18049
  * Highlights/Unhighlights a button in an assistive window.
17717
18050
  *
@@ -17751,6 +18084,16 @@ declare namespace chrome {
17751
18084
  callback?: () => void,
17752
18085
  ): void;
17753
18086
 
18087
+ /**
18088
+ * Adds the provided menu items to the language menu when this IME is active.
18089
+ *
18090
+ * @chrome-returns-extra since Pending
18091
+ */
18092
+ export function setMenuItems(
18093
+
18094
+ parameters: MenuParameters,
18095
+ ): Promise<void>;
18096
+
17754
18097
  /**
17755
18098
  * Adds the provided menu items to the language menu when this IME is active.
17756
18099
  */
@@ -17761,6 +18104,16 @@ declare namespace chrome {
17761
18104
  callback?: () => void,
17762
18105
  ): void;
17763
18106
 
18107
+ /**
18108
+ * Updates the state of the MenuItems specified
18109
+ *
18110
+ * @chrome-returns-extra since Pending
18111
+ */
18112
+ export function updateMenuItems(
18113
+
18114
+ parameters: MenuParameters,
18115
+ ): Promise<void>;
18116
+
17764
18117
  /**
17765
18118
  * Updates the state of the MenuItems specified
17766
18119
  *
@@ -17773,6 +18126,37 @@ declare namespace chrome {
17773
18126
  callback?: () => void,
17774
18127
  ): void;
17775
18128
 
18129
+ /**
18130
+ * Deletes the text around the caret.
18131
+ *
18132
+ * @chrome-returns-extra since Pending
18133
+ */
18134
+ export function deleteSurroundingText(
18135
+
18136
+ parameters: {
18137
+
18138
+ /**
18139
+ * ID of the engine receiving the event.
18140
+ */
18141
+ engineID: string,
18142
+
18143
+ /**
18144
+ * ID of the context where the surrounding text will be deleted.
18145
+ */
18146
+ contextID: number,
18147
+
18148
+ /**
18149
+ * The offset from the caret position where deletion will start. This value can be negative.
18150
+ */
18151
+ offset: number,
18152
+
18153
+ /**
18154
+ * The number of characters to be deleted
18155
+ */
18156
+ length: number,
18157
+ },
18158
+ ): Promise<void>;
18159
+
17776
18160
  /**
17777
18161
  * Deletes the text around the caret.
17778
18162
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sat Jan 14 2023 22:29:32 GMT+0000 (Coordinated Universal Time)
18
- // Built at b966f8180ede3753691c56b476f278f1c5afcdfd
17
+ // Generated on Thu Jan 19 2023 22:30:01 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 264375da24bfa534433b1f5b573ba161dd31c98d
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -1351,6 +1351,11 @@ declare namespace chrome {
1351
1351
  */
1352
1352
  export type SortDirectionType = "unsorted" | "ascending" | "descending" | "other";
1353
1353
 
1354
+ /**
1355
+ * A type of AutomationPosition.
1356
+ */
1357
+ export type PositionType = "null" | "text" | "tree";
1358
+
1354
1359
  export interface Rect {
1355
1360
 
1356
1361
  left: number;
@@ -2713,6 +2718,8 @@ declare namespace chrome {
2713
2718
  */
2714
2719
  createPosition(
2715
2720
 
2721
+ type: PositionType,
2722
+
2716
2723
  offset: number,
2717
2724
 
2718
2725
  isUpstream?: boolean,
@@ -12949,6 +12956,63 @@ declare namespace chrome {
12949
12956
  },
12950
12957
  ) => void>;
12951
12958
 
12959
+ /**
12960
+ * Set the current composition. If this extension does not own the active IME, this fails.
12961
+ *
12962
+ * @chrome-returns-extra since Pending
12963
+ */
12964
+ export function setComposition(
12965
+
12966
+ parameters: {
12967
+
12968
+ /**
12969
+ * ID of the context where the composition text will be set
12970
+ */
12971
+ contextID: number,
12972
+
12973
+ /**
12974
+ * Text to set
12975
+ */
12976
+ text: string,
12977
+
12978
+ /**
12979
+ * Position in the text that the selection starts at.
12980
+ */
12981
+ selectionStart?: number,
12982
+
12983
+ /**
12984
+ * Position in the text that the selection ends at.
12985
+ */
12986
+ selectionEnd?: number,
12987
+
12988
+ /**
12989
+ * Position in the text of the cursor.
12990
+ */
12991
+ cursor: number,
12992
+
12993
+ /**
12994
+ * List of segments and their associated types.
12995
+ */
12996
+ segments?: {
12997
+
12998
+ /**
12999
+ * Index of the character to start this segment at
13000
+ */
13001
+ start: number,
13002
+
13003
+ /**
13004
+ * Index of the character to end this segment after.
13005
+ */
13006
+ end: number,
13007
+
13008
+ /**
13009
+ * The type of the underline to modify this segment.
13010
+ */
13011
+ style: UnderlineStyle,
13012
+ }[],
13013
+ },
13014
+ ): Promise<boolean>;
13015
+
12952
13016
  /**
12953
13017
  * Set the current composition. If this extension does not own the active IME, this fails.
12954
13018
  *
@@ -13010,6 +13074,22 @@ declare namespace chrome {
13010
13074
  ) => void,
13011
13075
  ): void;
13012
13076
 
13077
+ /**
13078
+ * Clear the current composition. If this extension does not own the active IME, this fails.
13079
+ *
13080
+ * @chrome-returns-extra since Pending
13081
+ */
13082
+ export function clearComposition(
13083
+
13084
+ parameters: {
13085
+
13086
+ /**
13087
+ * ID of the context where the composition will be cleared
13088
+ */
13089
+ contextID: number,
13090
+ },
13091
+ ): Promise<boolean>;
13092
+
13013
13093
  /**
13014
13094
  * Clear the current composition. If this extension does not own the active IME, this fails.
13015
13095
  *
@@ -13030,6 +13110,27 @@ declare namespace chrome {
13030
13110
  ) => void,
13031
13111
  ): void;
13032
13112
 
13113
+ /**
13114
+ * Commits the provided text to the current input.
13115
+ *
13116
+ * @chrome-returns-extra since Pending
13117
+ */
13118
+ export function commitText(
13119
+
13120
+ parameters: {
13121
+
13122
+ /**
13123
+ * ID of the context where the text will be committed
13124
+ */
13125
+ contextID: number,
13126
+
13127
+ /**
13128
+ * The text to commit
13129
+ */
13130
+ text: string,
13131
+ },
13132
+ ): Promise<boolean>;
13133
+
13033
13134
  /**
13034
13135
  * Commits the provided text to the current input.
13035
13136
  *
@@ -13055,6 +13156,27 @@ declare namespace chrome {
13055
13156
  ) => void,
13056
13157
  ): void;
13057
13158
 
13159
+ /**
13160
+ * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
13161
+ *
13162
+ * @chrome-returns-extra since Pending
13163
+ */
13164
+ export function sendKeyEvents(
13165
+
13166
+ parameters: {
13167
+
13168
+ /**
13169
+ * ID of the context where the key events will be sent, or zero to send key events to non-input field.
13170
+ */
13171
+ contextID: number,
13172
+
13173
+ /**
13174
+ * Data on the key event.
13175
+ */
13176
+ keyData: KeyboardEvent[],
13177
+ },
13178
+ ): Promise<void>;
13179
+
13058
13180
  /**
13059
13181
  * Sends the key events. This function is expected to be used by virtual keyboards. When key(s) on a virtual keyboard is pressed by a user, this function is used to propagate that event to the system.
13060
13182
  *
@@ -13083,6 +13205,74 @@ declare namespace chrome {
13083
13205
  */
13084
13206
  export function hideInputView(): void;
13085
13207
 
13208
+ /**
13209
+ * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
13210
+ *
13211
+ * @chrome-returns-extra since Pending
13212
+ */
13213
+ export function setCandidateWindowProperties(
13214
+
13215
+ parameters: {
13216
+
13217
+ /**
13218
+ * ID of the engine to set properties on.
13219
+ */
13220
+ engineID: string,
13221
+
13222
+ properties: {
13223
+
13224
+ /**
13225
+ * True to show the Candidate window, false to hide it.
13226
+ */
13227
+ visible?: boolean,
13228
+
13229
+ /**
13230
+ * True to show the cursor, false to hide it.
13231
+ */
13232
+ cursorVisible?: boolean,
13233
+
13234
+ /**
13235
+ * True if the candidate window should be rendered vertical, false to make it horizontal.
13236
+ */
13237
+ vertical?: boolean,
13238
+
13239
+ /**
13240
+ * The number of candidates to display per page.
13241
+ */
13242
+ pageSize?: number,
13243
+
13244
+ /**
13245
+ * Text that is shown at the bottom of the candidate window.
13246
+ */
13247
+ auxiliaryText?: string,
13248
+
13249
+ /**
13250
+ * True to display the auxiliary text, false to hide it.
13251
+ */
13252
+ auxiliaryTextVisible?: boolean,
13253
+
13254
+ /**
13255
+ * The total number of candidates for the candidate window.
13256
+ *
13257
+ * @since Chrome 84
13258
+ */
13259
+ totalCandidates?: number,
13260
+
13261
+ /**
13262
+ * The index of the current chosen candidate out of total candidates.
13263
+ *
13264
+ * @since Chrome 84
13265
+ */
13266
+ currentCandidateIndex?: number,
13267
+
13268
+ /**
13269
+ * Where to display the candidate window.
13270
+ */
13271
+ windowPosition?: WindowPosition,
13272
+ },
13273
+ },
13274
+ ): Promise<boolean>;
13275
+
13086
13276
  /**
13087
13277
  * Sets the properties of the candidate window. This fails if the extension doesn't own the active IME
13088
13278
  *
@@ -13155,6 +13345,69 @@ declare namespace chrome {
13155
13345
  ) => void,
13156
13346
  ): void;
13157
13347
 
13348
+ /**
13349
+ * Sets the current candidate list. This fails if this extension doesn't own the active IME
13350
+ *
13351
+ * @chrome-returns-extra since Pending
13352
+ */
13353
+ export function setCandidates(
13354
+
13355
+ parameters: {
13356
+
13357
+ /**
13358
+ * ID of the context that owns the candidate window.
13359
+ */
13360
+ contextID: number,
13361
+
13362
+ /**
13363
+ * List of candidates to show in the candidate window
13364
+ */
13365
+ candidates: {
13366
+
13367
+ /**
13368
+ * The candidate
13369
+ */
13370
+ candidate: string,
13371
+
13372
+ /**
13373
+ * The candidate's id
13374
+ */
13375
+ id: number,
13376
+
13377
+ /**
13378
+ * The id to add these candidates under
13379
+ */
13380
+ parentId?: number,
13381
+
13382
+ /**
13383
+ * Short string displayed to next to the candidate, often the shortcut key or index
13384
+ */
13385
+ label?: string,
13386
+
13387
+ /**
13388
+ * Additional text describing the candidate
13389
+ */
13390
+ annotation?: string,
13391
+
13392
+ /**
13393
+ * The usage or detail description of word.
13394
+ */
13395
+ usage?: {
13396
+
13397
+ /**
13398
+ * The title string of details description.
13399
+ */
13400
+ title: string,
13401
+
13402
+ /**
13403
+ * The body string of detail description.
13404
+ */
13405
+ body: string,
13406
+ },
13407
+ }[],
13408
+ },
13409
+ ): Promise<boolean>;
13410
+
13158
13411
  /**
13159
13412
  * Sets the current candidate list. This fails if this extension doesn't own the active IME
13160
13413
  *
@@ -13222,6 +13475,27 @@ declare namespace chrome {
13222
13475
  ) => void,
13223
13476
  ): void;
13224
13477
 
13478
+ /**
13479
+ * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
13480
+ *
13481
+ * @chrome-returns-extra since Pending
13482
+ */
13483
+ export function setCursorPosition(
13484
+
13485
+ parameters: {
13486
+
13487
+ /**
13488
+ * ID of the context that owns the candidate window.
13489
+ */
13490
+ contextID: number,
13491
+
13492
+ /**
13493
+ * ID of the candidate to select.
13494
+ */
13495
+ candidateID: number,
13496
+ },
13497
+ ): Promise<boolean>;
13498
+
13225
13499
  /**
13226
13500
  * Set the position of the cursor in the candidate window. This is a no-op if this extension does not own the active IME.
13227
13501
  *
@@ -13247,6 +13521,28 @@ declare namespace chrome {
13247
13521
  ) => void,
13248
13522
  ): void;
13249
13523
 
13524
+ /**
13525
+ * Shows/Hides an assistive window with the given properties.
13526
+ *
13527
+ * @chrome-returns-extra since Pending
13528
+ * @since Chrome 85
13529
+ */
13530
+ export function setAssistiveWindowProperties(
13531
+
13532
+ parameters: {
13533
+
13534
+ /**
13535
+ * ID of the context owning the assistive window.
13536
+ */
13537
+ contextID: number,
13538
+
13539
+ /**
13540
+ * Properties of the assistive window.
13541
+ */
13542
+ properties: AssistiveWindowProperties,
13543
+ },
13544
+ ): Promise<boolean>;
13545
+
13250
13546
  /**
13251
13547
  * Shows/Hides an assistive window with the given properties.
13252
13548
  *
@@ -13273,6 +13569,43 @@ declare namespace chrome {
13273
13569
  ) => void,
13274
13570
  ): void;
13275
13571
 
13572
+ /**
13573
+ * Highlights/Unhighlights a button in an assistive window.
13574
+ *
13575
+ * @chrome-returns-extra since Pending
13576
+ * @since Chrome 86
13577
+ */
13578
+ export function setAssistiveWindowButtonHighlighted(
13579
+
13580
+ parameters: {
13581
+
13582
+ /**
13583
+ * ID of the context owning the assistive window.
13584
+ */
13585
+ contextID: number,
13586
+
13587
+ /**
13588
+ * The ID of the button
13589
+ */
13590
+ buttonID: AssistiveWindowButton,
13591
+
13592
+ /**
13593
+ * The window type the button belongs to.
13594
+ */
13595
+ windowType: AssistiveWindowType,
13596
+
13597
+ /**
13598
+ * The text for the screenreader to announce.
13599
+ */
13600
+ announceString?: string,
13601
+
13602
+ /**
13603
+ * Whether the button should be highlighted.
13604
+ */
13605
+ highlighted: boolean,
13606
+ },
13607
+ ): Promise<void>;
13608
+
13276
13609
  /**
13277
13610
  * Highlights/Unhighlights a button in an assistive window.
13278
13611
  *
@@ -13312,6 +13645,16 @@ declare namespace chrome {
13312
13645
  callback?: () => void,
13313
13646
  ): void;
13314
13647
 
13648
+ /**
13649
+ * Adds the provided menu items to the language menu when this IME is active.
13650
+ *
13651
+ * @chrome-returns-extra since Pending
13652
+ */
13653
+ export function setMenuItems(
13654
+
13655
+ parameters: MenuParameters,
13656
+ ): Promise<void>;
13657
+
13315
13658
  /**
13316
13659
  * Adds the provided menu items to the language menu when this IME is active.
13317
13660
  */
@@ -13322,6 +13665,16 @@ declare namespace chrome {
13322
13665
  callback?: () => void,
13323
13666
  ): void;
13324
13667
 
13668
+ /**
13669
+ * Updates the state of the MenuItems specified
13670
+ *
13671
+ * @chrome-returns-extra since Pending
13672
+ */
13673
+ export function updateMenuItems(
13674
+
13675
+ parameters: MenuParameters,
13676
+ ): Promise<void>;
13677
+
13325
13678
  /**
13326
13679
  * Updates the state of the MenuItems specified
13327
13680
  *
@@ -13334,6 +13687,37 @@ declare namespace chrome {
13334
13687
  callback?: () => void,
13335
13688
  ): void;
13336
13689
 
13690
+ /**
13691
+ * Deletes the text around the caret.
13692
+ *
13693
+ * @chrome-returns-extra since Pending
13694
+ */
13695
+ export function deleteSurroundingText(
13696
+
13697
+ parameters: {
13698
+
13699
+ /**
13700
+ * ID of the engine receiving the event.
13701
+ */
13702
+ engineID: string,
13703
+
13704
+ /**
13705
+ * ID of the context where the surrounding text will be deleted.
13706
+ */
13707
+ contextID: number,
13708
+
13709
+ /**
13710
+ * The offset from the caret position where deletion will start. This value can be negative.
13711
+ */
13712
+ offset: number,
13713
+
13714
+ /**
13715
+ * The number of characters to be deleted
13716
+ */
13717
+ length: number,
13718
+ },
13719
+ ): Promise<void>;
13720
+
13337
13721
  /**
13338
13722
  * Deletes the text around the caret.
13339
13723
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "6a838ae099c8a6e7"
8
+ "build-hash": "1f479c03b2c0b55d"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -16,5 +16,5 @@
16
16
  "url": "https://github.com/GoogleChrome/chrome-types/issues"
17
17
  },
18
18
  "homepage": "https://github.com/GoogleChrome/chrome-types",
19
- "version": "0.1.163"
19
+ "version": "0.1.164"
20
20
  }