github.com/primecitizens/pcz/std@v0.2.1/plat/js/webext/accessibilityprivate/apis_js_wasm.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  
     4  package accessibilityprivate
     5  
     6  import (
     7  	"github.com/primecitizens/pcz/std/core/abi"
     8  	"github.com/primecitizens/pcz/std/core/mark"
     9  	"github.com/primecitizens/pcz/std/ffi/js"
    10  	"github.com/primecitizens/pcz/std/plat/js/webext/accessibilityprivate/bindings"
    11  )
    12  
    13  type AcceleratorAction uint32
    14  
    15  const (
    16  	_ AcceleratorAction = iota
    17  
    18  	AcceleratorAction_FOCUS_PREVIOUS_PANE
    19  	AcceleratorAction_FOCUS_NEXT_PANE
    20  )
    21  
    22  func (AcceleratorAction) FromRef(str js.Ref) AcceleratorAction {
    23  	return AcceleratorAction(bindings.ConstOfAcceleratorAction(str))
    24  }
    25  
    26  func (x AcceleratorAction) String() (string, bool) {
    27  	switch x {
    28  	case AcceleratorAction_FOCUS_PREVIOUS_PANE:
    29  		return "focusPreviousPane", true
    30  	case AcceleratorAction_FOCUS_NEXT_PANE:
    31  		return "focusNextPane", true
    32  	default:
    33  		return "", false
    34  	}
    35  }
    36  
    37  type AccessibilityFeature uint32
    38  
    39  const (
    40  	_ AccessibilityFeature = iota
    41  
    42  	AccessibilityFeature_GOOGLE_TTS_LANGUAGE_PACKS
    43  	AccessibilityFeature_DICTATION_CONTEXT_CHECKING
    44  	AccessibilityFeature_CHROMEVOX_SETTINGS_MIGRATION
    45  	AccessibilityFeature_GAME_FACE_INTEGRATION
    46  	AccessibilityFeature_GOOGLE_TTS_HIGH_QUALITY_VOICES
    47  )
    48  
    49  func (AccessibilityFeature) FromRef(str js.Ref) AccessibilityFeature {
    50  	return AccessibilityFeature(bindings.ConstOfAccessibilityFeature(str))
    51  }
    52  
    53  func (x AccessibilityFeature) String() (string, bool) {
    54  	switch x {
    55  	case AccessibilityFeature_GOOGLE_TTS_LANGUAGE_PACKS:
    56  		return "googleTtsLanguagePacks", true
    57  	case AccessibilityFeature_DICTATION_CONTEXT_CHECKING:
    58  		return "dictationContextChecking", true
    59  	case AccessibilityFeature_CHROMEVOX_SETTINGS_MIGRATION:
    60  		return "chromevoxSettingsMigration", true
    61  	case AccessibilityFeature_GAME_FACE_INTEGRATION:
    62  		return "gameFaceIntegration", true
    63  	case AccessibilityFeature_GOOGLE_TTS_HIGH_QUALITY_VOICES:
    64  		return "googleTtsHighQualityVoices", true
    65  	default:
    66  		return "", false
    67  	}
    68  }
    69  
    70  type AlertInfo struct {
    71  	// Message is "AlertInfo.message"
    72  	//
    73  	// Required
    74  	Message js.String
    75  
    76  	FFI_USE bool
    77  }
    78  
    79  // FromRef calls UpdateFrom and returns a AlertInfo with all fields set.
    80  func (p AlertInfo) FromRef(ref js.Ref) AlertInfo {
    81  	p.UpdateFrom(ref)
    82  	return p
    83  }
    84  
    85  // New creates a new AlertInfo in the application heap.
    86  func (p AlertInfo) New() js.Ref {
    87  	return bindings.AlertInfoJSLoad(
    88  		js.Pointer(&p), js.True, 0,
    89  	)
    90  }
    91  
    92  // UpdateFrom copies value of all fields of the heap object to p.
    93  func (p *AlertInfo) UpdateFrom(ref js.Ref) {
    94  	bindings.AlertInfoJSStore(
    95  		js.Pointer(p), ref,
    96  	)
    97  }
    98  
    99  // Update writes all fields of the p to the heap object referenced by ref.
   100  func (p *AlertInfo) Update(ref js.Ref) {
   101  	bindings.AlertInfoJSLoad(
   102  		js.Pointer(p), js.False, ref,
   103  	)
   104  }
   105  
   106  // FreeMembers frees fields with heap reference, if recursive is true
   107  // free all heap references reachable from p.
   108  func (p *AlertInfo) FreeMembers(recursive bool) {
   109  	js.Free(
   110  		p.Message.Ref(),
   111  	)
   112  	p.Message = p.Message.FromRef(js.Undefined)
   113  }
   114  
   115  type AssistiveTechnologyType uint32
   116  
   117  const (
   118  	_ AssistiveTechnologyType = iota
   119  
   120  	AssistiveTechnologyType_CHROME_VOX
   121  	AssistiveTechnologyType_SELECT_TO_SPEAK
   122  	AssistiveTechnologyType_SWITCH_ACCESS
   123  	AssistiveTechnologyType_AUTO_CLICK
   124  	AssistiveTechnologyType_MAGNIFIER
   125  	AssistiveTechnologyType_DICTATION
   126  )
   127  
   128  func (AssistiveTechnologyType) FromRef(str js.Ref) AssistiveTechnologyType {
   129  	return AssistiveTechnologyType(bindings.ConstOfAssistiveTechnologyType(str))
   130  }
   131  
   132  func (x AssistiveTechnologyType) String() (string, bool) {
   133  	switch x {
   134  	case AssistiveTechnologyType_CHROME_VOX:
   135  		return "chromeVox", true
   136  	case AssistiveTechnologyType_SELECT_TO_SPEAK:
   137  		return "selectToSpeak", true
   138  	case AssistiveTechnologyType_SWITCH_ACCESS:
   139  		return "switchAccess", true
   140  	case AssistiveTechnologyType_AUTO_CLICK:
   141  		return "autoClick", true
   142  	case AssistiveTechnologyType_MAGNIFIER:
   143  		return "magnifier", true
   144  	case AssistiveTechnologyType_DICTATION:
   145  		return "dictation", true
   146  	default:
   147  		return "", false
   148  	}
   149  }
   150  
   151  type DictationBubbleHintType uint32
   152  
   153  const (
   154  	_ DictationBubbleHintType = iota
   155  
   156  	DictationBubbleHintType_TRY_SAYING
   157  	DictationBubbleHintType_TYPE
   158  	DictationBubbleHintType_DELETE
   159  	DictationBubbleHintType_SELECT_ALL
   160  	DictationBubbleHintType_UNDO
   161  	DictationBubbleHintType_HELP
   162  	DictationBubbleHintType_UNSELECT
   163  	DictationBubbleHintType_COPY
   164  )
   165  
   166  func (DictationBubbleHintType) FromRef(str js.Ref) DictationBubbleHintType {
   167  	return DictationBubbleHintType(bindings.ConstOfDictationBubbleHintType(str))
   168  }
   169  
   170  func (x DictationBubbleHintType) String() (string, bool) {
   171  	switch x {
   172  	case DictationBubbleHintType_TRY_SAYING:
   173  		return "trySaying", true
   174  	case DictationBubbleHintType_TYPE:
   175  		return "type", true
   176  	case DictationBubbleHintType_DELETE:
   177  		return "delete", true
   178  	case DictationBubbleHintType_SELECT_ALL:
   179  		return "selectAll", true
   180  	case DictationBubbleHintType_UNDO:
   181  		return "undo", true
   182  	case DictationBubbleHintType_HELP:
   183  		return "help", true
   184  	case DictationBubbleHintType_UNSELECT:
   185  		return "unselect", true
   186  	case DictationBubbleHintType_COPY:
   187  		return "copy", true
   188  	default:
   189  		return "", false
   190  	}
   191  }
   192  
   193  type DictationBubbleIconType uint32
   194  
   195  const (
   196  	_ DictationBubbleIconType = iota
   197  
   198  	DictationBubbleIconType_HIDDEN
   199  	DictationBubbleIconType_STANDBY
   200  	DictationBubbleIconType_MACRO_SUCCESS
   201  	DictationBubbleIconType_MACRO_FAIL
   202  )
   203  
   204  func (DictationBubbleIconType) FromRef(str js.Ref) DictationBubbleIconType {
   205  	return DictationBubbleIconType(bindings.ConstOfDictationBubbleIconType(str))
   206  }
   207  
   208  func (x DictationBubbleIconType) String() (string, bool) {
   209  	switch x {
   210  	case DictationBubbleIconType_HIDDEN:
   211  		return "hidden", true
   212  	case DictationBubbleIconType_STANDBY:
   213  		return "standby", true
   214  	case DictationBubbleIconType_MACRO_SUCCESS:
   215  		return "macroSuccess", true
   216  	case DictationBubbleIconType_MACRO_FAIL:
   217  		return "macroFail", true
   218  	default:
   219  		return "", false
   220  	}
   221  }
   222  
   223  type DictationBubbleProperties struct {
   224  	// Hints is "DictationBubbleProperties.hints"
   225  	//
   226  	// Optional
   227  	Hints js.Array[DictationBubbleHintType]
   228  	// Icon is "DictationBubbleProperties.icon"
   229  	//
   230  	// Required
   231  	Icon DictationBubbleIconType
   232  	// Text is "DictationBubbleProperties.text"
   233  	//
   234  	// Optional
   235  	Text js.String
   236  	// Visible is "DictationBubbleProperties.visible"
   237  	//
   238  	// Required
   239  	Visible bool
   240  
   241  	FFI_USE bool
   242  }
   243  
   244  // FromRef calls UpdateFrom and returns a DictationBubbleProperties with all fields set.
   245  func (p DictationBubbleProperties) FromRef(ref js.Ref) DictationBubbleProperties {
   246  	p.UpdateFrom(ref)
   247  	return p
   248  }
   249  
   250  // New creates a new DictationBubbleProperties in the application heap.
   251  func (p DictationBubbleProperties) New() js.Ref {
   252  	return bindings.DictationBubblePropertiesJSLoad(
   253  		js.Pointer(&p), js.True, 0,
   254  	)
   255  }
   256  
   257  // UpdateFrom copies value of all fields of the heap object to p.
   258  func (p *DictationBubbleProperties) UpdateFrom(ref js.Ref) {
   259  	bindings.DictationBubblePropertiesJSStore(
   260  		js.Pointer(p), ref,
   261  	)
   262  }
   263  
   264  // Update writes all fields of the p to the heap object referenced by ref.
   265  func (p *DictationBubbleProperties) Update(ref js.Ref) {
   266  	bindings.DictationBubblePropertiesJSLoad(
   267  		js.Pointer(p), js.False, ref,
   268  	)
   269  }
   270  
   271  // FreeMembers frees fields with heap reference, if recursive is true
   272  // free all heap references reachable from p.
   273  func (p *DictationBubbleProperties) FreeMembers(recursive bool) {
   274  	js.Free(
   275  		p.Hints.Ref(),
   276  		p.Text.Ref(),
   277  	)
   278  	p.Hints = p.Hints.FromRef(js.Undefined)
   279  	p.Text = p.Text.FromRef(js.Undefined)
   280  }
   281  
   282  type DlcType uint32
   283  
   284  const (
   285  	_ DlcType = iota
   286  
   287  	DlcType_TTS_BN_BD
   288  	DlcType_TTS_CS_CZ
   289  	DlcType_TTS_DA_DK
   290  	DlcType_TTS_DE_DE
   291  	DlcType_TTS_EL_GR
   292  	DlcType_TTS_EN_AU
   293  	DlcType_TTS_EN_GB
   294  	DlcType_TTS_EN_US
   295  	DlcType_TTS_ES_ES
   296  	DlcType_TTS_ES_US
   297  	DlcType_TTS_FI_FI
   298  	DlcType_TTS_FIL_PH
   299  	DlcType_TTS_FR_FR
   300  	DlcType_TTS_HI_IN
   301  	DlcType_TTS_HU_HU
   302  	DlcType_TTS_ID_ID
   303  	DlcType_TTS_IT_IT
   304  	DlcType_TTS_JA_JP
   305  	DlcType_TTS_KM_KH
   306  	DlcType_TTS_KO_KR
   307  	DlcType_TTS_NB_NO
   308  	DlcType_TTS_NE_NP
   309  	DlcType_TTS_NL_NL
   310  	DlcType_TTS_PL_PL
   311  	DlcType_TTS_PT_BR
   312  	DlcType_TTS_SI_LK
   313  	DlcType_TTS_SK_SK
   314  	DlcType_TTS_SV_SE
   315  	DlcType_TTS_TH_TH
   316  	DlcType_TTS_TR_TR
   317  	DlcType_TTS_UK_UA
   318  	DlcType_TTS_VI_VN
   319  	DlcType_TTS_YUE_HK
   320  )
   321  
   322  func (DlcType) FromRef(str js.Ref) DlcType {
   323  	return DlcType(bindings.ConstOfDlcType(str))
   324  }
   325  
   326  func (x DlcType) String() (string, bool) {
   327  	switch x {
   328  	case DlcType_TTS_BN_BD:
   329  		return "ttsBnBd", true
   330  	case DlcType_TTS_CS_CZ:
   331  		return "ttsCsCz", true
   332  	case DlcType_TTS_DA_DK:
   333  		return "ttsDaDk", true
   334  	case DlcType_TTS_DE_DE:
   335  		return "ttsDeDe", true
   336  	case DlcType_TTS_EL_GR:
   337  		return "ttsElGr", true
   338  	case DlcType_TTS_EN_AU:
   339  		return "ttsEnAu", true
   340  	case DlcType_TTS_EN_GB:
   341  		return "ttsEnGb", true
   342  	case DlcType_TTS_EN_US:
   343  		return "ttsEnUs", true
   344  	case DlcType_TTS_ES_ES:
   345  		return "ttsEsEs", true
   346  	case DlcType_TTS_ES_US:
   347  		return "ttsEsUs", true
   348  	case DlcType_TTS_FI_FI:
   349  		return "ttsFiFi", true
   350  	case DlcType_TTS_FIL_PH:
   351  		return "ttsFilPh", true
   352  	case DlcType_TTS_FR_FR:
   353  		return "ttsFrFr", true
   354  	case DlcType_TTS_HI_IN:
   355  		return "ttsHiIn", true
   356  	case DlcType_TTS_HU_HU:
   357  		return "ttsHuHu", true
   358  	case DlcType_TTS_ID_ID:
   359  		return "ttsIdId", true
   360  	case DlcType_TTS_IT_IT:
   361  		return "ttsItIt", true
   362  	case DlcType_TTS_JA_JP:
   363  		return "ttsJaJp", true
   364  	case DlcType_TTS_KM_KH:
   365  		return "ttsKmKh", true
   366  	case DlcType_TTS_KO_KR:
   367  		return "ttsKoKr", true
   368  	case DlcType_TTS_NB_NO:
   369  		return "ttsNbNo", true
   370  	case DlcType_TTS_NE_NP:
   371  		return "ttsNeNp", true
   372  	case DlcType_TTS_NL_NL:
   373  		return "ttsNlNl", true
   374  	case DlcType_TTS_PL_PL:
   375  		return "ttsPlPl", true
   376  	case DlcType_TTS_PT_BR:
   377  		return "ttsPtBr", true
   378  	case DlcType_TTS_SI_LK:
   379  		return "ttsSiLk", true
   380  	case DlcType_TTS_SK_SK:
   381  		return "ttsSkSk", true
   382  	case DlcType_TTS_SV_SE:
   383  		return "ttsSvSe", true
   384  	case DlcType_TTS_TH_TH:
   385  		return "ttsThTh", true
   386  	case DlcType_TTS_TR_TR:
   387  		return "ttsTrTr", true
   388  	case DlcType_TTS_UK_UA:
   389  		return "ttsUkUa", true
   390  	case DlcType_TTS_VI_VN:
   391  		return "ttsViVn", true
   392  	case DlcType_TTS_YUE_HK:
   393  		return "ttsYueHk", true
   394  	default:
   395  		return "", false
   396  	}
   397  }
   398  
   399  type ScreenRect struct {
   400  	// Height is "ScreenRect.height"
   401  	//
   402  	// Required
   403  	Height int64
   404  	// Left is "ScreenRect.left"
   405  	//
   406  	// Required
   407  	Left int64
   408  	// Top is "ScreenRect.top"
   409  	//
   410  	// Required
   411  	Top int64
   412  	// Width is "ScreenRect.width"
   413  	//
   414  	// Required
   415  	Width int64
   416  
   417  	FFI_USE bool
   418  }
   419  
   420  // FromRef calls UpdateFrom and returns a ScreenRect with all fields set.
   421  func (p ScreenRect) FromRef(ref js.Ref) ScreenRect {
   422  	p.UpdateFrom(ref)
   423  	return p
   424  }
   425  
   426  // New creates a new ScreenRect in the application heap.
   427  func (p ScreenRect) New() js.Ref {
   428  	return bindings.ScreenRectJSLoad(
   429  		js.Pointer(&p), js.True, 0,
   430  	)
   431  }
   432  
   433  // UpdateFrom copies value of all fields of the heap object to p.
   434  func (p *ScreenRect) UpdateFrom(ref js.Ref) {
   435  	bindings.ScreenRectJSStore(
   436  		js.Pointer(p), ref,
   437  	)
   438  }
   439  
   440  // Update writes all fields of the p to the heap object referenced by ref.
   441  func (p *ScreenRect) Update(ref js.Ref) {
   442  	bindings.ScreenRectJSLoad(
   443  		js.Pointer(p), js.False, ref,
   444  	)
   445  }
   446  
   447  // FreeMembers frees fields with heap reference, if recursive is true
   448  // free all heap references reachable from p.
   449  func (p *ScreenRect) FreeMembers(recursive bool) {
   450  }
   451  
   452  type FocusRingStackingOrder uint32
   453  
   454  const (
   455  	_ FocusRingStackingOrder = iota
   456  
   457  	FocusRingStackingOrder_ABOVE_ACCESSIBILITY_BUBBLES
   458  	FocusRingStackingOrder_BELOW_ACCESSIBILITY_BUBBLES
   459  )
   460  
   461  func (FocusRingStackingOrder) FromRef(str js.Ref) FocusRingStackingOrder {
   462  	return FocusRingStackingOrder(bindings.ConstOfFocusRingStackingOrder(str))
   463  }
   464  
   465  func (x FocusRingStackingOrder) String() (string, bool) {
   466  	switch x {
   467  	case FocusRingStackingOrder_ABOVE_ACCESSIBILITY_BUBBLES:
   468  		return "aboveAccessibilityBubbles", true
   469  	case FocusRingStackingOrder_BELOW_ACCESSIBILITY_BUBBLES:
   470  		return "belowAccessibilityBubbles", true
   471  	default:
   472  		return "", false
   473  	}
   474  }
   475  
   476  type FocusType uint32
   477  
   478  const (
   479  	_ FocusType = iota
   480  
   481  	FocusType_GLOW
   482  	FocusType_SOLID
   483  	FocusType_DASHED
   484  )
   485  
   486  func (FocusType) FromRef(str js.Ref) FocusType {
   487  	return FocusType(bindings.ConstOfFocusType(str))
   488  }
   489  
   490  func (x FocusType) String() (string, bool) {
   491  	switch x {
   492  	case FocusType_GLOW:
   493  		return "glow", true
   494  	case FocusType_SOLID:
   495  		return "solid", true
   496  	case FocusType_DASHED:
   497  		return "dashed", true
   498  	default:
   499  		return "", false
   500  	}
   501  }
   502  
   503  type FocusRingInfo struct {
   504  	// BackgroundColor is "FocusRingInfo.backgroundColor"
   505  	//
   506  	// Optional
   507  	BackgroundColor js.String
   508  	// Color is "FocusRingInfo.color"
   509  	//
   510  	// Required
   511  	Color js.String
   512  	// Id is "FocusRingInfo.id"
   513  	//
   514  	// Optional
   515  	Id js.String
   516  	// Rects is "FocusRingInfo.rects"
   517  	//
   518  	// Required
   519  	Rects js.Array[ScreenRect]
   520  	// SecondaryColor is "FocusRingInfo.secondaryColor"
   521  	//
   522  	// Optional
   523  	SecondaryColor js.String
   524  	// StackingOrder is "FocusRingInfo.stackingOrder"
   525  	//
   526  	// Optional
   527  	StackingOrder FocusRingStackingOrder
   528  	// Type is "FocusRingInfo.type"
   529  	//
   530  	// Required
   531  	Type FocusType
   532  
   533  	FFI_USE bool
   534  }
   535  
   536  // FromRef calls UpdateFrom and returns a FocusRingInfo with all fields set.
   537  func (p FocusRingInfo) FromRef(ref js.Ref) FocusRingInfo {
   538  	p.UpdateFrom(ref)
   539  	return p
   540  }
   541  
   542  // New creates a new FocusRingInfo in the application heap.
   543  func (p FocusRingInfo) New() js.Ref {
   544  	return bindings.FocusRingInfoJSLoad(
   545  		js.Pointer(&p), js.True, 0,
   546  	)
   547  }
   548  
   549  // UpdateFrom copies value of all fields of the heap object to p.
   550  func (p *FocusRingInfo) UpdateFrom(ref js.Ref) {
   551  	bindings.FocusRingInfoJSStore(
   552  		js.Pointer(p), ref,
   553  	)
   554  }
   555  
   556  // Update writes all fields of the p to the heap object referenced by ref.
   557  func (p *FocusRingInfo) Update(ref js.Ref) {
   558  	bindings.FocusRingInfoJSLoad(
   559  		js.Pointer(p), js.False, ref,
   560  	)
   561  }
   562  
   563  // FreeMembers frees fields with heap reference, if recursive is true
   564  // free all heap references reachable from p.
   565  func (p *FocusRingInfo) FreeMembers(recursive bool) {
   566  	js.Free(
   567  		p.BackgroundColor.Ref(),
   568  		p.Color.Ref(),
   569  		p.Id.Ref(),
   570  		p.Rects.Ref(),
   571  		p.SecondaryColor.Ref(),
   572  	)
   573  	p.BackgroundColor = p.BackgroundColor.FromRef(js.Undefined)
   574  	p.Color = p.Color.FromRef(js.Undefined)
   575  	p.Id = p.Id.FromRef(js.Undefined)
   576  	p.Rects = p.Rects.FromRef(js.Undefined)
   577  	p.SecondaryColor = p.SecondaryColor.FromRef(js.Undefined)
   578  }
   579  
   580  type Gesture uint32
   581  
   582  const (
   583  	_ Gesture = iota
   584  
   585  	Gesture_CLICK
   586  	Gesture_SWIPE_LEFT1
   587  	Gesture_SWIPE_UP1
   588  	Gesture_SWIPE_RIGHT1
   589  	Gesture_SWIPE_DOWN1
   590  	Gesture_SWIPE_LEFT2
   591  	Gesture_SWIPE_UP2
   592  	Gesture_SWIPE_RIGHT2
   593  	Gesture_SWIPE_DOWN2
   594  	Gesture_SWIPE_LEFT3
   595  	Gesture_SWIPE_UP3
   596  	Gesture_SWIPE_RIGHT3
   597  	Gesture_SWIPE_DOWN3
   598  	Gesture_SWIPE_LEFT4
   599  	Gesture_SWIPE_UP4
   600  	Gesture_SWIPE_RIGHT4
   601  	Gesture_SWIPE_DOWN4
   602  	Gesture_TAP2
   603  	Gesture_TAP3
   604  	Gesture_TAP4
   605  	Gesture_TOUCH_EXPLORE
   606  )
   607  
   608  func (Gesture) FromRef(str js.Ref) Gesture {
   609  	return Gesture(bindings.ConstOfGesture(str))
   610  }
   611  
   612  func (x Gesture) String() (string, bool) {
   613  	switch x {
   614  	case Gesture_CLICK:
   615  		return "click", true
   616  	case Gesture_SWIPE_LEFT1:
   617  		return "swipeLeft1", true
   618  	case Gesture_SWIPE_UP1:
   619  		return "swipeUp1", true
   620  	case Gesture_SWIPE_RIGHT1:
   621  		return "swipeRight1", true
   622  	case Gesture_SWIPE_DOWN1:
   623  		return "swipeDown1", true
   624  	case Gesture_SWIPE_LEFT2:
   625  		return "swipeLeft2", true
   626  	case Gesture_SWIPE_UP2:
   627  		return "swipeUp2", true
   628  	case Gesture_SWIPE_RIGHT2:
   629  		return "swipeRight2", true
   630  	case Gesture_SWIPE_DOWN2:
   631  		return "swipeDown2", true
   632  	case Gesture_SWIPE_LEFT3:
   633  		return "swipeLeft3", true
   634  	case Gesture_SWIPE_UP3:
   635  		return "swipeUp3", true
   636  	case Gesture_SWIPE_RIGHT3:
   637  		return "swipeRight3", true
   638  	case Gesture_SWIPE_DOWN3:
   639  		return "swipeDown3", true
   640  	case Gesture_SWIPE_LEFT4:
   641  		return "swipeLeft4", true
   642  	case Gesture_SWIPE_UP4:
   643  		return "swipeUp4", true
   644  	case Gesture_SWIPE_RIGHT4:
   645  		return "swipeRight4", true
   646  	case Gesture_SWIPE_DOWN4:
   647  		return "swipeDown4", true
   648  	case Gesture_TAP2:
   649  		return "tap2", true
   650  	case Gesture_TAP3:
   651  		return "tap3", true
   652  	case Gesture_TAP4:
   653  		return "tap4", true
   654  	case Gesture_TOUCH_EXPLORE:
   655  		return "touchExplore", true
   656  	default:
   657  		return "", false
   658  	}
   659  }
   660  
   661  // IS_DEFAULT_EVENT_SOURCE_TOUCH returns the value of property "WEBEXT.accessibilityPrivate.IS_DEFAULT_EVENT_SOURCE_TOUCH".
   662  //
   663  // The returned bool will be false if there is no such property.
   664  func IS_DEFAULT_EVENT_SOURCE_TOUCH() (ret int64, ok bool) {
   665  	ok = js.True == bindings.GetIS_DEFAULT_EVENT_SOURCE_TOUCH(
   666  		js.Pointer(&ret),
   667  	)
   668  
   669  	return
   670  }
   671  
   672  // SetIS_DEFAULT_EVENT_SOURCE_TOUCH sets the value of property "WEBEXT.accessibilityPrivate.IS_DEFAULT_EVENT_SOURCE_TOUCH" to val.
   673  //
   674  // It returns false if the property cannot be set.
   675  func SetIS_DEFAULT_EVENT_SOURCE_TOUCH(val int64) bool {
   676  	return js.True == bindings.SetIS_DEFAULT_EVENT_SOURCE_TOUCH(
   677  		float64(val))
   678  }
   679  
   680  type MagnifierCommand uint32
   681  
   682  const (
   683  	_ MagnifierCommand = iota
   684  
   685  	MagnifierCommand_MOVE_STOP
   686  	MagnifierCommand_MOVE_UP
   687  	MagnifierCommand_MOVE_DOWN
   688  	MagnifierCommand_MOVE_LEFT
   689  	MagnifierCommand_MOVE_RIGHT
   690  )
   691  
   692  func (MagnifierCommand) FromRef(str js.Ref) MagnifierCommand {
   693  	return MagnifierCommand(bindings.ConstOfMagnifierCommand(str))
   694  }
   695  
   696  func (x MagnifierCommand) String() (string, bool) {
   697  	switch x {
   698  	case MagnifierCommand_MOVE_STOP:
   699  		return "moveStop", true
   700  	case MagnifierCommand_MOVE_UP:
   701  		return "moveUp", true
   702  	case MagnifierCommand_MOVE_DOWN:
   703  		return "moveDown", true
   704  	case MagnifierCommand_MOVE_LEFT:
   705  		return "moveLeft", true
   706  	case MagnifierCommand_MOVE_RIGHT:
   707  		return "moveRight", true
   708  	default:
   709  		return "", false
   710  	}
   711  }
   712  
   713  type PointScanPoint struct {
   714  	// X is "PointScanPoint.x"
   715  	//
   716  	// Required
   717  	X float64
   718  	// Y is "PointScanPoint.y"
   719  	//
   720  	// Required
   721  	Y float64
   722  
   723  	FFI_USE bool
   724  }
   725  
   726  // FromRef calls UpdateFrom and returns a PointScanPoint with all fields set.
   727  func (p PointScanPoint) FromRef(ref js.Ref) PointScanPoint {
   728  	p.UpdateFrom(ref)
   729  	return p
   730  }
   731  
   732  // New creates a new PointScanPoint in the application heap.
   733  func (p PointScanPoint) New() js.Ref {
   734  	return bindings.PointScanPointJSLoad(
   735  		js.Pointer(&p), js.True, 0,
   736  	)
   737  }
   738  
   739  // UpdateFrom copies value of all fields of the heap object to p.
   740  func (p *PointScanPoint) UpdateFrom(ref js.Ref) {
   741  	bindings.PointScanPointJSStore(
   742  		js.Pointer(p), ref,
   743  	)
   744  }
   745  
   746  // Update writes all fields of the p to the heap object referenced by ref.
   747  func (p *PointScanPoint) Update(ref js.Ref) {
   748  	bindings.PointScanPointJSLoad(
   749  		js.Pointer(p), js.False, ref,
   750  	)
   751  }
   752  
   753  // FreeMembers frees fields with heap reference, if recursive is true
   754  // free all heap references reachable from p.
   755  func (p *PointScanPoint) FreeMembers(recursive bool) {
   756  }
   757  
   758  type PointScanState uint32
   759  
   760  const (
   761  	_ PointScanState = iota
   762  
   763  	PointScanState_START
   764  	PointScanState_STOP
   765  )
   766  
   767  func (PointScanState) FromRef(str js.Ref) PointScanState {
   768  	return PointScanState(bindings.ConstOfPointScanState(str))
   769  }
   770  
   771  func (x PointScanState) String() (string, bool) {
   772  	switch x {
   773  	case PointScanState_START:
   774  		return "start", true
   775  	case PointScanState_STOP:
   776  		return "stop", true
   777  	default:
   778  		return "", false
   779  	}
   780  }
   781  
   782  type PumpkinData struct {
   783  	// DeDeActionConfigBinarypb is "PumpkinData.de_de_action_config_binarypb"
   784  	//
   785  	// Required
   786  	DeDeActionConfigBinarypb js.TypedArray[uint8]
   787  	// DeDePumpkinConfigBinarypb is "PumpkinData.de_de_pumpkin_config_binarypb"
   788  	//
   789  	// Required
   790  	DeDePumpkinConfigBinarypb js.TypedArray[uint8]
   791  	// EnUsActionConfigBinarypb is "PumpkinData.en_us_action_config_binarypb"
   792  	//
   793  	// Required
   794  	EnUsActionConfigBinarypb js.TypedArray[uint8]
   795  	// EnUsPumpkinConfigBinarypb is "PumpkinData.en_us_pumpkin_config_binarypb"
   796  	//
   797  	// Required
   798  	EnUsPumpkinConfigBinarypb js.TypedArray[uint8]
   799  	// EsEsActionConfigBinarypb is "PumpkinData.es_es_action_config_binarypb"
   800  	//
   801  	// Required
   802  	EsEsActionConfigBinarypb js.TypedArray[uint8]
   803  	// EsEsPumpkinConfigBinarypb is "PumpkinData.es_es_pumpkin_config_binarypb"
   804  	//
   805  	// Required
   806  	EsEsPumpkinConfigBinarypb js.TypedArray[uint8]
   807  	// FrFrActionConfigBinarypb is "PumpkinData.fr_fr_action_config_binarypb"
   808  	//
   809  	// Required
   810  	FrFrActionConfigBinarypb js.TypedArray[uint8]
   811  	// FrFrPumpkinConfigBinarypb is "PumpkinData.fr_fr_pumpkin_config_binarypb"
   812  	//
   813  	// Required
   814  	FrFrPumpkinConfigBinarypb js.TypedArray[uint8]
   815  	// ItItActionConfigBinarypb is "PumpkinData.it_it_action_config_binarypb"
   816  	//
   817  	// Required
   818  	ItItActionConfigBinarypb js.TypedArray[uint8]
   819  	// ItItPumpkinConfigBinarypb is "PumpkinData.it_it_pumpkin_config_binarypb"
   820  	//
   821  	// Required
   822  	ItItPumpkinConfigBinarypb js.TypedArray[uint8]
   823  	// JsPumpkinTaggerBinJs is "PumpkinData.js_pumpkin_tagger_bin_js"
   824  	//
   825  	// Required
   826  	JsPumpkinTaggerBinJs js.TypedArray[uint8]
   827  	// TaggerWasmMainJs is "PumpkinData.tagger_wasm_main_js"
   828  	//
   829  	// Required
   830  	TaggerWasmMainJs js.TypedArray[uint8]
   831  	// TaggerWasmMainWasm is "PumpkinData.tagger_wasm_main_wasm"
   832  	//
   833  	// Required
   834  	TaggerWasmMainWasm js.TypedArray[uint8]
   835  
   836  	FFI_USE bool
   837  }
   838  
   839  // FromRef calls UpdateFrom and returns a PumpkinData with all fields set.
   840  func (p PumpkinData) FromRef(ref js.Ref) PumpkinData {
   841  	p.UpdateFrom(ref)
   842  	return p
   843  }
   844  
   845  // New creates a new PumpkinData in the application heap.
   846  func (p PumpkinData) New() js.Ref {
   847  	return bindings.PumpkinDataJSLoad(
   848  		js.Pointer(&p), js.True, 0,
   849  	)
   850  }
   851  
   852  // UpdateFrom copies value of all fields of the heap object to p.
   853  func (p *PumpkinData) UpdateFrom(ref js.Ref) {
   854  	bindings.PumpkinDataJSStore(
   855  		js.Pointer(p), ref,
   856  	)
   857  }
   858  
   859  // Update writes all fields of the p to the heap object referenced by ref.
   860  func (p *PumpkinData) Update(ref js.Ref) {
   861  	bindings.PumpkinDataJSLoad(
   862  		js.Pointer(p), js.False, ref,
   863  	)
   864  }
   865  
   866  // FreeMembers frees fields with heap reference, if recursive is true
   867  // free all heap references reachable from p.
   868  func (p *PumpkinData) FreeMembers(recursive bool) {
   869  	js.Free(
   870  		p.DeDeActionConfigBinarypb.Ref(),
   871  		p.DeDePumpkinConfigBinarypb.Ref(),
   872  		p.EnUsActionConfigBinarypb.Ref(),
   873  		p.EnUsPumpkinConfigBinarypb.Ref(),
   874  		p.EsEsActionConfigBinarypb.Ref(),
   875  		p.EsEsPumpkinConfigBinarypb.Ref(),
   876  		p.FrFrActionConfigBinarypb.Ref(),
   877  		p.FrFrPumpkinConfigBinarypb.Ref(),
   878  		p.ItItActionConfigBinarypb.Ref(),
   879  		p.ItItPumpkinConfigBinarypb.Ref(),
   880  		p.JsPumpkinTaggerBinJs.Ref(),
   881  		p.TaggerWasmMainJs.Ref(),
   882  		p.TaggerWasmMainWasm.Ref(),
   883  	)
   884  	p.DeDeActionConfigBinarypb = p.DeDeActionConfigBinarypb.FromRef(js.Undefined)
   885  	p.DeDePumpkinConfigBinarypb = p.DeDePumpkinConfigBinarypb.FromRef(js.Undefined)
   886  	p.EnUsActionConfigBinarypb = p.EnUsActionConfigBinarypb.FromRef(js.Undefined)
   887  	p.EnUsPumpkinConfigBinarypb = p.EnUsPumpkinConfigBinarypb.FromRef(js.Undefined)
   888  	p.EsEsActionConfigBinarypb = p.EsEsActionConfigBinarypb.FromRef(js.Undefined)
   889  	p.EsEsPumpkinConfigBinarypb = p.EsEsPumpkinConfigBinarypb.FromRef(js.Undefined)
   890  	p.FrFrActionConfigBinarypb = p.FrFrActionConfigBinarypb.FromRef(js.Undefined)
   891  	p.FrFrPumpkinConfigBinarypb = p.FrFrPumpkinConfigBinarypb.FromRef(js.Undefined)
   892  	p.ItItActionConfigBinarypb = p.ItItActionConfigBinarypb.FromRef(js.Undefined)
   893  	p.ItItPumpkinConfigBinarypb = p.ItItPumpkinConfigBinarypb.FromRef(js.Undefined)
   894  	p.JsPumpkinTaggerBinJs = p.JsPumpkinTaggerBinJs.FromRef(js.Undefined)
   895  	p.TaggerWasmMainJs = p.TaggerWasmMainJs.FromRef(js.Undefined)
   896  	p.TaggerWasmMainWasm = p.TaggerWasmMainWasm.FromRef(js.Undefined)
   897  }
   898  
   899  type ScreenPoint struct {
   900  	// X is "ScreenPoint.x"
   901  	//
   902  	// Required
   903  	X int64
   904  	// Y is "ScreenPoint.y"
   905  	//
   906  	// Required
   907  	Y int64
   908  
   909  	FFI_USE bool
   910  }
   911  
   912  // FromRef calls UpdateFrom and returns a ScreenPoint with all fields set.
   913  func (p ScreenPoint) FromRef(ref js.Ref) ScreenPoint {
   914  	p.UpdateFrom(ref)
   915  	return p
   916  }
   917  
   918  // New creates a new ScreenPoint in the application heap.
   919  func (p ScreenPoint) New() js.Ref {
   920  	return bindings.ScreenPointJSLoad(
   921  		js.Pointer(&p), js.True, 0,
   922  	)
   923  }
   924  
   925  // UpdateFrom copies value of all fields of the heap object to p.
   926  func (p *ScreenPoint) UpdateFrom(ref js.Ref) {
   927  	bindings.ScreenPointJSStore(
   928  		js.Pointer(p), ref,
   929  	)
   930  }
   931  
   932  // Update writes all fields of the p to the heap object referenced by ref.
   933  func (p *ScreenPoint) Update(ref js.Ref) {
   934  	bindings.ScreenPointJSLoad(
   935  		js.Pointer(p), js.False, ref,
   936  	)
   937  }
   938  
   939  // FreeMembers frees fields with heap reference, if recursive is true
   940  // free all heap references reachable from p.
   941  func (p *ScreenPoint) FreeMembers(recursive bool) {
   942  }
   943  
   944  type SelectToSpeakPanelAction uint32
   945  
   946  const (
   947  	_ SelectToSpeakPanelAction = iota
   948  
   949  	SelectToSpeakPanelAction_PREVIOUS_PARAGRAPH
   950  	SelectToSpeakPanelAction_PREVIOUS_SENTENCE
   951  	SelectToSpeakPanelAction_PAUSE
   952  	SelectToSpeakPanelAction_RESUME
   953  	SelectToSpeakPanelAction_NEXT_SENTENCE
   954  	SelectToSpeakPanelAction_NEXT_PARAGRAPH
   955  	SelectToSpeakPanelAction_EXIT
   956  	SelectToSpeakPanelAction_CHANGE_SPEED
   957  )
   958  
   959  func (SelectToSpeakPanelAction) FromRef(str js.Ref) SelectToSpeakPanelAction {
   960  	return SelectToSpeakPanelAction(bindings.ConstOfSelectToSpeakPanelAction(str))
   961  }
   962  
   963  func (x SelectToSpeakPanelAction) String() (string, bool) {
   964  	switch x {
   965  	case SelectToSpeakPanelAction_PREVIOUS_PARAGRAPH:
   966  		return "previousParagraph", true
   967  	case SelectToSpeakPanelAction_PREVIOUS_SENTENCE:
   968  		return "previousSentence", true
   969  	case SelectToSpeakPanelAction_PAUSE:
   970  		return "pause", true
   971  	case SelectToSpeakPanelAction_RESUME:
   972  		return "resume", true
   973  	case SelectToSpeakPanelAction_NEXT_SENTENCE:
   974  		return "nextSentence", true
   975  	case SelectToSpeakPanelAction_NEXT_PARAGRAPH:
   976  		return "nextParagraph", true
   977  	case SelectToSpeakPanelAction_EXIT:
   978  		return "exit", true
   979  	case SelectToSpeakPanelAction_CHANGE_SPEED:
   980  		return "changeSpeed", true
   981  	default:
   982  		return "", false
   983  	}
   984  }
   985  
   986  type SelectToSpeakState uint32
   987  
   988  const (
   989  	_ SelectToSpeakState = iota
   990  
   991  	SelectToSpeakState_SELECTING
   992  	SelectToSpeakState_SPEAKING
   993  	SelectToSpeakState_INACTIVE
   994  )
   995  
   996  func (SelectToSpeakState) FromRef(str js.Ref) SelectToSpeakState {
   997  	return SelectToSpeakState(bindings.ConstOfSelectToSpeakState(str))
   998  }
   999  
  1000  func (x SelectToSpeakState) String() (string, bool) {
  1001  	switch x {
  1002  	case SelectToSpeakState_SELECTING:
  1003  		return "selecting", true
  1004  	case SelectToSpeakState_SPEAKING:
  1005  		return "speaking", true
  1006  	case SelectToSpeakState_INACTIVE:
  1007  		return "inactive", true
  1008  	default:
  1009  		return "", false
  1010  	}
  1011  }
  1012  
  1013  type SetNativeChromeVoxResponse uint32
  1014  
  1015  const (
  1016  	_ SetNativeChromeVoxResponse = iota
  1017  
  1018  	SetNativeChromeVoxResponse_SUCCESS
  1019  	SetNativeChromeVoxResponse_TALKBACK_NOT_INSTALLED
  1020  	SetNativeChromeVoxResponse_WINDOW_NOT_FOUND
  1021  	SetNativeChromeVoxResponse_FAILURE
  1022  	SetNativeChromeVoxResponse_NEED_DEPRECATION_CONFIRMATION
  1023  )
  1024  
  1025  func (SetNativeChromeVoxResponse) FromRef(str js.Ref) SetNativeChromeVoxResponse {
  1026  	return SetNativeChromeVoxResponse(bindings.ConstOfSetNativeChromeVoxResponse(str))
  1027  }
  1028  
  1029  func (x SetNativeChromeVoxResponse) String() (string, bool) {
  1030  	switch x {
  1031  	case SetNativeChromeVoxResponse_SUCCESS:
  1032  		return "success", true
  1033  	case SetNativeChromeVoxResponse_TALKBACK_NOT_INSTALLED:
  1034  		return "talkbackNotInstalled", true
  1035  	case SetNativeChromeVoxResponse_WINDOW_NOT_FOUND:
  1036  		return "windowNotFound", true
  1037  	case SetNativeChromeVoxResponse_FAILURE:
  1038  		return "failure", true
  1039  	case SetNativeChromeVoxResponse_NEED_DEPRECATION_CONFIRMATION:
  1040  		return "needDeprecationConfirmation", true
  1041  	default:
  1042  		return "", false
  1043  	}
  1044  }
  1045  
  1046  type SwitchAccessBubble uint32
  1047  
  1048  const (
  1049  	_ SwitchAccessBubble = iota
  1050  
  1051  	SwitchAccessBubble_BACK_BUTTON
  1052  	SwitchAccessBubble_MENU
  1053  )
  1054  
  1055  func (SwitchAccessBubble) FromRef(str js.Ref) SwitchAccessBubble {
  1056  	return SwitchAccessBubble(bindings.ConstOfSwitchAccessBubble(str))
  1057  }
  1058  
  1059  func (x SwitchAccessBubble) String() (string, bool) {
  1060  	switch x {
  1061  	case SwitchAccessBubble_BACK_BUTTON:
  1062  		return "backButton", true
  1063  	case SwitchAccessBubble_MENU:
  1064  		return "menu", true
  1065  	default:
  1066  		return "", false
  1067  	}
  1068  }
  1069  
  1070  type SwitchAccessCommand uint32
  1071  
  1072  const (
  1073  	_ SwitchAccessCommand = iota
  1074  
  1075  	SwitchAccessCommand_SELECT
  1076  	SwitchAccessCommand_NEXT
  1077  	SwitchAccessCommand_PREVIOUS
  1078  )
  1079  
  1080  func (SwitchAccessCommand) FromRef(str js.Ref) SwitchAccessCommand {
  1081  	return SwitchAccessCommand(bindings.ConstOfSwitchAccessCommand(str))
  1082  }
  1083  
  1084  func (x SwitchAccessCommand) String() (string, bool) {
  1085  	switch x {
  1086  	case SwitchAccessCommand_SELECT:
  1087  		return "select", true
  1088  	case SwitchAccessCommand_NEXT:
  1089  		return "next", true
  1090  	case SwitchAccessCommand_PREVIOUS:
  1091  		return "previous", true
  1092  	default:
  1093  		return "", false
  1094  	}
  1095  }
  1096  
  1097  type SwitchAccessMenuAction uint32
  1098  
  1099  const (
  1100  	_ SwitchAccessMenuAction = iota
  1101  
  1102  	SwitchAccessMenuAction_COPY
  1103  	SwitchAccessMenuAction_CUT
  1104  	SwitchAccessMenuAction_DECREMENT
  1105  	SwitchAccessMenuAction_DICTATION
  1106  	SwitchAccessMenuAction_END_TEXT_SELECTION
  1107  	SwitchAccessMenuAction_INCREMENT
  1108  	SwitchAccessMenuAction_ITEM_SCAN
  1109  	SwitchAccessMenuAction_JUMP_TO_BEGINNING_OF_TEXT
  1110  	SwitchAccessMenuAction_JUMP_TO_END_OF_TEXT
  1111  	SwitchAccessMenuAction_KEYBOARD
  1112  	SwitchAccessMenuAction_LEFT_CLICK
  1113  	SwitchAccessMenuAction_MOVE_BACKWARD_ONE_CHAR_OF_TEXT
  1114  	SwitchAccessMenuAction_MOVE_BACKWARD_ONE_WORD_OF_TEXT
  1115  	SwitchAccessMenuAction_MOVE_CURSOR
  1116  	SwitchAccessMenuAction_MOVE_DOWN_ONE_LINE_OF_TEXT
  1117  	SwitchAccessMenuAction_MOVE_FORWARD_ONE_CHAR_OF_TEXT
  1118  	SwitchAccessMenuAction_MOVE_FORWARD_ONE_WORD_OF_TEXT
  1119  	SwitchAccessMenuAction_MOVE_UP_ONE_LINE_OF_TEXT
  1120  	SwitchAccessMenuAction_PASTE
  1121  	SwitchAccessMenuAction_POINT_SCAN
  1122  	SwitchAccessMenuAction_RIGHT_CLICK
  1123  	SwitchAccessMenuAction_SCROLL_DOWN
  1124  	SwitchAccessMenuAction_SCROLL_LEFT
  1125  	SwitchAccessMenuAction_SCROLL_RIGHT
  1126  	SwitchAccessMenuAction_SCROLL_UP
  1127  	SwitchAccessMenuAction_SELECT
  1128  	SwitchAccessMenuAction_SETTINGS
  1129  	SwitchAccessMenuAction_START_TEXT_SELECTION
  1130  )
  1131  
  1132  func (SwitchAccessMenuAction) FromRef(str js.Ref) SwitchAccessMenuAction {
  1133  	return SwitchAccessMenuAction(bindings.ConstOfSwitchAccessMenuAction(str))
  1134  }
  1135  
  1136  func (x SwitchAccessMenuAction) String() (string, bool) {
  1137  	switch x {
  1138  	case SwitchAccessMenuAction_COPY:
  1139  		return "copy", true
  1140  	case SwitchAccessMenuAction_CUT:
  1141  		return "cut", true
  1142  	case SwitchAccessMenuAction_DECREMENT:
  1143  		return "decrement", true
  1144  	case SwitchAccessMenuAction_DICTATION:
  1145  		return "dictation", true
  1146  	case SwitchAccessMenuAction_END_TEXT_SELECTION:
  1147  		return "endTextSelection", true
  1148  	case SwitchAccessMenuAction_INCREMENT:
  1149  		return "increment", true
  1150  	case SwitchAccessMenuAction_ITEM_SCAN:
  1151  		return "itemScan", true
  1152  	case SwitchAccessMenuAction_JUMP_TO_BEGINNING_OF_TEXT:
  1153  		return "jumpToBeginningOfText", true
  1154  	case SwitchAccessMenuAction_JUMP_TO_END_OF_TEXT:
  1155  		return "jumpToEndOfText", true
  1156  	case SwitchAccessMenuAction_KEYBOARD:
  1157  		return "keyboard", true
  1158  	case SwitchAccessMenuAction_LEFT_CLICK:
  1159  		return "leftClick", true
  1160  	case SwitchAccessMenuAction_MOVE_BACKWARD_ONE_CHAR_OF_TEXT:
  1161  		return "moveBackwardOneCharOfText", true
  1162  	case SwitchAccessMenuAction_MOVE_BACKWARD_ONE_WORD_OF_TEXT:
  1163  		return "moveBackwardOneWordOfText", true
  1164  	case SwitchAccessMenuAction_MOVE_CURSOR:
  1165  		return "moveCursor", true
  1166  	case SwitchAccessMenuAction_MOVE_DOWN_ONE_LINE_OF_TEXT:
  1167  		return "moveDownOneLineOfText", true
  1168  	case SwitchAccessMenuAction_MOVE_FORWARD_ONE_CHAR_OF_TEXT:
  1169  		return "moveForwardOneCharOfText", true
  1170  	case SwitchAccessMenuAction_MOVE_FORWARD_ONE_WORD_OF_TEXT:
  1171  		return "moveForwardOneWordOfText", true
  1172  	case SwitchAccessMenuAction_MOVE_UP_ONE_LINE_OF_TEXT:
  1173  		return "moveUpOneLineOfText", true
  1174  	case SwitchAccessMenuAction_PASTE:
  1175  		return "paste", true
  1176  	case SwitchAccessMenuAction_POINT_SCAN:
  1177  		return "pointScan", true
  1178  	case SwitchAccessMenuAction_RIGHT_CLICK:
  1179  		return "rightClick", true
  1180  	case SwitchAccessMenuAction_SCROLL_DOWN:
  1181  		return "scrollDown", true
  1182  	case SwitchAccessMenuAction_SCROLL_LEFT:
  1183  		return "scrollLeft", true
  1184  	case SwitchAccessMenuAction_SCROLL_RIGHT:
  1185  		return "scrollRight", true
  1186  	case SwitchAccessMenuAction_SCROLL_UP:
  1187  		return "scrollUp", true
  1188  	case SwitchAccessMenuAction_SELECT:
  1189  		return "select", true
  1190  	case SwitchAccessMenuAction_SETTINGS:
  1191  		return "settings", true
  1192  	case SwitchAccessMenuAction_START_TEXT_SELECTION:
  1193  		return "startTextSelection", true
  1194  	default:
  1195  		return "", false
  1196  	}
  1197  }
  1198  
  1199  type SyntheticKeyboardModifiers struct {
  1200  	// Alt is "SyntheticKeyboardModifiers.alt"
  1201  	//
  1202  	// Optional
  1203  	//
  1204  	// NOTE: FFI_USE_Alt MUST be set to true to make this field effective.
  1205  	Alt bool
  1206  	// Ctrl is "SyntheticKeyboardModifiers.ctrl"
  1207  	//
  1208  	// Optional
  1209  	//
  1210  	// NOTE: FFI_USE_Ctrl MUST be set to true to make this field effective.
  1211  	Ctrl bool
  1212  	// Search is "SyntheticKeyboardModifiers.search"
  1213  	//
  1214  	// Optional
  1215  	//
  1216  	// NOTE: FFI_USE_Search MUST be set to true to make this field effective.
  1217  	Search bool
  1218  	// Shift is "SyntheticKeyboardModifiers.shift"
  1219  	//
  1220  	// Optional
  1221  	//
  1222  	// NOTE: FFI_USE_Shift MUST be set to true to make this field effective.
  1223  	Shift bool
  1224  
  1225  	FFI_USE_Alt    bool // for Alt.
  1226  	FFI_USE_Ctrl   bool // for Ctrl.
  1227  	FFI_USE_Search bool // for Search.
  1228  	FFI_USE_Shift  bool // for Shift.
  1229  
  1230  	FFI_USE bool
  1231  }
  1232  
  1233  // FromRef calls UpdateFrom and returns a SyntheticKeyboardModifiers with all fields set.
  1234  func (p SyntheticKeyboardModifiers) FromRef(ref js.Ref) SyntheticKeyboardModifiers {
  1235  	p.UpdateFrom(ref)
  1236  	return p
  1237  }
  1238  
  1239  // New creates a new SyntheticKeyboardModifiers in the application heap.
  1240  func (p SyntheticKeyboardModifiers) New() js.Ref {
  1241  	return bindings.SyntheticKeyboardModifiersJSLoad(
  1242  		js.Pointer(&p), js.True, 0,
  1243  	)
  1244  }
  1245  
  1246  // UpdateFrom copies value of all fields of the heap object to p.
  1247  func (p *SyntheticKeyboardModifiers) UpdateFrom(ref js.Ref) {
  1248  	bindings.SyntheticKeyboardModifiersJSStore(
  1249  		js.Pointer(p), ref,
  1250  	)
  1251  }
  1252  
  1253  // Update writes all fields of the p to the heap object referenced by ref.
  1254  func (p *SyntheticKeyboardModifiers) Update(ref js.Ref) {
  1255  	bindings.SyntheticKeyboardModifiersJSLoad(
  1256  		js.Pointer(p), js.False, ref,
  1257  	)
  1258  }
  1259  
  1260  // FreeMembers frees fields with heap reference, if recursive is true
  1261  // free all heap references reachable from p.
  1262  func (p *SyntheticKeyboardModifiers) FreeMembers(recursive bool) {
  1263  }
  1264  
  1265  type SyntheticKeyboardEventType uint32
  1266  
  1267  const (
  1268  	_ SyntheticKeyboardEventType = iota
  1269  
  1270  	SyntheticKeyboardEventType_KEYUP
  1271  	SyntheticKeyboardEventType_KEYDOWN
  1272  )
  1273  
  1274  func (SyntheticKeyboardEventType) FromRef(str js.Ref) SyntheticKeyboardEventType {
  1275  	return SyntheticKeyboardEventType(bindings.ConstOfSyntheticKeyboardEventType(str))
  1276  }
  1277  
  1278  func (x SyntheticKeyboardEventType) String() (string, bool) {
  1279  	switch x {
  1280  	case SyntheticKeyboardEventType_KEYUP:
  1281  		return "keyup", true
  1282  	case SyntheticKeyboardEventType_KEYDOWN:
  1283  		return "keydown", true
  1284  	default:
  1285  		return "", false
  1286  	}
  1287  }
  1288  
  1289  type SyntheticKeyboardEvent struct {
  1290  	// KeyCode is "SyntheticKeyboardEvent.keyCode"
  1291  	//
  1292  	// Required
  1293  	KeyCode int64
  1294  	// Modifiers is "SyntheticKeyboardEvent.modifiers"
  1295  	//
  1296  	// Optional
  1297  	//
  1298  	// NOTE: Modifiers.FFI_USE MUST be set to true to get Modifiers used.
  1299  	Modifiers SyntheticKeyboardModifiers
  1300  	// Type is "SyntheticKeyboardEvent.type"
  1301  	//
  1302  	// Required
  1303  	Type SyntheticKeyboardEventType
  1304  
  1305  	FFI_USE bool
  1306  }
  1307  
  1308  // FromRef calls UpdateFrom and returns a SyntheticKeyboardEvent with all fields set.
  1309  func (p SyntheticKeyboardEvent) FromRef(ref js.Ref) SyntheticKeyboardEvent {
  1310  	p.UpdateFrom(ref)
  1311  	return p
  1312  }
  1313  
  1314  // New creates a new SyntheticKeyboardEvent in the application heap.
  1315  func (p SyntheticKeyboardEvent) New() js.Ref {
  1316  	return bindings.SyntheticKeyboardEventJSLoad(
  1317  		js.Pointer(&p), js.True, 0,
  1318  	)
  1319  }
  1320  
  1321  // UpdateFrom copies value of all fields of the heap object to p.
  1322  func (p *SyntheticKeyboardEvent) UpdateFrom(ref js.Ref) {
  1323  	bindings.SyntheticKeyboardEventJSStore(
  1324  		js.Pointer(p), ref,
  1325  	)
  1326  }
  1327  
  1328  // Update writes all fields of the p to the heap object referenced by ref.
  1329  func (p *SyntheticKeyboardEvent) Update(ref js.Ref) {
  1330  	bindings.SyntheticKeyboardEventJSLoad(
  1331  		js.Pointer(p), js.False, ref,
  1332  	)
  1333  }
  1334  
  1335  // FreeMembers frees fields with heap reference, if recursive is true
  1336  // free all heap references reachable from p.
  1337  func (p *SyntheticKeyboardEvent) FreeMembers(recursive bool) {
  1338  	if recursive {
  1339  		p.Modifiers.FreeMembers(true)
  1340  	}
  1341  }
  1342  
  1343  type SyntheticMouseEventButton uint32
  1344  
  1345  const (
  1346  	_ SyntheticMouseEventButton = iota
  1347  
  1348  	SyntheticMouseEventButton_LEFT
  1349  	SyntheticMouseEventButton_MIDDLE
  1350  	SyntheticMouseEventButton_RIGHT
  1351  	SyntheticMouseEventButton_BACK
  1352  	SyntheticMouseEventButton_FOWARD
  1353  )
  1354  
  1355  func (SyntheticMouseEventButton) FromRef(str js.Ref) SyntheticMouseEventButton {
  1356  	return SyntheticMouseEventButton(bindings.ConstOfSyntheticMouseEventButton(str))
  1357  }
  1358  
  1359  func (x SyntheticMouseEventButton) String() (string, bool) {
  1360  	switch x {
  1361  	case SyntheticMouseEventButton_LEFT:
  1362  		return "left", true
  1363  	case SyntheticMouseEventButton_MIDDLE:
  1364  		return "middle", true
  1365  	case SyntheticMouseEventButton_RIGHT:
  1366  		return "right", true
  1367  	case SyntheticMouseEventButton_BACK:
  1368  		return "back", true
  1369  	case SyntheticMouseEventButton_FOWARD:
  1370  		return "foward", true
  1371  	default:
  1372  		return "", false
  1373  	}
  1374  }
  1375  
  1376  type SyntheticMouseEventType uint32
  1377  
  1378  const (
  1379  	_ SyntheticMouseEventType = iota
  1380  
  1381  	SyntheticMouseEventType_PRESS
  1382  	SyntheticMouseEventType_RELEASE
  1383  	SyntheticMouseEventType_DRAG
  1384  	SyntheticMouseEventType_MOVE
  1385  	SyntheticMouseEventType_ENTER
  1386  	SyntheticMouseEventType_EXIT
  1387  )
  1388  
  1389  func (SyntheticMouseEventType) FromRef(str js.Ref) SyntheticMouseEventType {
  1390  	return SyntheticMouseEventType(bindings.ConstOfSyntheticMouseEventType(str))
  1391  }
  1392  
  1393  func (x SyntheticMouseEventType) String() (string, bool) {
  1394  	switch x {
  1395  	case SyntheticMouseEventType_PRESS:
  1396  		return "press", true
  1397  	case SyntheticMouseEventType_RELEASE:
  1398  		return "release", true
  1399  	case SyntheticMouseEventType_DRAG:
  1400  		return "drag", true
  1401  	case SyntheticMouseEventType_MOVE:
  1402  		return "move", true
  1403  	case SyntheticMouseEventType_ENTER:
  1404  		return "enter", true
  1405  	case SyntheticMouseEventType_EXIT:
  1406  		return "exit", true
  1407  	default:
  1408  		return "", false
  1409  	}
  1410  }
  1411  
  1412  type SyntheticMouseEvent struct {
  1413  	// MouseButton is "SyntheticMouseEvent.mouseButton"
  1414  	//
  1415  	// Optional
  1416  	MouseButton SyntheticMouseEventButton
  1417  	// TouchAccessibility is "SyntheticMouseEvent.touchAccessibility"
  1418  	//
  1419  	// Optional
  1420  	//
  1421  	// NOTE: FFI_USE_TouchAccessibility MUST be set to true to make this field effective.
  1422  	TouchAccessibility bool
  1423  	// Type is "SyntheticMouseEvent.type"
  1424  	//
  1425  	// Required
  1426  	Type SyntheticMouseEventType
  1427  	// X is "SyntheticMouseEvent.x"
  1428  	//
  1429  	// Required
  1430  	X int64
  1431  	// Y is "SyntheticMouseEvent.y"
  1432  	//
  1433  	// Required
  1434  	Y int64
  1435  
  1436  	FFI_USE_TouchAccessibility bool // for TouchAccessibility.
  1437  
  1438  	FFI_USE bool
  1439  }
  1440  
  1441  // FromRef calls UpdateFrom and returns a SyntheticMouseEvent with all fields set.
  1442  func (p SyntheticMouseEvent) FromRef(ref js.Ref) SyntheticMouseEvent {
  1443  	p.UpdateFrom(ref)
  1444  	return p
  1445  }
  1446  
  1447  // New creates a new SyntheticMouseEvent in the application heap.
  1448  func (p SyntheticMouseEvent) New() js.Ref {
  1449  	return bindings.SyntheticMouseEventJSLoad(
  1450  		js.Pointer(&p), js.True, 0,
  1451  	)
  1452  }
  1453  
  1454  // UpdateFrom copies value of all fields of the heap object to p.
  1455  func (p *SyntheticMouseEvent) UpdateFrom(ref js.Ref) {
  1456  	bindings.SyntheticMouseEventJSStore(
  1457  		js.Pointer(p), ref,
  1458  	)
  1459  }
  1460  
  1461  // Update writes all fields of the p to the heap object referenced by ref.
  1462  func (p *SyntheticMouseEvent) Update(ref js.Ref) {
  1463  	bindings.SyntheticMouseEventJSLoad(
  1464  		js.Pointer(p), js.False, ref,
  1465  	)
  1466  }
  1467  
  1468  // FreeMembers frees fields with heap reference, if recursive is true
  1469  // free all heap references reachable from p.
  1470  func (p *SyntheticMouseEvent) FreeMembers(recursive bool) {
  1471  }
  1472  
  1473  type ToastType uint32
  1474  
  1475  const (
  1476  	_ ToastType = iota
  1477  
  1478  	ToastType_DICTATION_NO_FOCUSED_TEXT_FIELD
  1479  )
  1480  
  1481  func (ToastType) FromRef(str js.Ref) ToastType {
  1482  	return ToastType(bindings.ConstOfToastType(str))
  1483  }
  1484  
  1485  func (x ToastType) String() (string, bool) {
  1486  	switch x {
  1487  	case ToastType_DICTATION_NO_FOCUSED_TEXT_FIELD:
  1488  		return "dictationNoFocusedTextField", true
  1489  	default:
  1490  		return "", false
  1491  	}
  1492  }
  1493  
  1494  // HasFuncDarkenScreen returns true if the function "WEBEXT.accessibilityPrivate.darkenScreen" exists.
  1495  func HasFuncDarkenScreen() bool {
  1496  	return js.True == bindings.HasFuncDarkenScreen()
  1497  }
  1498  
  1499  // FuncDarkenScreen returns the function "WEBEXT.accessibilityPrivate.darkenScreen".
  1500  func FuncDarkenScreen() (fn js.Func[func(enabled bool)]) {
  1501  	bindings.FuncDarkenScreen(
  1502  		js.Pointer(&fn),
  1503  	)
  1504  	return
  1505  }
  1506  
  1507  // DarkenScreen calls the function "WEBEXT.accessibilityPrivate.darkenScreen" directly.
  1508  func DarkenScreen(enabled bool) (ret js.Void) {
  1509  	bindings.CallDarkenScreen(
  1510  		js.Pointer(&ret),
  1511  		js.Bool(bool(enabled)),
  1512  	)
  1513  
  1514  	return
  1515  }
  1516  
  1517  // TryDarkenScreen calls the function "WEBEXT.accessibilityPrivate.darkenScreen"
  1518  // in a try/catch block and returns (_, err, ok = false) when it went through
  1519  // the catch clause.
  1520  func TryDarkenScreen(enabled bool) (ret js.Void, exception js.Any, ok bool) {
  1521  	ok = js.True == bindings.TryDarkenScreen(
  1522  		js.Pointer(&ret), js.Pointer(&exception),
  1523  		js.Bool(bool(enabled)),
  1524  	)
  1525  
  1526  	return
  1527  }
  1528  
  1529  // HasFuncEnableMouseEvents returns true if the function "WEBEXT.accessibilityPrivate.enableMouseEvents" exists.
  1530  func HasFuncEnableMouseEvents() bool {
  1531  	return js.True == bindings.HasFuncEnableMouseEvents()
  1532  }
  1533  
  1534  // FuncEnableMouseEvents returns the function "WEBEXT.accessibilityPrivate.enableMouseEvents".
  1535  func FuncEnableMouseEvents() (fn js.Func[func(enabled bool)]) {
  1536  	bindings.FuncEnableMouseEvents(
  1537  		js.Pointer(&fn),
  1538  	)
  1539  	return
  1540  }
  1541  
  1542  // EnableMouseEvents calls the function "WEBEXT.accessibilityPrivate.enableMouseEvents" directly.
  1543  func EnableMouseEvents(enabled bool) (ret js.Void) {
  1544  	bindings.CallEnableMouseEvents(
  1545  		js.Pointer(&ret),
  1546  		js.Bool(bool(enabled)),
  1547  	)
  1548  
  1549  	return
  1550  }
  1551  
  1552  // TryEnableMouseEvents calls the function "WEBEXT.accessibilityPrivate.enableMouseEvents"
  1553  // in a try/catch block and returns (_, err, ok = false) when it went through
  1554  // the catch clause.
  1555  func TryEnableMouseEvents(enabled bool) (ret js.Void, exception js.Any, ok bool) {
  1556  	ok = js.True == bindings.TryEnableMouseEvents(
  1557  		js.Pointer(&ret), js.Pointer(&exception),
  1558  		js.Bool(bool(enabled)),
  1559  	)
  1560  
  1561  	return
  1562  }
  1563  
  1564  // HasFuncForwardKeyEventsToSwitchAccess returns true if the function "WEBEXT.accessibilityPrivate.forwardKeyEventsToSwitchAccess" exists.
  1565  func HasFuncForwardKeyEventsToSwitchAccess() bool {
  1566  	return js.True == bindings.HasFuncForwardKeyEventsToSwitchAccess()
  1567  }
  1568  
  1569  // FuncForwardKeyEventsToSwitchAccess returns the function "WEBEXT.accessibilityPrivate.forwardKeyEventsToSwitchAccess".
  1570  func FuncForwardKeyEventsToSwitchAccess() (fn js.Func[func(shouldForward bool)]) {
  1571  	bindings.FuncForwardKeyEventsToSwitchAccess(
  1572  		js.Pointer(&fn),
  1573  	)
  1574  	return
  1575  }
  1576  
  1577  // ForwardKeyEventsToSwitchAccess calls the function "WEBEXT.accessibilityPrivate.forwardKeyEventsToSwitchAccess" directly.
  1578  func ForwardKeyEventsToSwitchAccess(shouldForward bool) (ret js.Void) {
  1579  	bindings.CallForwardKeyEventsToSwitchAccess(
  1580  		js.Pointer(&ret),
  1581  		js.Bool(bool(shouldForward)),
  1582  	)
  1583  
  1584  	return
  1585  }
  1586  
  1587  // TryForwardKeyEventsToSwitchAccess calls the function "WEBEXT.accessibilityPrivate.forwardKeyEventsToSwitchAccess"
  1588  // in a try/catch block and returns (_, err, ok = false) when it went through
  1589  // the catch clause.
  1590  func TryForwardKeyEventsToSwitchAccess(shouldForward bool) (ret js.Void, exception js.Any, ok bool) {
  1591  	ok = js.True == bindings.TryForwardKeyEventsToSwitchAccess(
  1592  		js.Pointer(&ret), js.Pointer(&exception),
  1593  		js.Bool(bool(shouldForward)),
  1594  	)
  1595  
  1596  	return
  1597  }
  1598  
  1599  // HasFuncGetBatteryDescription returns true if the function "WEBEXT.accessibilityPrivate.getBatteryDescription" exists.
  1600  func HasFuncGetBatteryDescription() bool {
  1601  	return js.True == bindings.HasFuncGetBatteryDescription()
  1602  }
  1603  
  1604  // FuncGetBatteryDescription returns the function "WEBEXT.accessibilityPrivate.getBatteryDescription".
  1605  func FuncGetBatteryDescription() (fn js.Func[func() js.Promise[js.String]]) {
  1606  	bindings.FuncGetBatteryDescription(
  1607  		js.Pointer(&fn),
  1608  	)
  1609  	return
  1610  }
  1611  
  1612  // GetBatteryDescription calls the function "WEBEXT.accessibilityPrivate.getBatteryDescription" directly.
  1613  func GetBatteryDescription() (ret js.Promise[js.String]) {
  1614  	bindings.CallGetBatteryDescription(
  1615  		js.Pointer(&ret),
  1616  	)
  1617  
  1618  	return
  1619  }
  1620  
  1621  // TryGetBatteryDescription calls the function "WEBEXT.accessibilityPrivate.getBatteryDescription"
  1622  // in a try/catch block and returns (_, err, ok = false) when it went through
  1623  // the catch clause.
  1624  func TryGetBatteryDescription() (ret js.Promise[js.String], exception js.Any, ok bool) {
  1625  	ok = js.True == bindings.TryGetBatteryDescription(
  1626  		js.Pointer(&ret), js.Pointer(&exception),
  1627  	)
  1628  
  1629  	return
  1630  }
  1631  
  1632  // HasFuncGetDisplayNameForLocale returns true if the function "WEBEXT.accessibilityPrivate.getDisplayNameForLocale" exists.
  1633  func HasFuncGetDisplayNameForLocale() bool {
  1634  	return js.True == bindings.HasFuncGetDisplayNameForLocale()
  1635  }
  1636  
  1637  // FuncGetDisplayNameForLocale returns the function "WEBEXT.accessibilityPrivate.getDisplayNameForLocale".
  1638  func FuncGetDisplayNameForLocale() (fn js.Func[func(localeCodeToTranslate js.String, displayLocaleCode js.String) js.String]) {
  1639  	bindings.FuncGetDisplayNameForLocale(
  1640  		js.Pointer(&fn),
  1641  	)
  1642  	return
  1643  }
  1644  
  1645  // GetDisplayNameForLocale calls the function "WEBEXT.accessibilityPrivate.getDisplayNameForLocale" directly.
  1646  func GetDisplayNameForLocale(localeCodeToTranslate js.String, displayLocaleCode js.String) (ret js.String) {
  1647  	bindings.CallGetDisplayNameForLocale(
  1648  		js.Pointer(&ret),
  1649  		localeCodeToTranslate.Ref(),
  1650  		displayLocaleCode.Ref(),
  1651  	)
  1652  
  1653  	return
  1654  }
  1655  
  1656  // TryGetDisplayNameForLocale calls the function "WEBEXT.accessibilityPrivate.getDisplayNameForLocale"
  1657  // in a try/catch block and returns (_, err, ok = false) when it went through
  1658  // the catch clause.
  1659  func TryGetDisplayNameForLocale(localeCodeToTranslate js.String, displayLocaleCode js.String) (ret js.String, exception js.Any, ok bool) {
  1660  	ok = js.True == bindings.TryGetDisplayNameForLocale(
  1661  		js.Pointer(&ret), js.Pointer(&exception),
  1662  		localeCodeToTranslate.Ref(),
  1663  		displayLocaleCode.Ref(),
  1664  	)
  1665  
  1666  	return
  1667  }
  1668  
  1669  // HasFuncGetDlcContents returns true if the function "WEBEXT.accessibilityPrivate.getDlcContents" exists.
  1670  func HasFuncGetDlcContents() bool {
  1671  	return js.True == bindings.HasFuncGetDlcContents()
  1672  }
  1673  
  1674  // FuncGetDlcContents returns the function "WEBEXT.accessibilityPrivate.getDlcContents".
  1675  func FuncGetDlcContents() (fn js.Func[func(dlc DlcType) js.Promise[js.TypedArray[uint8]]]) {
  1676  	bindings.FuncGetDlcContents(
  1677  		js.Pointer(&fn),
  1678  	)
  1679  	return
  1680  }
  1681  
  1682  // GetDlcContents calls the function "WEBEXT.accessibilityPrivate.getDlcContents" directly.
  1683  func GetDlcContents(dlc DlcType) (ret js.Promise[js.TypedArray[uint8]]) {
  1684  	bindings.CallGetDlcContents(
  1685  		js.Pointer(&ret),
  1686  		uint32(dlc),
  1687  	)
  1688  
  1689  	return
  1690  }
  1691  
  1692  // TryGetDlcContents calls the function "WEBEXT.accessibilityPrivate.getDlcContents"
  1693  // in a try/catch block and returns (_, err, ok = false) when it went through
  1694  // the catch clause.
  1695  func TryGetDlcContents(dlc DlcType) (ret js.Promise[js.TypedArray[uint8]], exception js.Any, ok bool) {
  1696  	ok = js.True == bindings.TryGetDlcContents(
  1697  		js.Pointer(&ret), js.Pointer(&exception),
  1698  		uint32(dlc),
  1699  	)
  1700  
  1701  	return
  1702  }
  1703  
  1704  // HasFuncGetLocalizedDomKeyStringForKeyCode returns true if the function "WEBEXT.accessibilityPrivate.getLocalizedDomKeyStringForKeyCode" exists.
  1705  func HasFuncGetLocalizedDomKeyStringForKeyCode() bool {
  1706  	return js.True == bindings.HasFuncGetLocalizedDomKeyStringForKeyCode()
  1707  }
  1708  
  1709  // FuncGetLocalizedDomKeyStringForKeyCode returns the function "WEBEXT.accessibilityPrivate.getLocalizedDomKeyStringForKeyCode".
  1710  func FuncGetLocalizedDomKeyStringForKeyCode() (fn js.Func[func(keyCode int64) js.Promise[js.String]]) {
  1711  	bindings.FuncGetLocalizedDomKeyStringForKeyCode(
  1712  		js.Pointer(&fn),
  1713  	)
  1714  	return
  1715  }
  1716  
  1717  // GetLocalizedDomKeyStringForKeyCode calls the function "WEBEXT.accessibilityPrivate.getLocalizedDomKeyStringForKeyCode" directly.
  1718  func GetLocalizedDomKeyStringForKeyCode(keyCode int64) (ret js.Promise[js.String]) {
  1719  	bindings.CallGetLocalizedDomKeyStringForKeyCode(
  1720  		js.Pointer(&ret),
  1721  		float64(keyCode),
  1722  	)
  1723  
  1724  	return
  1725  }
  1726  
  1727  // TryGetLocalizedDomKeyStringForKeyCode calls the function "WEBEXT.accessibilityPrivate.getLocalizedDomKeyStringForKeyCode"
  1728  // in a try/catch block and returns (_, err, ok = false) when it went through
  1729  // the catch clause.
  1730  func TryGetLocalizedDomKeyStringForKeyCode(keyCode int64) (ret js.Promise[js.String], exception js.Any, ok bool) {
  1731  	ok = js.True == bindings.TryGetLocalizedDomKeyStringForKeyCode(
  1732  		js.Pointer(&ret), js.Pointer(&exception),
  1733  		float64(keyCode),
  1734  	)
  1735  
  1736  	return
  1737  }
  1738  
  1739  // HasFuncHandleScrollableBoundsForPointFound returns true if the function "WEBEXT.accessibilityPrivate.handleScrollableBoundsForPointFound" exists.
  1740  func HasFuncHandleScrollableBoundsForPointFound() bool {
  1741  	return js.True == bindings.HasFuncHandleScrollableBoundsForPointFound()
  1742  }
  1743  
  1744  // FuncHandleScrollableBoundsForPointFound returns the function "WEBEXT.accessibilityPrivate.handleScrollableBoundsForPointFound".
  1745  func FuncHandleScrollableBoundsForPointFound() (fn js.Func[func(rect ScreenRect)]) {
  1746  	bindings.FuncHandleScrollableBoundsForPointFound(
  1747  		js.Pointer(&fn),
  1748  	)
  1749  	return
  1750  }
  1751  
  1752  // HandleScrollableBoundsForPointFound calls the function "WEBEXT.accessibilityPrivate.handleScrollableBoundsForPointFound" directly.
  1753  func HandleScrollableBoundsForPointFound(rect ScreenRect) (ret js.Void) {
  1754  	bindings.CallHandleScrollableBoundsForPointFound(
  1755  		js.Pointer(&ret),
  1756  		js.Pointer(&rect),
  1757  	)
  1758  
  1759  	return
  1760  }
  1761  
  1762  // TryHandleScrollableBoundsForPointFound calls the function "WEBEXT.accessibilityPrivate.handleScrollableBoundsForPointFound"
  1763  // in a try/catch block and returns (_, err, ok = false) when it went through
  1764  // the catch clause.
  1765  func TryHandleScrollableBoundsForPointFound(rect ScreenRect) (ret js.Void, exception js.Any, ok bool) {
  1766  	ok = js.True == bindings.TryHandleScrollableBoundsForPointFound(
  1767  		js.Pointer(&ret), js.Pointer(&exception),
  1768  		js.Pointer(&rect),
  1769  	)
  1770  
  1771  	return
  1772  }
  1773  
  1774  // HasFuncInstallPumpkinForDictation returns true if the function "WEBEXT.accessibilityPrivate.installPumpkinForDictation" exists.
  1775  func HasFuncInstallPumpkinForDictation() bool {
  1776  	return js.True == bindings.HasFuncInstallPumpkinForDictation()
  1777  }
  1778  
  1779  // FuncInstallPumpkinForDictation returns the function "WEBEXT.accessibilityPrivate.installPumpkinForDictation".
  1780  func FuncInstallPumpkinForDictation() (fn js.Func[func() js.Promise[PumpkinData]]) {
  1781  	bindings.FuncInstallPumpkinForDictation(
  1782  		js.Pointer(&fn),
  1783  	)
  1784  	return
  1785  }
  1786  
  1787  // InstallPumpkinForDictation calls the function "WEBEXT.accessibilityPrivate.installPumpkinForDictation" directly.
  1788  func InstallPumpkinForDictation() (ret js.Promise[PumpkinData]) {
  1789  	bindings.CallInstallPumpkinForDictation(
  1790  		js.Pointer(&ret),
  1791  	)
  1792  
  1793  	return
  1794  }
  1795  
  1796  // TryInstallPumpkinForDictation calls the function "WEBEXT.accessibilityPrivate.installPumpkinForDictation"
  1797  // in a try/catch block and returns (_, err, ok = false) when it went through
  1798  // the catch clause.
  1799  func TryInstallPumpkinForDictation() (ret js.Promise[PumpkinData], exception js.Any, ok bool) {
  1800  	ok = js.True == bindings.TryInstallPumpkinForDictation(
  1801  		js.Pointer(&ret), js.Pointer(&exception),
  1802  	)
  1803  
  1804  	return
  1805  }
  1806  
  1807  // HasFuncIsFeatureEnabled returns true if the function "WEBEXT.accessibilityPrivate.isFeatureEnabled" exists.
  1808  func HasFuncIsFeatureEnabled() bool {
  1809  	return js.True == bindings.HasFuncIsFeatureEnabled()
  1810  }
  1811  
  1812  // FuncIsFeatureEnabled returns the function "WEBEXT.accessibilityPrivate.isFeatureEnabled".
  1813  func FuncIsFeatureEnabled() (fn js.Func[func(feature AccessibilityFeature) js.Promise[js.Boolean]]) {
  1814  	bindings.FuncIsFeatureEnabled(
  1815  		js.Pointer(&fn),
  1816  	)
  1817  	return
  1818  }
  1819  
  1820  // IsFeatureEnabled calls the function "WEBEXT.accessibilityPrivate.isFeatureEnabled" directly.
  1821  func IsFeatureEnabled(feature AccessibilityFeature) (ret js.Promise[js.Boolean]) {
  1822  	bindings.CallIsFeatureEnabled(
  1823  		js.Pointer(&ret),
  1824  		uint32(feature),
  1825  	)
  1826  
  1827  	return
  1828  }
  1829  
  1830  // TryIsFeatureEnabled calls the function "WEBEXT.accessibilityPrivate.isFeatureEnabled"
  1831  // in a try/catch block and returns (_, err, ok = false) when it went through
  1832  // the catch clause.
  1833  func TryIsFeatureEnabled(feature AccessibilityFeature) (ret js.Promise[js.Boolean], exception js.Any, ok bool) {
  1834  	ok = js.True == bindings.TryIsFeatureEnabled(
  1835  		js.Pointer(&ret), js.Pointer(&exception),
  1836  		uint32(feature),
  1837  	)
  1838  
  1839  	return
  1840  }
  1841  
  1842  // HasFuncIsLacrosPrimary returns true if the function "WEBEXT.accessibilityPrivate.isLacrosPrimary" exists.
  1843  func HasFuncIsLacrosPrimary() bool {
  1844  	return js.True == bindings.HasFuncIsLacrosPrimary()
  1845  }
  1846  
  1847  // FuncIsLacrosPrimary returns the function "WEBEXT.accessibilityPrivate.isLacrosPrimary".
  1848  func FuncIsLacrosPrimary() (fn js.Func[func() js.Promise[js.Boolean]]) {
  1849  	bindings.FuncIsLacrosPrimary(
  1850  		js.Pointer(&fn),
  1851  	)
  1852  	return
  1853  }
  1854  
  1855  // IsLacrosPrimary calls the function "WEBEXT.accessibilityPrivate.isLacrosPrimary" directly.
  1856  func IsLacrosPrimary() (ret js.Promise[js.Boolean]) {
  1857  	bindings.CallIsLacrosPrimary(
  1858  		js.Pointer(&ret),
  1859  	)
  1860  
  1861  	return
  1862  }
  1863  
  1864  // TryIsLacrosPrimary calls the function "WEBEXT.accessibilityPrivate.isLacrosPrimary"
  1865  // in a try/catch block and returns (_, err, ok = false) when it went through
  1866  // the catch clause.
  1867  func TryIsLacrosPrimary() (ret js.Promise[js.Boolean], exception js.Any, ok bool) {
  1868  	ok = js.True == bindings.TryIsLacrosPrimary(
  1869  		js.Pointer(&ret), js.Pointer(&exception),
  1870  	)
  1871  
  1872  	return
  1873  }
  1874  
  1875  // HasFuncMagnifierCenterOnPoint returns true if the function "WEBEXT.accessibilityPrivate.magnifierCenterOnPoint" exists.
  1876  func HasFuncMagnifierCenterOnPoint() bool {
  1877  	return js.True == bindings.HasFuncMagnifierCenterOnPoint()
  1878  }
  1879  
  1880  // FuncMagnifierCenterOnPoint returns the function "WEBEXT.accessibilityPrivate.magnifierCenterOnPoint".
  1881  func FuncMagnifierCenterOnPoint() (fn js.Func[func(point ScreenPoint)]) {
  1882  	bindings.FuncMagnifierCenterOnPoint(
  1883  		js.Pointer(&fn),
  1884  	)
  1885  	return
  1886  }
  1887  
  1888  // MagnifierCenterOnPoint calls the function "WEBEXT.accessibilityPrivate.magnifierCenterOnPoint" directly.
  1889  func MagnifierCenterOnPoint(point ScreenPoint) (ret js.Void) {
  1890  	bindings.CallMagnifierCenterOnPoint(
  1891  		js.Pointer(&ret),
  1892  		js.Pointer(&point),
  1893  	)
  1894  
  1895  	return
  1896  }
  1897  
  1898  // TryMagnifierCenterOnPoint calls the function "WEBEXT.accessibilityPrivate.magnifierCenterOnPoint"
  1899  // in a try/catch block and returns (_, err, ok = false) when it went through
  1900  // the catch clause.
  1901  func TryMagnifierCenterOnPoint(point ScreenPoint) (ret js.Void, exception js.Any, ok bool) {
  1902  	ok = js.True == bindings.TryMagnifierCenterOnPoint(
  1903  		js.Pointer(&ret), js.Pointer(&exception),
  1904  		js.Pointer(&point),
  1905  	)
  1906  
  1907  	return
  1908  }
  1909  
  1910  // HasFuncMoveMagnifierToRect returns true if the function "WEBEXT.accessibilityPrivate.moveMagnifierToRect" exists.
  1911  func HasFuncMoveMagnifierToRect() bool {
  1912  	return js.True == bindings.HasFuncMoveMagnifierToRect()
  1913  }
  1914  
  1915  // FuncMoveMagnifierToRect returns the function "WEBEXT.accessibilityPrivate.moveMagnifierToRect".
  1916  func FuncMoveMagnifierToRect() (fn js.Func[func(rect ScreenRect)]) {
  1917  	bindings.FuncMoveMagnifierToRect(
  1918  		js.Pointer(&fn),
  1919  	)
  1920  	return
  1921  }
  1922  
  1923  // MoveMagnifierToRect calls the function "WEBEXT.accessibilityPrivate.moveMagnifierToRect" directly.
  1924  func MoveMagnifierToRect(rect ScreenRect) (ret js.Void) {
  1925  	bindings.CallMoveMagnifierToRect(
  1926  		js.Pointer(&ret),
  1927  		js.Pointer(&rect),
  1928  	)
  1929  
  1930  	return
  1931  }
  1932  
  1933  // TryMoveMagnifierToRect calls the function "WEBEXT.accessibilityPrivate.moveMagnifierToRect"
  1934  // in a try/catch block and returns (_, err, ok = false) when it went through
  1935  // the catch clause.
  1936  func TryMoveMagnifierToRect(rect ScreenRect) (ret js.Void, exception js.Any, ok bool) {
  1937  	ok = js.True == bindings.TryMoveMagnifierToRect(
  1938  		js.Pointer(&ret), js.Pointer(&exception),
  1939  		js.Pointer(&rect),
  1940  	)
  1941  
  1942  	return
  1943  }
  1944  
  1945  type OnAccessibilityGestureEventCallbackFunc func(this js.Ref, gesture Gesture, x int64, y int64) js.Ref
  1946  
  1947  func (fn OnAccessibilityGestureEventCallbackFunc) Register() js.Func[func(gesture Gesture, x int64, y int64)] {
  1948  	return js.RegisterCallback[func(gesture Gesture, x int64, y int64)](
  1949  		fn, abi.FuncPCABIInternal(fn),
  1950  	)
  1951  }
  1952  
  1953  func (fn OnAccessibilityGestureEventCallbackFunc) DispatchCallback(
  1954  	targetPC uintptr, ctx *js.CallbackContext,
  1955  ) {
  1956  	args := ctx.Args()
  1957  	if len(args) != 3+1 /* js this */ ||
  1958  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  1959  		js.ThrowInvalidCallbackInvocation()
  1960  	}
  1961  
  1962  	if ctx.Return(fn(
  1963  		args[0],
  1964  
  1965  		Gesture(0).FromRef(args[0+1]),
  1966  		js.BigInt[int64]{}.FromRef(args[1+1]).Get(),
  1967  		js.BigInt[int64]{}.FromRef(args[2+1]).Get(),
  1968  	)) {
  1969  		return
  1970  	}
  1971  
  1972  	js.ThrowCallbackValueNotReturned()
  1973  }
  1974  
  1975  type OnAccessibilityGestureEventCallback[T any] struct {
  1976  	Fn  func(arg T, this js.Ref, gesture Gesture, x int64, y int64) js.Ref
  1977  	Arg T
  1978  }
  1979  
  1980  func (cb *OnAccessibilityGestureEventCallback[T]) Register() js.Func[func(gesture Gesture, x int64, y int64)] {
  1981  	return js.RegisterCallback[func(gesture Gesture, x int64, y int64)](
  1982  		cb, abi.FuncPCABIInternal(cb.Fn),
  1983  	)
  1984  }
  1985  
  1986  func (cb *OnAccessibilityGestureEventCallback[T]) DispatchCallback(
  1987  	targetPC uintptr, ctx *js.CallbackContext,
  1988  ) {
  1989  	args := ctx.Args()
  1990  	if len(args) != 3+1 /* js this */ ||
  1991  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  1992  		js.ThrowInvalidCallbackInvocation()
  1993  	}
  1994  
  1995  	if ctx.Return(cb.Fn(
  1996  		cb.Arg,
  1997  		args[0],
  1998  
  1999  		Gesture(0).FromRef(args[0+1]),
  2000  		js.BigInt[int64]{}.FromRef(args[1+1]).Get(),
  2001  		js.BigInt[int64]{}.FromRef(args[2+1]).Get(),
  2002  	)) {
  2003  		return
  2004  	}
  2005  
  2006  	js.ThrowCallbackValueNotReturned()
  2007  }
  2008  
  2009  // HasFuncOnAccessibilityGesture returns true if the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.addListener" exists.
  2010  func HasFuncOnAccessibilityGesture() bool {
  2011  	return js.True == bindings.HasFuncOnAccessibilityGesture()
  2012  }
  2013  
  2014  // FuncOnAccessibilityGesture returns the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.addListener".
  2015  func FuncOnAccessibilityGesture() (fn js.Func[func(callback js.Func[func(gesture Gesture, x int64, y int64)])]) {
  2016  	bindings.FuncOnAccessibilityGesture(
  2017  		js.Pointer(&fn),
  2018  	)
  2019  	return
  2020  }
  2021  
  2022  // OnAccessibilityGesture calls the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.addListener" directly.
  2023  func OnAccessibilityGesture(callback js.Func[func(gesture Gesture, x int64, y int64)]) (ret js.Void) {
  2024  	bindings.CallOnAccessibilityGesture(
  2025  		js.Pointer(&ret),
  2026  		callback.Ref(),
  2027  	)
  2028  
  2029  	return
  2030  }
  2031  
  2032  // TryOnAccessibilityGesture calls the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.addListener"
  2033  // in a try/catch block and returns (_, err, ok = false) when it went through
  2034  // the catch clause.
  2035  func TryOnAccessibilityGesture(callback js.Func[func(gesture Gesture, x int64, y int64)]) (ret js.Void, exception js.Any, ok bool) {
  2036  	ok = js.True == bindings.TryOnAccessibilityGesture(
  2037  		js.Pointer(&ret), js.Pointer(&exception),
  2038  		callback.Ref(),
  2039  	)
  2040  
  2041  	return
  2042  }
  2043  
  2044  // HasFuncOffAccessibilityGesture returns true if the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.removeListener" exists.
  2045  func HasFuncOffAccessibilityGesture() bool {
  2046  	return js.True == bindings.HasFuncOffAccessibilityGesture()
  2047  }
  2048  
  2049  // FuncOffAccessibilityGesture returns the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.removeListener".
  2050  func FuncOffAccessibilityGesture() (fn js.Func[func(callback js.Func[func(gesture Gesture, x int64, y int64)])]) {
  2051  	bindings.FuncOffAccessibilityGesture(
  2052  		js.Pointer(&fn),
  2053  	)
  2054  	return
  2055  }
  2056  
  2057  // OffAccessibilityGesture calls the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.removeListener" directly.
  2058  func OffAccessibilityGesture(callback js.Func[func(gesture Gesture, x int64, y int64)]) (ret js.Void) {
  2059  	bindings.CallOffAccessibilityGesture(
  2060  		js.Pointer(&ret),
  2061  		callback.Ref(),
  2062  	)
  2063  
  2064  	return
  2065  }
  2066  
  2067  // TryOffAccessibilityGesture calls the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.removeListener"
  2068  // in a try/catch block and returns (_, err, ok = false) when it went through
  2069  // the catch clause.
  2070  func TryOffAccessibilityGesture(callback js.Func[func(gesture Gesture, x int64, y int64)]) (ret js.Void, exception js.Any, ok bool) {
  2071  	ok = js.True == bindings.TryOffAccessibilityGesture(
  2072  		js.Pointer(&ret), js.Pointer(&exception),
  2073  		callback.Ref(),
  2074  	)
  2075  
  2076  	return
  2077  }
  2078  
  2079  // HasFuncHasOnAccessibilityGesture returns true if the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.hasListener" exists.
  2080  func HasFuncHasOnAccessibilityGesture() bool {
  2081  	return js.True == bindings.HasFuncHasOnAccessibilityGesture()
  2082  }
  2083  
  2084  // FuncHasOnAccessibilityGesture returns the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.hasListener".
  2085  func FuncHasOnAccessibilityGesture() (fn js.Func[func(callback js.Func[func(gesture Gesture, x int64, y int64)]) bool]) {
  2086  	bindings.FuncHasOnAccessibilityGesture(
  2087  		js.Pointer(&fn),
  2088  	)
  2089  	return
  2090  }
  2091  
  2092  // HasOnAccessibilityGesture calls the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.hasListener" directly.
  2093  func HasOnAccessibilityGesture(callback js.Func[func(gesture Gesture, x int64, y int64)]) (ret bool) {
  2094  	bindings.CallHasOnAccessibilityGesture(
  2095  		js.Pointer(&ret),
  2096  		callback.Ref(),
  2097  	)
  2098  
  2099  	return
  2100  }
  2101  
  2102  // TryHasOnAccessibilityGesture calls the function "WEBEXT.accessibilityPrivate.onAccessibilityGesture.hasListener"
  2103  // in a try/catch block and returns (_, err, ok = false) when it went through
  2104  // the catch clause.
  2105  func TryHasOnAccessibilityGesture(callback js.Func[func(gesture Gesture, x int64, y int64)]) (ret bool, exception js.Any, ok bool) {
  2106  	ok = js.True == bindings.TryHasOnAccessibilityGesture(
  2107  		js.Pointer(&ret), js.Pointer(&exception),
  2108  		callback.Ref(),
  2109  	)
  2110  
  2111  	return
  2112  }
  2113  
  2114  type OnAnnounceForAccessibilityEventCallbackFunc func(this js.Ref, announceText js.Array[js.String]) js.Ref
  2115  
  2116  func (fn OnAnnounceForAccessibilityEventCallbackFunc) Register() js.Func[func(announceText js.Array[js.String])] {
  2117  	return js.RegisterCallback[func(announceText js.Array[js.String])](
  2118  		fn, abi.FuncPCABIInternal(fn),
  2119  	)
  2120  }
  2121  
  2122  func (fn OnAnnounceForAccessibilityEventCallbackFunc) DispatchCallback(
  2123  	targetPC uintptr, ctx *js.CallbackContext,
  2124  ) {
  2125  	args := ctx.Args()
  2126  	if len(args) != 1+1 /* js this */ ||
  2127  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2128  		js.ThrowInvalidCallbackInvocation()
  2129  	}
  2130  
  2131  	if ctx.Return(fn(
  2132  		args[0],
  2133  
  2134  		js.Array[js.String]{}.FromRef(args[0+1]),
  2135  	)) {
  2136  		return
  2137  	}
  2138  
  2139  	js.ThrowCallbackValueNotReturned()
  2140  }
  2141  
  2142  type OnAnnounceForAccessibilityEventCallback[T any] struct {
  2143  	Fn  func(arg T, this js.Ref, announceText js.Array[js.String]) js.Ref
  2144  	Arg T
  2145  }
  2146  
  2147  func (cb *OnAnnounceForAccessibilityEventCallback[T]) Register() js.Func[func(announceText js.Array[js.String])] {
  2148  	return js.RegisterCallback[func(announceText js.Array[js.String])](
  2149  		cb, abi.FuncPCABIInternal(cb.Fn),
  2150  	)
  2151  }
  2152  
  2153  func (cb *OnAnnounceForAccessibilityEventCallback[T]) DispatchCallback(
  2154  	targetPC uintptr, ctx *js.CallbackContext,
  2155  ) {
  2156  	args := ctx.Args()
  2157  	if len(args) != 1+1 /* js this */ ||
  2158  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2159  		js.ThrowInvalidCallbackInvocation()
  2160  	}
  2161  
  2162  	if ctx.Return(cb.Fn(
  2163  		cb.Arg,
  2164  		args[0],
  2165  
  2166  		js.Array[js.String]{}.FromRef(args[0+1]),
  2167  	)) {
  2168  		return
  2169  	}
  2170  
  2171  	js.ThrowCallbackValueNotReturned()
  2172  }
  2173  
  2174  // HasFuncOnAnnounceForAccessibility returns true if the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.addListener" exists.
  2175  func HasFuncOnAnnounceForAccessibility() bool {
  2176  	return js.True == bindings.HasFuncOnAnnounceForAccessibility()
  2177  }
  2178  
  2179  // FuncOnAnnounceForAccessibility returns the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.addListener".
  2180  func FuncOnAnnounceForAccessibility() (fn js.Func[func(callback js.Func[func(announceText js.Array[js.String])])]) {
  2181  	bindings.FuncOnAnnounceForAccessibility(
  2182  		js.Pointer(&fn),
  2183  	)
  2184  	return
  2185  }
  2186  
  2187  // OnAnnounceForAccessibility calls the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.addListener" directly.
  2188  func OnAnnounceForAccessibility(callback js.Func[func(announceText js.Array[js.String])]) (ret js.Void) {
  2189  	bindings.CallOnAnnounceForAccessibility(
  2190  		js.Pointer(&ret),
  2191  		callback.Ref(),
  2192  	)
  2193  
  2194  	return
  2195  }
  2196  
  2197  // TryOnAnnounceForAccessibility calls the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.addListener"
  2198  // in a try/catch block and returns (_, err, ok = false) when it went through
  2199  // the catch clause.
  2200  func TryOnAnnounceForAccessibility(callback js.Func[func(announceText js.Array[js.String])]) (ret js.Void, exception js.Any, ok bool) {
  2201  	ok = js.True == bindings.TryOnAnnounceForAccessibility(
  2202  		js.Pointer(&ret), js.Pointer(&exception),
  2203  		callback.Ref(),
  2204  	)
  2205  
  2206  	return
  2207  }
  2208  
  2209  // HasFuncOffAnnounceForAccessibility returns true if the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.removeListener" exists.
  2210  func HasFuncOffAnnounceForAccessibility() bool {
  2211  	return js.True == bindings.HasFuncOffAnnounceForAccessibility()
  2212  }
  2213  
  2214  // FuncOffAnnounceForAccessibility returns the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.removeListener".
  2215  func FuncOffAnnounceForAccessibility() (fn js.Func[func(callback js.Func[func(announceText js.Array[js.String])])]) {
  2216  	bindings.FuncOffAnnounceForAccessibility(
  2217  		js.Pointer(&fn),
  2218  	)
  2219  	return
  2220  }
  2221  
  2222  // OffAnnounceForAccessibility calls the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.removeListener" directly.
  2223  func OffAnnounceForAccessibility(callback js.Func[func(announceText js.Array[js.String])]) (ret js.Void) {
  2224  	bindings.CallOffAnnounceForAccessibility(
  2225  		js.Pointer(&ret),
  2226  		callback.Ref(),
  2227  	)
  2228  
  2229  	return
  2230  }
  2231  
  2232  // TryOffAnnounceForAccessibility calls the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.removeListener"
  2233  // in a try/catch block and returns (_, err, ok = false) when it went through
  2234  // the catch clause.
  2235  func TryOffAnnounceForAccessibility(callback js.Func[func(announceText js.Array[js.String])]) (ret js.Void, exception js.Any, ok bool) {
  2236  	ok = js.True == bindings.TryOffAnnounceForAccessibility(
  2237  		js.Pointer(&ret), js.Pointer(&exception),
  2238  		callback.Ref(),
  2239  	)
  2240  
  2241  	return
  2242  }
  2243  
  2244  // HasFuncHasOnAnnounceForAccessibility returns true if the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.hasListener" exists.
  2245  func HasFuncHasOnAnnounceForAccessibility() bool {
  2246  	return js.True == bindings.HasFuncHasOnAnnounceForAccessibility()
  2247  }
  2248  
  2249  // FuncHasOnAnnounceForAccessibility returns the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.hasListener".
  2250  func FuncHasOnAnnounceForAccessibility() (fn js.Func[func(callback js.Func[func(announceText js.Array[js.String])]) bool]) {
  2251  	bindings.FuncHasOnAnnounceForAccessibility(
  2252  		js.Pointer(&fn),
  2253  	)
  2254  	return
  2255  }
  2256  
  2257  // HasOnAnnounceForAccessibility calls the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.hasListener" directly.
  2258  func HasOnAnnounceForAccessibility(callback js.Func[func(announceText js.Array[js.String])]) (ret bool) {
  2259  	bindings.CallHasOnAnnounceForAccessibility(
  2260  		js.Pointer(&ret),
  2261  		callback.Ref(),
  2262  	)
  2263  
  2264  	return
  2265  }
  2266  
  2267  // TryHasOnAnnounceForAccessibility calls the function "WEBEXT.accessibilityPrivate.onAnnounceForAccessibility.hasListener"
  2268  // in a try/catch block and returns (_, err, ok = false) when it went through
  2269  // the catch clause.
  2270  func TryHasOnAnnounceForAccessibility(callback js.Func[func(announceText js.Array[js.String])]) (ret bool, exception js.Any, ok bool) {
  2271  	ok = js.True == bindings.TryHasOnAnnounceForAccessibility(
  2272  		js.Pointer(&ret), js.Pointer(&exception),
  2273  		callback.Ref(),
  2274  	)
  2275  
  2276  	return
  2277  }
  2278  
  2279  type OnCustomSpokenFeedbackToggledEventCallbackFunc func(this js.Ref, enabled bool) js.Ref
  2280  
  2281  func (fn OnCustomSpokenFeedbackToggledEventCallbackFunc) Register() js.Func[func(enabled bool)] {
  2282  	return js.RegisterCallback[func(enabled bool)](
  2283  		fn, abi.FuncPCABIInternal(fn),
  2284  	)
  2285  }
  2286  
  2287  func (fn OnCustomSpokenFeedbackToggledEventCallbackFunc) DispatchCallback(
  2288  	targetPC uintptr, ctx *js.CallbackContext,
  2289  ) {
  2290  	args := ctx.Args()
  2291  	if len(args) != 1+1 /* js this */ ||
  2292  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2293  		js.ThrowInvalidCallbackInvocation()
  2294  	}
  2295  
  2296  	if ctx.Return(fn(
  2297  		args[0],
  2298  
  2299  		args[0+1] == js.True,
  2300  	)) {
  2301  		return
  2302  	}
  2303  
  2304  	js.ThrowCallbackValueNotReturned()
  2305  }
  2306  
  2307  type OnCustomSpokenFeedbackToggledEventCallback[T any] struct {
  2308  	Fn  func(arg T, this js.Ref, enabled bool) js.Ref
  2309  	Arg T
  2310  }
  2311  
  2312  func (cb *OnCustomSpokenFeedbackToggledEventCallback[T]) Register() js.Func[func(enabled bool)] {
  2313  	return js.RegisterCallback[func(enabled bool)](
  2314  		cb, abi.FuncPCABIInternal(cb.Fn),
  2315  	)
  2316  }
  2317  
  2318  func (cb *OnCustomSpokenFeedbackToggledEventCallback[T]) DispatchCallback(
  2319  	targetPC uintptr, ctx *js.CallbackContext,
  2320  ) {
  2321  	args := ctx.Args()
  2322  	if len(args) != 1+1 /* js this */ ||
  2323  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2324  		js.ThrowInvalidCallbackInvocation()
  2325  	}
  2326  
  2327  	if ctx.Return(cb.Fn(
  2328  		cb.Arg,
  2329  		args[0],
  2330  
  2331  		args[0+1] == js.True,
  2332  	)) {
  2333  		return
  2334  	}
  2335  
  2336  	js.ThrowCallbackValueNotReturned()
  2337  }
  2338  
  2339  // HasFuncOnCustomSpokenFeedbackToggled returns true if the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.addListener" exists.
  2340  func HasFuncOnCustomSpokenFeedbackToggled() bool {
  2341  	return js.True == bindings.HasFuncOnCustomSpokenFeedbackToggled()
  2342  }
  2343  
  2344  // FuncOnCustomSpokenFeedbackToggled returns the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.addListener".
  2345  func FuncOnCustomSpokenFeedbackToggled() (fn js.Func[func(callback js.Func[func(enabled bool)])]) {
  2346  	bindings.FuncOnCustomSpokenFeedbackToggled(
  2347  		js.Pointer(&fn),
  2348  	)
  2349  	return
  2350  }
  2351  
  2352  // OnCustomSpokenFeedbackToggled calls the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.addListener" directly.
  2353  func OnCustomSpokenFeedbackToggled(callback js.Func[func(enabled bool)]) (ret js.Void) {
  2354  	bindings.CallOnCustomSpokenFeedbackToggled(
  2355  		js.Pointer(&ret),
  2356  		callback.Ref(),
  2357  	)
  2358  
  2359  	return
  2360  }
  2361  
  2362  // TryOnCustomSpokenFeedbackToggled calls the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.addListener"
  2363  // in a try/catch block and returns (_, err, ok = false) when it went through
  2364  // the catch clause.
  2365  func TryOnCustomSpokenFeedbackToggled(callback js.Func[func(enabled bool)]) (ret js.Void, exception js.Any, ok bool) {
  2366  	ok = js.True == bindings.TryOnCustomSpokenFeedbackToggled(
  2367  		js.Pointer(&ret), js.Pointer(&exception),
  2368  		callback.Ref(),
  2369  	)
  2370  
  2371  	return
  2372  }
  2373  
  2374  // HasFuncOffCustomSpokenFeedbackToggled returns true if the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.removeListener" exists.
  2375  func HasFuncOffCustomSpokenFeedbackToggled() bool {
  2376  	return js.True == bindings.HasFuncOffCustomSpokenFeedbackToggled()
  2377  }
  2378  
  2379  // FuncOffCustomSpokenFeedbackToggled returns the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.removeListener".
  2380  func FuncOffCustomSpokenFeedbackToggled() (fn js.Func[func(callback js.Func[func(enabled bool)])]) {
  2381  	bindings.FuncOffCustomSpokenFeedbackToggled(
  2382  		js.Pointer(&fn),
  2383  	)
  2384  	return
  2385  }
  2386  
  2387  // OffCustomSpokenFeedbackToggled calls the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.removeListener" directly.
  2388  func OffCustomSpokenFeedbackToggled(callback js.Func[func(enabled bool)]) (ret js.Void) {
  2389  	bindings.CallOffCustomSpokenFeedbackToggled(
  2390  		js.Pointer(&ret),
  2391  		callback.Ref(),
  2392  	)
  2393  
  2394  	return
  2395  }
  2396  
  2397  // TryOffCustomSpokenFeedbackToggled calls the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.removeListener"
  2398  // in a try/catch block and returns (_, err, ok = false) when it went through
  2399  // the catch clause.
  2400  func TryOffCustomSpokenFeedbackToggled(callback js.Func[func(enabled bool)]) (ret js.Void, exception js.Any, ok bool) {
  2401  	ok = js.True == bindings.TryOffCustomSpokenFeedbackToggled(
  2402  		js.Pointer(&ret), js.Pointer(&exception),
  2403  		callback.Ref(),
  2404  	)
  2405  
  2406  	return
  2407  }
  2408  
  2409  // HasFuncHasOnCustomSpokenFeedbackToggled returns true if the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.hasListener" exists.
  2410  func HasFuncHasOnCustomSpokenFeedbackToggled() bool {
  2411  	return js.True == bindings.HasFuncHasOnCustomSpokenFeedbackToggled()
  2412  }
  2413  
  2414  // FuncHasOnCustomSpokenFeedbackToggled returns the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.hasListener".
  2415  func FuncHasOnCustomSpokenFeedbackToggled() (fn js.Func[func(callback js.Func[func(enabled bool)]) bool]) {
  2416  	bindings.FuncHasOnCustomSpokenFeedbackToggled(
  2417  		js.Pointer(&fn),
  2418  	)
  2419  	return
  2420  }
  2421  
  2422  // HasOnCustomSpokenFeedbackToggled calls the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.hasListener" directly.
  2423  func HasOnCustomSpokenFeedbackToggled(callback js.Func[func(enabled bool)]) (ret bool) {
  2424  	bindings.CallHasOnCustomSpokenFeedbackToggled(
  2425  		js.Pointer(&ret),
  2426  		callback.Ref(),
  2427  	)
  2428  
  2429  	return
  2430  }
  2431  
  2432  // TryHasOnCustomSpokenFeedbackToggled calls the function "WEBEXT.accessibilityPrivate.onCustomSpokenFeedbackToggled.hasListener"
  2433  // in a try/catch block and returns (_, err, ok = false) when it went through
  2434  // the catch clause.
  2435  func TryHasOnCustomSpokenFeedbackToggled(callback js.Func[func(enabled bool)]) (ret bool, exception js.Any, ok bool) {
  2436  	ok = js.True == bindings.TryHasOnCustomSpokenFeedbackToggled(
  2437  		js.Pointer(&ret), js.Pointer(&exception),
  2438  		callback.Ref(),
  2439  	)
  2440  
  2441  	return
  2442  }
  2443  
  2444  type OnIntroduceChromeVoxEventCallbackFunc func(this js.Ref) js.Ref
  2445  
  2446  func (fn OnIntroduceChromeVoxEventCallbackFunc) Register() js.Func[func()] {
  2447  	return js.RegisterCallback[func()](
  2448  		fn, abi.FuncPCABIInternal(fn),
  2449  	)
  2450  }
  2451  
  2452  func (fn OnIntroduceChromeVoxEventCallbackFunc) DispatchCallback(
  2453  	targetPC uintptr, ctx *js.CallbackContext,
  2454  ) {
  2455  	args := ctx.Args()
  2456  	if len(args) != 0+1 /* js this */ ||
  2457  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2458  		js.ThrowInvalidCallbackInvocation()
  2459  	}
  2460  
  2461  	if ctx.Return(fn(
  2462  		args[0],
  2463  	)) {
  2464  		return
  2465  	}
  2466  
  2467  	js.ThrowCallbackValueNotReturned()
  2468  }
  2469  
  2470  type OnIntroduceChromeVoxEventCallback[T any] struct {
  2471  	Fn  func(arg T, this js.Ref) js.Ref
  2472  	Arg T
  2473  }
  2474  
  2475  func (cb *OnIntroduceChromeVoxEventCallback[T]) Register() js.Func[func()] {
  2476  	return js.RegisterCallback[func()](
  2477  		cb, abi.FuncPCABIInternal(cb.Fn),
  2478  	)
  2479  }
  2480  
  2481  func (cb *OnIntroduceChromeVoxEventCallback[T]) DispatchCallback(
  2482  	targetPC uintptr, ctx *js.CallbackContext,
  2483  ) {
  2484  	args := ctx.Args()
  2485  	if len(args) != 0+1 /* js this */ ||
  2486  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2487  		js.ThrowInvalidCallbackInvocation()
  2488  	}
  2489  
  2490  	if ctx.Return(cb.Fn(
  2491  		cb.Arg,
  2492  		args[0],
  2493  	)) {
  2494  		return
  2495  	}
  2496  
  2497  	js.ThrowCallbackValueNotReturned()
  2498  }
  2499  
  2500  // HasFuncOnIntroduceChromeVox returns true if the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.addListener" exists.
  2501  func HasFuncOnIntroduceChromeVox() bool {
  2502  	return js.True == bindings.HasFuncOnIntroduceChromeVox()
  2503  }
  2504  
  2505  // FuncOnIntroduceChromeVox returns the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.addListener".
  2506  func FuncOnIntroduceChromeVox() (fn js.Func[func(callback js.Func[func()])]) {
  2507  	bindings.FuncOnIntroduceChromeVox(
  2508  		js.Pointer(&fn),
  2509  	)
  2510  	return
  2511  }
  2512  
  2513  // OnIntroduceChromeVox calls the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.addListener" directly.
  2514  func OnIntroduceChromeVox(callback js.Func[func()]) (ret js.Void) {
  2515  	bindings.CallOnIntroduceChromeVox(
  2516  		js.Pointer(&ret),
  2517  		callback.Ref(),
  2518  	)
  2519  
  2520  	return
  2521  }
  2522  
  2523  // TryOnIntroduceChromeVox calls the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.addListener"
  2524  // in a try/catch block and returns (_, err, ok = false) when it went through
  2525  // the catch clause.
  2526  func TryOnIntroduceChromeVox(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  2527  	ok = js.True == bindings.TryOnIntroduceChromeVox(
  2528  		js.Pointer(&ret), js.Pointer(&exception),
  2529  		callback.Ref(),
  2530  	)
  2531  
  2532  	return
  2533  }
  2534  
  2535  // HasFuncOffIntroduceChromeVox returns true if the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.removeListener" exists.
  2536  func HasFuncOffIntroduceChromeVox() bool {
  2537  	return js.True == bindings.HasFuncOffIntroduceChromeVox()
  2538  }
  2539  
  2540  // FuncOffIntroduceChromeVox returns the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.removeListener".
  2541  func FuncOffIntroduceChromeVox() (fn js.Func[func(callback js.Func[func()])]) {
  2542  	bindings.FuncOffIntroduceChromeVox(
  2543  		js.Pointer(&fn),
  2544  	)
  2545  	return
  2546  }
  2547  
  2548  // OffIntroduceChromeVox calls the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.removeListener" directly.
  2549  func OffIntroduceChromeVox(callback js.Func[func()]) (ret js.Void) {
  2550  	bindings.CallOffIntroduceChromeVox(
  2551  		js.Pointer(&ret),
  2552  		callback.Ref(),
  2553  	)
  2554  
  2555  	return
  2556  }
  2557  
  2558  // TryOffIntroduceChromeVox calls the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.removeListener"
  2559  // in a try/catch block and returns (_, err, ok = false) when it went through
  2560  // the catch clause.
  2561  func TryOffIntroduceChromeVox(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  2562  	ok = js.True == bindings.TryOffIntroduceChromeVox(
  2563  		js.Pointer(&ret), js.Pointer(&exception),
  2564  		callback.Ref(),
  2565  	)
  2566  
  2567  	return
  2568  }
  2569  
  2570  // HasFuncHasOnIntroduceChromeVox returns true if the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.hasListener" exists.
  2571  func HasFuncHasOnIntroduceChromeVox() bool {
  2572  	return js.True == bindings.HasFuncHasOnIntroduceChromeVox()
  2573  }
  2574  
  2575  // FuncHasOnIntroduceChromeVox returns the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.hasListener".
  2576  func FuncHasOnIntroduceChromeVox() (fn js.Func[func(callback js.Func[func()]) bool]) {
  2577  	bindings.FuncHasOnIntroduceChromeVox(
  2578  		js.Pointer(&fn),
  2579  	)
  2580  	return
  2581  }
  2582  
  2583  // HasOnIntroduceChromeVox calls the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.hasListener" directly.
  2584  func HasOnIntroduceChromeVox(callback js.Func[func()]) (ret bool) {
  2585  	bindings.CallHasOnIntroduceChromeVox(
  2586  		js.Pointer(&ret),
  2587  		callback.Ref(),
  2588  	)
  2589  
  2590  	return
  2591  }
  2592  
  2593  // TryHasOnIntroduceChromeVox calls the function "WEBEXT.accessibilityPrivate.onIntroduceChromeVox.hasListener"
  2594  // in a try/catch block and returns (_, err, ok = false) when it went through
  2595  // the catch clause.
  2596  func TryHasOnIntroduceChromeVox(callback js.Func[func()]) (ret bool, exception js.Any, ok bool) {
  2597  	ok = js.True == bindings.TryHasOnIntroduceChromeVox(
  2598  		js.Pointer(&ret), js.Pointer(&exception),
  2599  		callback.Ref(),
  2600  	)
  2601  
  2602  	return
  2603  }
  2604  
  2605  type OnMagnifierBoundsChangedEventCallbackFunc func(this js.Ref, magnifierBounds *ScreenRect) js.Ref
  2606  
  2607  func (fn OnMagnifierBoundsChangedEventCallbackFunc) Register() js.Func[func(magnifierBounds *ScreenRect)] {
  2608  	return js.RegisterCallback[func(magnifierBounds *ScreenRect)](
  2609  		fn, abi.FuncPCABIInternal(fn),
  2610  	)
  2611  }
  2612  
  2613  func (fn OnMagnifierBoundsChangedEventCallbackFunc) DispatchCallback(
  2614  	targetPC uintptr, ctx *js.CallbackContext,
  2615  ) {
  2616  	args := ctx.Args()
  2617  	if len(args) != 1+1 /* js this */ ||
  2618  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2619  		js.ThrowInvalidCallbackInvocation()
  2620  	}
  2621  	var arg0 ScreenRect
  2622  	arg0.UpdateFrom(args[0+1])
  2623  	defer arg0.FreeMembers(true)
  2624  
  2625  	if ctx.Return(fn(
  2626  		args[0],
  2627  
  2628  		mark.NoEscape(&arg0),
  2629  	)) {
  2630  		return
  2631  	}
  2632  
  2633  	js.ThrowCallbackValueNotReturned()
  2634  }
  2635  
  2636  type OnMagnifierBoundsChangedEventCallback[T any] struct {
  2637  	Fn  func(arg T, this js.Ref, magnifierBounds *ScreenRect) js.Ref
  2638  	Arg T
  2639  }
  2640  
  2641  func (cb *OnMagnifierBoundsChangedEventCallback[T]) Register() js.Func[func(magnifierBounds *ScreenRect)] {
  2642  	return js.RegisterCallback[func(magnifierBounds *ScreenRect)](
  2643  		cb, abi.FuncPCABIInternal(cb.Fn),
  2644  	)
  2645  }
  2646  
  2647  func (cb *OnMagnifierBoundsChangedEventCallback[T]) DispatchCallback(
  2648  	targetPC uintptr, ctx *js.CallbackContext,
  2649  ) {
  2650  	args := ctx.Args()
  2651  	if len(args) != 1+1 /* js this */ ||
  2652  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2653  		js.ThrowInvalidCallbackInvocation()
  2654  	}
  2655  	var arg0 ScreenRect
  2656  	arg0.UpdateFrom(args[0+1])
  2657  	defer arg0.FreeMembers(true)
  2658  
  2659  	if ctx.Return(cb.Fn(
  2660  		cb.Arg,
  2661  		args[0],
  2662  
  2663  		mark.NoEscape(&arg0),
  2664  	)) {
  2665  		return
  2666  	}
  2667  
  2668  	js.ThrowCallbackValueNotReturned()
  2669  }
  2670  
  2671  // HasFuncOnMagnifierBoundsChanged returns true if the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.addListener" exists.
  2672  func HasFuncOnMagnifierBoundsChanged() bool {
  2673  	return js.True == bindings.HasFuncOnMagnifierBoundsChanged()
  2674  }
  2675  
  2676  // FuncOnMagnifierBoundsChanged returns the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.addListener".
  2677  func FuncOnMagnifierBoundsChanged() (fn js.Func[func(callback js.Func[func(magnifierBounds *ScreenRect)])]) {
  2678  	bindings.FuncOnMagnifierBoundsChanged(
  2679  		js.Pointer(&fn),
  2680  	)
  2681  	return
  2682  }
  2683  
  2684  // OnMagnifierBoundsChanged calls the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.addListener" directly.
  2685  func OnMagnifierBoundsChanged(callback js.Func[func(magnifierBounds *ScreenRect)]) (ret js.Void) {
  2686  	bindings.CallOnMagnifierBoundsChanged(
  2687  		js.Pointer(&ret),
  2688  		callback.Ref(),
  2689  	)
  2690  
  2691  	return
  2692  }
  2693  
  2694  // TryOnMagnifierBoundsChanged calls the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.addListener"
  2695  // in a try/catch block and returns (_, err, ok = false) when it went through
  2696  // the catch clause.
  2697  func TryOnMagnifierBoundsChanged(callback js.Func[func(magnifierBounds *ScreenRect)]) (ret js.Void, exception js.Any, ok bool) {
  2698  	ok = js.True == bindings.TryOnMagnifierBoundsChanged(
  2699  		js.Pointer(&ret), js.Pointer(&exception),
  2700  		callback.Ref(),
  2701  	)
  2702  
  2703  	return
  2704  }
  2705  
  2706  // HasFuncOffMagnifierBoundsChanged returns true if the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.removeListener" exists.
  2707  func HasFuncOffMagnifierBoundsChanged() bool {
  2708  	return js.True == bindings.HasFuncOffMagnifierBoundsChanged()
  2709  }
  2710  
  2711  // FuncOffMagnifierBoundsChanged returns the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.removeListener".
  2712  func FuncOffMagnifierBoundsChanged() (fn js.Func[func(callback js.Func[func(magnifierBounds *ScreenRect)])]) {
  2713  	bindings.FuncOffMagnifierBoundsChanged(
  2714  		js.Pointer(&fn),
  2715  	)
  2716  	return
  2717  }
  2718  
  2719  // OffMagnifierBoundsChanged calls the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.removeListener" directly.
  2720  func OffMagnifierBoundsChanged(callback js.Func[func(magnifierBounds *ScreenRect)]) (ret js.Void) {
  2721  	bindings.CallOffMagnifierBoundsChanged(
  2722  		js.Pointer(&ret),
  2723  		callback.Ref(),
  2724  	)
  2725  
  2726  	return
  2727  }
  2728  
  2729  // TryOffMagnifierBoundsChanged calls the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.removeListener"
  2730  // in a try/catch block and returns (_, err, ok = false) when it went through
  2731  // the catch clause.
  2732  func TryOffMagnifierBoundsChanged(callback js.Func[func(magnifierBounds *ScreenRect)]) (ret js.Void, exception js.Any, ok bool) {
  2733  	ok = js.True == bindings.TryOffMagnifierBoundsChanged(
  2734  		js.Pointer(&ret), js.Pointer(&exception),
  2735  		callback.Ref(),
  2736  	)
  2737  
  2738  	return
  2739  }
  2740  
  2741  // HasFuncHasOnMagnifierBoundsChanged returns true if the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.hasListener" exists.
  2742  func HasFuncHasOnMagnifierBoundsChanged() bool {
  2743  	return js.True == bindings.HasFuncHasOnMagnifierBoundsChanged()
  2744  }
  2745  
  2746  // FuncHasOnMagnifierBoundsChanged returns the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.hasListener".
  2747  func FuncHasOnMagnifierBoundsChanged() (fn js.Func[func(callback js.Func[func(magnifierBounds *ScreenRect)]) bool]) {
  2748  	bindings.FuncHasOnMagnifierBoundsChanged(
  2749  		js.Pointer(&fn),
  2750  	)
  2751  	return
  2752  }
  2753  
  2754  // HasOnMagnifierBoundsChanged calls the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.hasListener" directly.
  2755  func HasOnMagnifierBoundsChanged(callback js.Func[func(magnifierBounds *ScreenRect)]) (ret bool) {
  2756  	bindings.CallHasOnMagnifierBoundsChanged(
  2757  		js.Pointer(&ret),
  2758  		callback.Ref(),
  2759  	)
  2760  
  2761  	return
  2762  }
  2763  
  2764  // TryHasOnMagnifierBoundsChanged calls the function "WEBEXT.accessibilityPrivate.onMagnifierBoundsChanged.hasListener"
  2765  // in a try/catch block and returns (_, err, ok = false) when it went through
  2766  // the catch clause.
  2767  func TryHasOnMagnifierBoundsChanged(callback js.Func[func(magnifierBounds *ScreenRect)]) (ret bool, exception js.Any, ok bool) {
  2768  	ok = js.True == bindings.TryHasOnMagnifierBoundsChanged(
  2769  		js.Pointer(&ret), js.Pointer(&exception),
  2770  		callback.Ref(),
  2771  	)
  2772  
  2773  	return
  2774  }
  2775  
  2776  type OnMagnifierCommandEventCallbackFunc func(this js.Ref, command MagnifierCommand) js.Ref
  2777  
  2778  func (fn OnMagnifierCommandEventCallbackFunc) Register() js.Func[func(command MagnifierCommand)] {
  2779  	return js.RegisterCallback[func(command MagnifierCommand)](
  2780  		fn, abi.FuncPCABIInternal(fn),
  2781  	)
  2782  }
  2783  
  2784  func (fn OnMagnifierCommandEventCallbackFunc) DispatchCallback(
  2785  	targetPC uintptr, ctx *js.CallbackContext,
  2786  ) {
  2787  	args := ctx.Args()
  2788  	if len(args) != 1+1 /* js this */ ||
  2789  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2790  		js.ThrowInvalidCallbackInvocation()
  2791  	}
  2792  
  2793  	if ctx.Return(fn(
  2794  		args[0],
  2795  
  2796  		MagnifierCommand(0).FromRef(args[0+1]),
  2797  	)) {
  2798  		return
  2799  	}
  2800  
  2801  	js.ThrowCallbackValueNotReturned()
  2802  }
  2803  
  2804  type OnMagnifierCommandEventCallback[T any] struct {
  2805  	Fn  func(arg T, this js.Ref, command MagnifierCommand) js.Ref
  2806  	Arg T
  2807  }
  2808  
  2809  func (cb *OnMagnifierCommandEventCallback[T]) Register() js.Func[func(command MagnifierCommand)] {
  2810  	return js.RegisterCallback[func(command MagnifierCommand)](
  2811  		cb, abi.FuncPCABIInternal(cb.Fn),
  2812  	)
  2813  }
  2814  
  2815  func (cb *OnMagnifierCommandEventCallback[T]) DispatchCallback(
  2816  	targetPC uintptr, ctx *js.CallbackContext,
  2817  ) {
  2818  	args := ctx.Args()
  2819  	if len(args) != 1+1 /* js this */ ||
  2820  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2821  		js.ThrowInvalidCallbackInvocation()
  2822  	}
  2823  
  2824  	if ctx.Return(cb.Fn(
  2825  		cb.Arg,
  2826  		args[0],
  2827  
  2828  		MagnifierCommand(0).FromRef(args[0+1]),
  2829  	)) {
  2830  		return
  2831  	}
  2832  
  2833  	js.ThrowCallbackValueNotReturned()
  2834  }
  2835  
  2836  // HasFuncOnMagnifierCommand returns true if the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.addListener" exists.
  2837  func HasFuncOnMagnifierCommand() bool {
  2838  	return js.True == bindings.HasFuncOnMagnifierCommand()
  2839  }
  2840  
  2841  // FuncOnMagnifierCommand returns the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.addListener".
  2842  func FuncOnMagnifierCommand() (fn js.Func[func(callback js.Func[func(command MagnifierCommand)])]) {
  2843  	bindings.FuncOnMagnifierCommand(
  2844  		js.Pointer(&fn),
  2845  	)
  2846  	return
  2847  }
  2848  
  2849  // OnMagnifierCommand calls the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.addListener" directly.
  2850  func OnMagnifierCommand(callback js.Func[func(command MagnifierCommand)]) (ret js.Void) {
  2851  	bindings.CallOnMagnifierCommand(
  2852  		js.Pointer(&ret),
  2853  		callback.Ref(),
  2854  	)
  2855  
  2856  	return
  2857  }
  2858  
  2859  // TryOnMagnifierCommand calls the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.addListener"
  2860  // in a try/catch block and returns (_, err, ok = false) when it went through
  2861  // the catch clause.
  2862  func TryOnMagnifierCommand(callback js.Func[func(command MagnifierCommand)]) (ret js.Void, exception js.Any, ok bool) {
  2863  	ok = js.True == bindings.TryOnMagnifierCommand(
  2864  		js.Pointer(&ret), js.Pointer(&exception),
  2865  		callback.Ref(),
  2866  	)
  2867  
  2868  	return
  2869  }
  2870  
  2871  // HasFuncOffMagnifierCommand returns true if the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.removeListener" exists.
  2872  func HasFuncOffMagnifierCommand() bool {
  2873  	return js.True == bindings.HasFuncOffMagnifierCommand()
  2874  }
  2875  
  2876  // FuncOffMagnifierCommand returns the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.removeListener".
  2877  func FuncOffMagnifierCommand() (fn js.Func[func(callback js.Func[func(command MagnifierCommand)])]) {
  2878  	bindings.FuncOffMagnifierCommand(
  2879  		js.Pointer(&fn),
  2880  	)
  2881  	return
  2882  }
  2883  
  2884  // OffMagnifierCommand calls the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.removeListener" directly.
  2885  func OffMagnifierCommand(callback js.Func[func(command MagnifierCommand)]) (ret js.Void) {
  2886  	bindings.CallOffMagnifierCommand(
  2887  		js.Pointer(&ret),
  2888  		callback.Ref(),
  2889  	)
  2890  
  2891  	return
  2892  }
  2893  
  2894  // TryOffMagnifierCommand calls the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.removeListener"
  2895  // in a try/catch block and returns (_, err, ok = false) when it went through
  2896  // the catch clause.
  2897  func TryOffMagnifierCommand(callback js.Func[func(command MagnifierCommand)]) (ret js.Void, exception js.Any, ok bool) {
  2898  	ok = js.True == bindings.TryOffMagnifierCommand(
  2899  		js.Pointer(&ret), js.Pointer(&exception),
  2900  		callback.Ref(),
  2901  	)
  2902  
  2903  	return
  2904  }
  2905  
  2906  // HasFuncHasOnMagnifierCommand returns true if the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.hasListener" exists.
  2907  func HasFuncHasOnMagnifierCommand() bool {
  2908  	return js.True == bindings.HasFuncHasOnMagnifierCommand()
  2909  }
  2910  
  2911  // FuncHasOnMagnifierCommand returns the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.hasListener".
  2912  func FuncHasOnMagnifierCommand() (fn js.Func[func(callback js.Func[func(command MagnifierCommand)]) bool]) {
  2913  	bindings.FuncHasOnMagnifierCommand(
  2914  		js.Pointer(&fn),
  2915  	)
  2916  	return
  2917  }
  2918  
  2919  // HasOnMagnifierCommand calls the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.hasListener" directly.
  2920  func HasOnMagnifierCommand(callback js.Func[func(command MagnifierCommand)]) (ret bool) {
  2921  	bindings.CallHasOnMagnifierCommand(
  2922  		js.Pointer(&ret),
  2923  		callback.Ref(),
  2924  	)
  2925  
  2926  	return
  2927  }
  2928  
  2929  // TryHasOnMagnifierCommand calls the function "WEBEXT.accessibilityPrivate.onMagnifierCommand.hasListener"
  2930  // in a try/catch block and returns (_, err, ok = false) when it went through
  2931  // the catch clause.
  2932  func TryHasOnMagnifierCommand(callback js.Func[func(command MagnifierCommand)]) (ret bool, exception js.Any, ok bool) {
  2933  	ok = js.True == bindings.TryHasOnMagnifierCommand(
  2934  		js.Pointer(&ret), js.Pointer(&exception),
  2935  		callback.Ref(),
  2936  	)
  2937  
  2938  	return
  2939  }
  2940  
  2941  type OnPointScanSetEventCallbackFunc func(this js.Ref, point *PointScanPoint) js.Ref
  2942  
  2943  func (fn OnPointScanSetEventCallbackFunc) Register() js.Func[func(point *PointScanPoint)] {
  2944  	return js.RegisterCallback[func(point *PointScanPoint)](
  2945  		fn, abi.FuncPCABIInternal(fn),
  2946  	)
  2947  }
  2948  
  2949  func (fn OnPointScanSetEventCallbackFunc) DispatchCallback(
  2950  	targetPC uintptr, ctx *js.CallbackContext,
  2951  ) {
  2952  	args := ctx.Args()
  2953  	if len(args) != 1+1 /* js this */ ||
  2954  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  2955  		js.ThrowInvalidCallbackInvocation()
  2956  	}
  2957  	var arg0 PointScanPoint
  2958  	arg0.UpdateFrom(args[0+1])
  2959  	defer arg0.FreeMembers(true)
  2960  
  2961  	if ctx.Return(fn(
  2962  		args[0],
  2963  
  2964  		mark.NoEscape(&arg0),
  2965  	)) {
  2966  		return
  2967  	}
  2968  
  2969  	js.ThrowCallbackValueNotReturned()
  2970  }
  2971  
  2972  type OnPointScanSetEventCallback[T any] struct {
  2973  	Fn  func(arg T, this js.Ref, point *PointScanPoint) js.Ref
  2974  	Arg T
  2975  }
  2976  
  2977  func (cb *OnPointScanSetEventCallback[T]) Register() js.Func[func(point *PointScanPoint)] {
  2978  	return js.RegisterCallback[func(point *PointScanPoint)](
  2979  		cb, abi.FuncPCABIInternal(cb.Fn),
  2980  	)
  2981  }
  2982  
  2983  func (cb *OnPointScanSetEventCallback[T]) DispatchCallback(
  2984  	targetPC uintptr, ctx *js.CallbackContext,
  2985  ) {
  2986  	args := ctx.Args()
  2987  	if len(args) != 1+1 /* js this */ ||
  2988  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  2989  		js.ThrowInvalidCallbackInvocation()
  2990  	}
  2991  	var arg0 PointScanPoint
  2992  	arg0.UpdateFrom(args[0+1])
  2993  	defer arg0.FreeMembers(true)
  2994  
  2995  	if ctx.Return(cb.Fn(
  2996  		cb.Arg,
  2997  		args[0],
  2998  
  2999  		mark.NoEscape(&arg0),
  3000  	)) {
  3001  		return
  3002  	}
  3003  
  3004  	js.ThrowCallbackValueNotReturned()
  3005  }
  3006  
  3007  // HasFuncOnPointScanSet returns true if the function "WEBEXT.accessibilityPrivate.onPointScanSet.addListener" exists.
  3008  func HasFuncOnPointScanSet() bool {
  3009  	return js.True == bindings.HasFuncOnPointScanSet()
  3010  }
  3011  
  3012  // FuncOnPointScanSet returns the function "WEBEXT.accessibilityPrivate.onPointScanSet.addListener".
  3013  func FuncOnPointScanSet() (fn js.Func[func(callback js.Func[func(point *PointScanPoint)])]) {
  3014  	bindings.FuncOnPointScanSet(
  3015  		js.Pointer(&fn),
  3016  	)
  3017  	return
  3018  }
  3019  
  3020  // OnPointScanSet calls the function "WEBEXT.accessibilityPrivate.onPointScanSet.addListener" directly.
  3021  func OnPointScanSet(callback js.Func[func(point *PointScanPoint)]) (ret js.Void) {
  3022  	bindings.CallOnPointScanSet(
  3023  		js.Pointer(&ret),
  3024  		callback.Ref(),
  3025  	)
  3026  
  3027  	return
  3028  }
  3029  
  3030  // TryOnPointScanSet calls the function "WEBEXT.accessibilityPrivate.onPointScanSet.addListener"
  3031  // in a try/catch block and returns (_, err, ok = false) when it went through
  3032  // the catch clause.
  3033  func TryOnPointScanSet(callback js.Func[func(point *PointScanPoint)]) (ret js.Void, exception js.Any, ok bool) {
  3034  	ok = js.True == bindings.TryOnPointScanSet(
  3035  		js.Pointer(&ret), js.Pointer(&exception),
  3036  		callback.Ref(),
  3037  	)
  3038  
  3039  	return
  3040  }
  3041  
  3042  // HasFuncOffPointScanSet returns true if the function "WEBEXT.accessibilityPrivate.onPointScanSet.removeListener" exists.
  3043  func HasFuncOffPointScanSet() bool {
  3044  	return js.True == bindings.HasFuncOffPointScanSet()
  3045  }
  3046  
  3047  // FuncOffPointScanSet returns the function "WEBEXT.accessibilityPrivate.onPointScanSet.removeListener".
  3048  func FuncOffPointScanSet() (fn js.Func[func(callback js.Func[func(point *PointScanPoint)])]) {
  3049  	bindings.FuncOffPointScanSet(
  3050  		js.Pointer(&fn),
  3051  	)
  3052  	return
  3053  }
  3054  
  3055  // OffPointScanSet calls the function "WEBEXT.accessibilityPrivate.onPointScanSet.removeListener" directly.
  3056  func OffPointScanSet(callback js.Func[func(point *PointScanPoint)]) (ret js.Void) {
  3057  	bindings.CallOffPointScanSet(
  3058  		js.Pointer(&ret),
  3059  		callback.Ref(),
  3060  	)
  3061  
  3062  	return
  3063  }
  3064  
  3065  // TryOffPointScanSet calls the function "WEBEXT.accessibilityPrivate.onPointScanSet.removeListener"
  3066  // in a try/catch block and returns (_, err, ok = false) when it went through
  3067  // the catch clause.
  3068  func TryOffPointScanSet(callback js.Func[func(point *PointScanPoint)]) (ret js.Void, exception js.Any, ok bool) {
  3069  	ok = js.True == bindings.TryOffPointScanSet(
  3070  		js.Pointer(&ret), js.Pointer(&exception),
  3071  		callback.Ref(),
  3072  	)
  3073  
  3074  	return
  3075  }
  3076  
  3077  // HasFuncHasOnPointScanSet returns true if the function "WEBEXT.accessibilityPrivate.onPointScanSet.hasListener" exists.
  3078  func HasFuncHasOnPointScanSet() bool {
  3079  	return js.True == bindings.HasFuncHasOnPointScanSet()
  3080  }
  3081  
  3082  // FuncHasOnPointScanSet returns the function "WEBEXT.accessibilityPrivate.onPointScanSet.hasListener".
  3083  func FuncHasOnPointScanSet() (fn js.Func[func(callback js.Func[func(point *PointScanPoint)]) bool]) {
  3084  	bindings.FuncHasOnPointScanSet(
  3085  		js.Pointer(&fn),
  3086  	)
  3087  	return
  3088  }
  3089  
  3090  // HasOnPointScanSet calls the function "WEBEXT.accessibilityPrivate.onPointScanSet.hasListener" directly.
  3091  func HasOnPointScanSet(callback js.Func[func(point *PointScanPoint)]) (ret bool) {
  3092  	bindings.CallHasOnPointScanSet(
  3093  		js.Pointer(&ret),
  3094  		callback.Ref(),
  3095  	)
  3096  
  3097  	return
  3098  }
  3099  
  3100  // TryHasOnPointScanSet calls the function "WEBEXT.accessibilityPrivate.onPointScanSet.hasListener"
  3101  // in a try/catch block and returns (_, err, ok = false) when it went through
  3102  // the catch clause.
  3103  func TryHasOnPointScanSet(callback js.Func[func(point *PointScanPoint)]) (ret bool, exception js.Any, ok bool) {
  3104  	ok = js.True == bindings.TryHasOnPointScanSet(
  3105  		js.Pointer(&ret), js.Pointer(&exception),
  3106  		callback.Ref(),
  3107  	)
  3108  
  3109  	return
  3110  }
  3111  
  3112  type OnScrollableBoundsForPointRequestedEventCallbackFunc func(this js.Ref, x float64, y float64) js.Ref
  3113  
  3114  func (fn OnScrollableBoundsForPointRequestedEventCallbackFunc) Register() js.Func[func(x float64, y float64)] {
  3115  	return js.RegisterCallback[func(x float64, y float64)](
  3116  		fn, abi.FuncPCABIInternal(fn),
  3117  	)
  3118  }
  3119  
  3120  func (fn OnScrollableBoundsForPointRequestedEventCallbackFunc) DispatchCallback(
  3121  	targetPC uintptr, ctx *js.CallbackContext,
  3122  ) {
  3123  	args := ctx.Args()
  3124  	if len(args) != 2+1 /* js this */ ||
  3125  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3126  		js.ThrowInvalidCallbackInvocation()
  3127  	}
  3128  
  3129  	if ctx.Return(fn(
  3130  		args[0],
  3131  
  3132  		js.Number[float64]{}.FromRef(args[0+1]).Get(),
  3133  		js.Number[float64]{}.FromRef(args[1+1]).Get(),
  3134  	)) {
  3135  		return
  3136  	}
  3137  
  3138  	js.ThrowCallbackValueNotReturned()
  3139  }
  3140  
  3141  type OnScrollableBoundsForPointRequestedEventCallback[T any] struct {
  3142  	Fn  func(arg T, this js.Ref, x float64, y float64) js.Ref
  3143  	Arg T
  3144  }
  3145  
  3146  func (cb *OnScrollableBoundsForPointRequestedEventCallback[T]) Register() js.Func[func(x float64, y float64)] {
  3147  	return js.RegisterCallback[func(x float64, y float64)](
  3148  		cb, abi.FuncPCABIInternal(cb.Fn),
  3149  	)
  3150  }
  3151  
  3152  func (cb *OnScrollableBoundsForPointRequestedEventCallback[T]) DispatchCallback(
  3153  	targetPC uintptr, ctx *js.CallbackContext,
  3154  ) {
  3155  	args := ctx.Args()
  3156  	if len(args) != 2+1 /* js this */ ||
  3157  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3158  		js.ThrowInvalidCallbackInvocation()
  3159  	}
  3160  
  3161  	if ctx.Return(cb.Fn(
  3162  		cb.Arg,
  3163  		args[0],
  3164  
  3165  		js.Number[float64]{}.FromRef(args[0+1]).Get(),
  3166  		js.Number[float64]{}.FromRef(args[1+1]).Get(),
  3167  	)) {
  3168  		return
  3169  	}
  3170  
  3171  	js.ThrowCallbackValueNotReturned()
  3172  }
  3173  
  3174  // HasFuncOnScrollableBoundsForPointRequested returns true if the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.addListener" exists.
  3175  func HasFuncOnScrollableBoundsForPointRequested() bool {
  3176  	return js.True == bindings.HasFuncOnScrollableBoundsForPointRequested()
  3177  }
  3178  
  3179  // FuncOnScrollableBoundsForPointRequested returns the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.addListener".
  3180  func FuncOnScrollableBoundsForPointRequested() (fn js.Func[func(callback js.Func[func(x float64, y float64)])]) {
  3181  	bindings.FuncOnScrollableBoundsForPointRequested(
  3182  		js.Pointer(&fn),
  3183  	)
  3184  	return
  3185  }
  3186  
  3187  // OnScrollableBoundsForPointRequested calls the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.addListener" directly.
  3188  func OnScrollableBoundsForPointRequested(callback js.Func[func(x float64, y float64)]) (ret js.Void) {
  3189  	bindings.CallOnScrollableBoundsForPointRequested(
  3190  		js.Pointer(&ret),
  3191  		callback.Ref(),
  3192  	)
  3193  
  3194  	return
  3195  }
  3196  
  3197  // TryOnScrollableBoundsForPointRequested calls the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.addListener"
  3198  // in a try/catch block and returns (_, err, ok = false) when it went through
  3199  // the catch clause.
  3200  func TryOnScrollableBoundsForPointRequested(callback js.Func[func(x float64, y float64)]) (ret js.Void, exception js.Any, ok bool) {
  3201  	ok = js.True == bindings.TryOnScrollableBoundsForPointRequested(
  3202  		js.Pointer(&ret), js.Pointer(&exception),
  3203  		callback.Ref(),
  3204  	)
  3205  
  3206  	return
  3207  }
  3208  
  3209  // HasFuncOffScrollableBoundsForPointRequested returns true if the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.removeListener" exists.
  3210  func HasFuncOffScrollableBoundsForPointRequested() bool {
  3211  	return js.True == bindings.HasFuncOffScrollableBoundsForPointRequested()
  3212  }
  3213  
  3214  // FuncOffScrollableBoundsForPointRequested returns the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.removeListener".
  3215  func FuncOffScrollableBoundsForPointRequested() (fn js.Func[func(callback js.Func[func(x float64, y float64)])]) {
  3216  	bindings.FuncOffScrollableBoundsForPointRequested(
  3217  		js.Pointer(&fn),
  3218  	)
  3219  	return
  3220  }
  3221  
  3222  // OffScrollableBoundsForPointRequested calls the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.removeListener" directly.
  3223  func OffScrollableBoundsForPointRequested(callback js.Func[func(x float64, y float64)]) (ret js.Void) {
  3224  	bindings.CallOffScrollableBoundsForPointRequested(
  3225  		js.Pointer(&ret),
  3226  		callback.Ref(),
  3227  	)
  3228  
  3229  	return
  3230  }
  3231  
  3232  // TryOffScrollableBoundsForPointRequested calls the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.removeListener"
  3233  // in a try/catch block and returns (_, err, ok = false) when it went through
  3234  // the catch clause.
  3235  func TryOffScrollableBoundsForPointRequested(callback js.Func[func(x float64, y float64)]) (ret js.Void, exception js.Any, ok bool) {
  3236  	ok = js.True == bindings.TryOffScrollableBoundsForPointRequested(
  3237  		js.Pointer(&ret), js.Pointer(&exception),
  3238  		callback.Ref(),
  3239  	)
  3240  
  3241  	return
  3242  }
  3243  
  3244  // HasFuncHasOnScrollableBoundsForPointRequested returns true if the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.hasListener" exists.
  3245  func HasFuncHasOnScrollableBoundsForPointRequested() bool {
  3246  	return js.True == bindings.HasFuncHasOnScrollableBoundsForPointRequested()
  3247  }
  3248  
  3249  // FuncHasOnScrollableBoundsForPointRequested returns the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.hasListener".
  3250  func FuncHasOnScrollableBoundsForPointRequested() (fn js.Func[func(callback js.Func[func(x float64, y float64)]) bool]) {
  3251  	bindings.FuncHasOnScrollableBoundsForPointRequested(
  3252  		js.Pointer(&fn),
  3253  	)
  3254  	return
  3255  }
  3256  
  3257  // HasOnScrollableBoundsForPointRequested calls the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.hasListener" directly.
  3258  func HasOnScrollableBoundsForPointRequested(callback js.Func[func(x float64, y float64)]) (ret bool) {
  3259  	bindings.CallHasOnScrollableBoundsForPointRequested(
  3260  		js.Pointer(&ret),
  3261  		callback.Ref(),
  3262  	)
  3263  
  3264  	return
  3265  }
  3266  
  3267  // TryHasOnScrollableBoundsForPointRequested calls the function "WEBEXT.accessibilityPrivate.onScrollableBoundsForPointRequested.hasListener"
  3268  // in a try/catch block and returns (_, err, ok = false) when it went through
  3269  // the catch clause.
  3270  func TryHasOnScrollableBoundsForPointRequested(callback js.Func[func(x float64, y float64)]) (ret bool, exception js.Any, ok bool) {
  3271  	ok = js.True == bindings.TryHasOnScrollableBoundsForPointRequested(
  3272  		js.Pointer(&ret), js.Pointer(&exception),
  3273  		callback.Ref(),
  3274  	)
  3275  
  3276  	return
  3277  }
  3278  
  3279  type OnSelectToSpeakContextMenuClickedEventCallbackFunc func(this js.Ref) js.Ref
  3280  
  3281  func (fn OnSelectToSpeakContextMenuClickedEventCallbackFunc) Register() js.Func[func()] {
  3282  	return js.RegisterCallback[func()](
  3283  		fn, abi.FuncPCABIInternal(fn),
  3284  	)
  3285  }
  3286  
  3287  func (fn OnSelectToSpeakContextMenuClickedEventCallbackFunc) DispatchCallback(
  3288  	targetPC uintptr, ctx *js.CallbackContext,
  3289  ) {
  3290  	args := ctx.Args()
  3291  	if len(args) != 0+1 /* js this */ ||
  3292  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3293  		js.ThrowInvalidCallbackInvocation()
  3294  	}
  3295  
  3296  	if ctx.Return(fn(
  3297  		args[0],
  3298  	)) {
  3299  		return
  3300  	}
  3301  
  3302  	js.ThrowCallbackValueNotReturned()
  3303  }
  3304  
  3305  type OnSelectToSpeakContextMenuClickedEventCallback[T any] struct {
  3306  	Fn  func(arg T, this js.Ref) js.Ref
  3307  	Arg T
  3308  }
  3309  
  3310  func (cb *OnSelectToSpeakContextMenuClickedEventCallback[T]) Register() js.Func[func()] {
  3311  	return js.RegisterCallback[func()](
  3312  		cb, abi.FuncPCABIInternal(cb.Fn),
  3313  	)
  3314  }
  3315  
  3316  func (cb *OnSelectToSpeakContextMenuClickedEventCallback[T]) DispatchCallback(
  3317  	targetPC uintptr, ctx *js.CallbackContext,
  3318  ) {
  3319  	args := ctx.Args()
  3320  	if len(args) != 0+1 /* js this */ ||
  3321  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3322  		js.ThrowInvalidCallbackInvocation()
  3323  	}
  3324  
  3325  	if ctx.Return(cb.Fn(
  3326  		cb.Arg,
  3327  		args[0],
  3328  	)) {
  3329  		return
  3330  	}
  3331  
  3332  	js.ThrowCallbackValueNotReturned()
  3333  }
  3334  
  3335  // HasFuncOnSelectToSpeakContextMenuClicked returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.addListener" exists.
  3336  func HasFuncOnSelectToSpeakContextMenuClicked() bool {
  3337  	return js.True == bindings.HasFuncOnSelectToSpeakContextMenuClicked()
  3338  }
  3339  
  3340  // FuncOnSelectToSpeakContextMenuClicked returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.addListener".
  3341  func FuncOnSelectToSpeakContextMenuClicked() (fn js.Func[func(callback js.Func[func()])]) {
  3342  	bindings.FuncOnSelectToSpeakContextMenuClicked(
  3343  		js.Pointer(&fn),
  3344  	)
  3345  	return
  3346  }
  3347  
  3348  // OnSelectToSpeakContextMenuClicked calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.addListener" directly.
  3349  func OnSelectToSpeakContextMenuClicked(callback js.Func[func()]) (ret js.Void) {
  3350  	bindings.CallOnSelectToSpeakContextMenuClicked(
  3351  		js.Pointer(&ret),
  3352  		callback.Ref(),
  3353  	)
  3354  
  3355  	return
  3356  }
  3357  
  3358  // TryOnSelectToSpeakContextMenuClicked calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.addListener"
  3359  // in a try/catch block and returns (_, err, ok = false) when it went through
  3360  // the catch clause.
  3361  func TryOnSelectToSpeakContextMenuClicked(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  3362  	ok = js.True == bindings.TryOnSelectToSpeakContextMenuClicked(
  3363  		js.Pointer(&ret), js.Pointer(&exception),
  3364  		callback.Ref(),
  3365  	)
  3366  
  3367  	return
  3368  }
  3369  
  3370  // HasFuncOffSelectToSpeakContextMenuClicked returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.removeListener" exists.
  3371  func HasFuncOffSelectToSpeakContextMenuClicked() bool {
  3372  	return js.True == bindings.HasFuncOffSelectToSpeakContextMenuClicked()
  3373  }
  3374  
  3375  // FuncOffSelectToSpeakContextMenuClicked returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.removeListener".
  3376  func FuncOffSelectToSpeakContextMenuClicked() (fn js.Func[func(callback js.Func[func()])]) {
  3377  	bindings.FuncOffSelectToSpeakContextMenuClicked(
  3378  		js.Pointer(&fn),
  3379  	)
  3380  	return
  3381  }
  3382  
  3383  // OffSelectToSpeakContextMenuClicked calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.removeListener" directly.
  3384  func OffSelectToSpeakContextMenuClicked(callback js.Func[func()]) (ret js.Void) {
  3385  	bindings.CallOffSelectToSpeakContextMenuClicked(
  3386  		js.Pointer(&ret),
  3387  		callback.Ref(),
  3388  	)
  3389  
  3390  	return
  3391  }
  3392  
  3393  // TryOffSelectToSpeakContextMenuClicked calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.removeListener"
  3394  // in a try/catch block and returns (_, err, ok = false) when it went through
  3395  // the catch clause.
  3396  func TryOffSelectToSpeakContextMenuClicked(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  3397  	ok = js.True == bindings.TryOffSelectToSpeakContextMenuClicked(
  3398  		js.Pointer(&ret), js.Pointer(&exception),
  3399  		callback.Ref(),
  3400  	)
  3401  
  3402  	return
  3403  }
  3404  
  3405  // HasFuncHasOnSelectToSpeakContextMenuClicked returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.hasListener" exists.
  3406  func HasFuncHasOnSelectToSpeakContextMenuClicked() bool {
  3407  	return js.True == bindings.HasFuncHasOnSelectToSpeakContextMenuClicked()
  3408  }
  3409  
  3410  // FuncHasOnSelectToSpeakContextMenuClicked returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.hasListener".
  3411  func FuncHasOnSelectToSpeakContextMenuClicked() (fn js.Func[func(callback js.Func[func()]) bool]) {
  3412  	bindings.FuncHasOnSelectToSpeakContextMenuClicked(
  3413  		js.Pointer(&fn),
  3414  	)
  3415  	return
  3416  }
  3417  
  3418  // HasOnSelectToSpeakContextMenuClicked calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.hasListener" directly.
  3419  func HasOnSelectToSpeakContextMenuClicked(callback js.Func[func()]) (ret bool) {
  3420  	bindings.CallHasOnSelectToSpeakContextMenuClicked(
  3421  		js.Pointer(&ret),
  3422  		callback.Ref(),
  3423  	)
  3424  
  3425  	return
  3426  }
  3427  
  3428  // TryHasOnSelectToSpeakContextMenuClicked calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakContextMenuClicked.hasListener"
  3429  // in a try/catch block and returns (_, err, ok = false) when it went through
  3430  // the catch clause.
  3431  func TryHasOnSelectToSpeakContextMenuClicked(callback js.Func[func()]) (ret bool, exception js.Any, ok bool) {
  3432  	ok = js.True == bindings.TryHasOnSelectToSpeakContextMenuClicked(
  3433  		js.Pointer(&ret), js.Pointer(&exception),
  3434  		callback.Ref(),
  3435  	)
  3436  
  3437  	return
  3438  }
  3439  
  3440  type OnSelectToSpeakKeysPressedChangedEventCallbackFunc func(this js.Ref, keyCodes js.Array[int64]) js.Ref
  3441  
  3442  func (fn OnSelectToSpeakKeysPressedChangedEventCallbackFunc) Register() js.Func[func(keyCodes js.Array[int64])] {
  3443  	return js.RegisterCallback[func(keyCodes js.Array[int64])](
  3444  		fn, abi.FuncPCABIInternal(fn),
  3445  	)
  3446  }
  3447  
  3448  func (fn OnSelectToSpeakKeysPressedChangedEventCallbackFunc) DispatchCallback(
  3449  	targetPC uintptr, ctx *js.CallbackContext,
  3450  ) {
  3451  	args := ctx.Args()
  3452  	if len(args) != 1+1 /* js this */ ||
  3453  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3454  		js.ThrowInvalidCallbackInvocation()
  3455  	}
  3456  
  3457  	if ctx.Return(fn(
  3458  		args[0],
  3459  
  3460  		js.Array[int64]{}.FromRef(args[0+1]),
  3461  	)) {
  3462  		return
  3463  	}
  3464  
  3465  	js.ThrowCallbackValueNotReturned()
  3466  }
  3467  
  3468  type OnSelectToSpeakKeysPressedChangedEventCallback[T any] struct {
  3469  	Fn  func(arg T, this js.Ref, keyCodes js.Array[int64]) js.Ref
  3470  	Arg T
  3471  }
  3472  
  3473  func (cb *OnSelectToSpeakKeysPressedChangedEventCallback[T]) Register() js.Func[func(keyCodes js.Array[int64])] {
  3474  	return js.RegisterCallback[func(keyCodes js.Array[int64])](
  3475  		cb, abi.FuncPCABIInternal(cb.Fn),
  3476  	)
  3477  }
  3478  
  3479  func (cb *OnSelectToSpeakKeysPressedChangedEventCallback[T]) DispatchCallback(
  3480  	targetPC uintptr, ctx *js.CallbackContext,
  3481  ) {
  3482  	args := ctx.Args()
  3483  	if len(args) != 1+1 /* js this */ ||
  3484  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3485  		js.ThrowInvalidCallbackInvocation()
  3486  	}
  3487  
  3488  	if ctx.Return(cb.Fn(
  3489  		cb.Arg,
  3490  		args[0],
  3491  
  3492  		js.Array[int64]{}.FromRef(args[0+1]),
  3493  	)) {
  3494  		return
  3495  	}
  3496  
  3497  	js.ThrowCallbackValueNotReturned()
  3498  }
  3499  
  3500  // HasFuncOnSelectToSpeakKeysPressedChanged returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.addListener" exists.
  3501  func HasFuncOnSelectToSpeakKeysPressedChanged() bool {
  3502  	return js.True == bindings.HasFuncOnSelectToSpeakKeysPressedChanged()
  3503  }
  3504  
  3505  // FuncOnSelectToSpeakKeysPressedChanged returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.addListener".
  3506  func FuncOnSelectToSpeakKeysPressedChanged() (fn js.Func[func(callback js.Func[func(keyCodes js.Array[int64])])]) {
  3507  	bindings.FuncOnSelectToSpeakKeysPressedChanged(
  3508  		js.Pointer(&fn),
  3509  	)
  3510  	return
  3511  }
  3512  
  3513  // OnSelectToSpeakKeysPressedChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.addListener" directly.
  3514  func OnSelectToSpeakKeysPressedChanged(callback js.Func[func(keyCodes js.Array[int64])]) (ret js.Void) {
  3515  	bindings.CallOnSelectToSpeakKeysPressedChanged(
  3516  		js.Pointer(&ret),
  3517  		callback.Ref(),
  3518  	)
  3519  
  3520  	return
  3521  }
  3522  
  3523  // TryOnSelectToSpeakKeysPressedChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.addListener"
  3524  // in a try/catch block and returns (_, err, ok = false) when it went through
  3525  // the catch clause.
  3526  func TryOnSelectToSpeakKeysPressedChanged(callback js.Func[func(keyCodes js.Array[int64])]) (ret js.Void, exception js.Any, ok bool) {
  3527  	ok = js.True == bindings.TryOnSelectToSpeakKeysPressedChanged(
  3528  		js.Pointer(&ret), js.Pointer(&exception),
  3529  		callback.Ref(),
  3530  	)
  3531  
  3532  	return
  3533  }
  3534  
  3535  // HasFuncOffSelectToSpeakKeysPressedChanged returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.removeListener" exists.
  3536  func HasFuncOffSelectToSpeakKeysPressedChanged() bool {
  3537  	return js.True == bindings.HasFuncOffSelectToSpeakKeysPressedChanged()
  3538  }
  3539  
  3540  // FuncOffSelectToSpeakKeysPressedChanged returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.removeListener".
  3541  func FuncOffSelectToSpeakKeysPressedChanged() (fn js.Func[func(callback js.Func[func(keyCodes js.Array[int64])])]) {
  3542  	bindings.FuncOffSelectToSpeakKeysPressedChanged(
  3543  		js.Pointer(&fn),
  3544  	)
  3545  	return
  3546  }
  3547  
  3548  // OffSelectToSpeakKeysPressedChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.removeListener" directly.
  3549  func OffSelectToSpeakKeysPressedChanged(callback js.Func[func(keyCodes js.Array[int64])]) (ret js.Void) {
  3550  	bindings.CallOffSelectToSpeakKeysPressedChanged(
  3551  		js.Pointer(&ret),
  3552  		callback.Ref(),
  3553  	)
  3554  
  3555  	return
  3556  }
  3557  
  3558  // TryOffSelectToSpeakKeysPressedChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.removeListener"
  3559  // in a try/catch block and returns (_, err, ok = false) when it went through
  3560  // the catch clause.
  3561  func TryOffSelectToSpeakKeysPressedChanged(callback js.Func[func(keyCodes js.Array[int64])]) (ret js.Void, exception js.Any, ok bool) {
  3562  	ok = js.True == bindings.TryOffSelectToSpeakKeysPressedChanged(
  3563  		js.Pointer(&ret), js.Pointer(&exception),
  3564  		callback.Ref(),
  3565  	)
  3566  
  3567  	return
  3568  }
  3569  
  3570  // HasFuncHasOnSelectToSpeakKeysPressedChanged returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.hasListener" exists.
  3571  func HasFuncHasOnSelectToSpeakKeysPressedChanged() bool {
  3572  	return js.True == bindings.HasFuncHasOnSelectToSpeakKeysPressedChanged()
  3573  }
  3574  
  3575  // FuncHasOnSelectToSpeakKeysPressedChanged returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.hasListener".
  3576  func FuncHasOnSelectToSpeakKeysPressedChanged() (fn js.Func[func(callback js.Func[func(keyCodes js.Array[int64])]) bool]) {
  3577  	bindings.FuncHasOnSelectToSpeakKeysPressedChanged(
  3578  		js.Pointer(&fn),
  3579  	)
  3580  	return
  3581  }
  3582  
  3583  // HasOnSelectToSpeakKeysPressedChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.hasListener" directly.
  3584  func HasOnSelectToSpeakKeysPressedChanged(callback js.Func[func(keyCodes js.Array[int64])]) (ret bool) {
  3585  	bindings.CallHasOnSelectToSpeakKeysPressedChanged(
  3586  		js.Pointer(&ret),
  3587  		callback.Ref(),
  3588  	)
  3589  
  3590  	return
  3591  }
  3592  
  3593  // TryHasOnSelectToSpeakKeysPressedChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakKeysPressedChanged.hasListener"
  3594  // in a try/catch block and returns (_, err, ok = false) when it went through
  3595  // the catch clause.
  3596  func TryHasOnSelectToSpeakKeysPressedChanged(callback js.Func[func(keyCodes js.Array[int64])]) (ret bool, exception js.Any, ok bool) {
  3597  	ok = js.True == bindings.TryHasOnSelectToSpeakKeysPressedChanged(
  3598  		js.Pointer(&ret), js.Pointer(&exception),
  3599  		callback.Ref(),
  3600  	)
  3601  
  3602  	return
  3603  }
  3604  
  3605  type OnSelectToSpeakMouseChangedEventCallbackFunc func(this js.Ref, typ SyntheticMouseEventType, x int64, y int64) js.Ref
  3606  
  3607  func (fn OnSelectToSpeakMouseChangedEventCallbackFunc) Register() js.Func[func(typ SyntheticMouseEventType, x int64, y int64)] {
  3608  	return js.RegisterCallback[func(typ SyntheticMouseEventType, x int64, y int64)](
  3609  		fn, abi.FuncPCABIInternal(fn),
  3610  	)
  3611  }
  3612  
  3613  func (fn OnSelectToSpeakMouseChangedEventCallbackFunc) DispatchCallback(
  3614  	targetPC uintptr, ctx *js.CallbackContext,
  3615  ) {
  3616  	args := ctx.Args()
  3617  	if len(args) != 3+1 /* js this */ ||
  3618  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3619  		js.ThrowInvalidCallbackInvocation()
  3620  	}
  3621  
  3622  	if ctx.Return(fn(
  3623  		args[0],
  3624  
  3625  		SyntheticMouseEventType(0).FromRef(args[0+1]),
  3626  		js.BigInt[int64]{}.FromRef(args[1+1]).Get(),
  3627  		js.BigInt[int64]{}.FromRef(args[2+1]).Get(),
  3628  	)) {
  3629  		return
  3630  	}
  3631  
  3632  	js.ThrowCallbackValueNotReturned()
  3633  }
  3634  
  3635  type OnSelectToSpeakMouseChangedEventCallback[T any] struct {
  3636  	Fn  func(arg T, this js.Ref, typ SyntheticMouseEventType, x int64, y int64) js.Ref
  3637  	Arg T
  3638  }
  3639  
  3640  func (cb *OnSelectToSpeakMouseChangedEventCallback[T]) Register() js.Func[func(typ SyntheticMouseEventType, x int64, y int64)] {
  3641  	return js.RegisterCallback[func(typ SyntheticMouseEventType, x int64, y int64)](
  3642  		cb, abi.FuncPCABIInternal(cb.Fn),
  3643  	)
  3644  }
  3645  
  3646  func (cb *OnSelectToSpeakMouseChangedEventCallback[T]) DispatchCallback(
  3647  	targetPC uintptr, ctx *js.CallbackContext,
  3648  ) {
  3649  	args := ctx.Args()
  3650  	if len(args) != 3+1 /* js this */ ||
  3651  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3652  		js.ThrowInvalidCallbackInvocation()
  3653  	}
  3654  
  3655  	if ctx.Return(cb.Fn(
  3656  		cb.Arg,
  3657  		args[0],
  3658  
  3659  		SyntheticMouseEventType(0).FromRef(args[0+1]),
  3660  		js.BigInt[int64]{}.FromRef(args[1+1]).Get(),
  3661  		js.BigInt[int64]{}.FromRef(args[2+1]).Get(),
  3662  	)) {
  3663  		return
  3664  	}
  3665  
  3666  	js.ThrowCallbackValueNotReturned()
  3667  }
  3668  
  3669  // HasFuncOnSelectToSpeakMouseChanged returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.addListener" exists.
  3670  func HasFuncOnSelectToSpeakMouseChanged() bool {
  3671  	return js.True == bindings.HasFuncOnSelectToSpeakMouseChanged()
  3672  }
  3673  
  3674  // FuncOnSelectToSpeakMouseChanged returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.addListener".
  3675  func FuncOnSelectToSpeakMouseChanged() (fn js.Func[func(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)])]) {
  3676  	bindings.FuncOnSelectToSpeakMouseChanged(
  3677  		js.Pointer(&fn),
  3678  	)
  3679  	return
  3680  }
  3681  
  3682  // OnSelectToSpeakMouseChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.addListener" directly.
  3683  func OnSelectToSpeakMouseChanged(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) (ret js.Void) {
  3684  	bindings.CallOnSelectToSpeakMouseChanged(
  3685  		js.Pointer(&ret),
  3686  		callback.Ref(),
  3687  	)
  3688  
  3689  	return
  3690  }
  3691  
  3692  // TryOnSelectToSpeakMouseChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.addListener"
  3693  // in a try/catch block and returns (_, err, ok = false) when it went through
  3694  // the catch clause.
  3695  func TryOnSelectToSpeakMouseChanged(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) (ret js.Void, exception js.Any, ok bool) {
  3696  	ok = js.True == bindings.TryOnSelectToSpeakMouseChanged(
  3697  		js.Pointer(&ret), js.Pointer(&exception),
  3698  		callback.Ref(),
  3699  	)
  3700  
  3701  	return
  3702  }
  3703  
  3704  // HasFuncOffSelectToSpeakMouseChanged returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.removeListener" exists.
  3705  func HasFuncOffSelectToSpeakMouseChanged() bool {
  3706  	return js.True == bindings.HasFuncOffSelectToSpeakMouseChanged()
  3707  }
  3708  
  3709  // FuncOffSelectToSpeakMouseChanged returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.removeListener".
  3710  func FuncOffSelectToSpeakMouseChanged() (fn js.Func[func(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)])]) {
  3711  	bindings.FuncOffSelectToSpeakMouseChanged(
  3712  		js.Pointer(&fn),
  3713  	)
  3714  	return
  3715  }
  3716  
  3717  // OffSelectToSpeakMouseChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.removeListener" directly.
  3718  func OffSelectToSpeakMouseChanged(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) (ret js.Void) {
  3719  	bindings.CallOffSelectToSpeakMouseChanged(
  3720  		js.Pointer(&ret),
  3721  		callback.Ref(),
  3722  	)
  3723  
  3724  	return
  3725  }
  3726  
  3727  // TryOffSelectToSpeakMouseChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.removeListener"
  3728  // in a try/catch block and returns (_, err, ok = false) when it went through
  3729  // the catch clause.
  3730  func TryOffSelectToSpeakMouseChanged(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) (ret js.Void, exception js.Any, ok bool) {
  3731  	ok = js.True == bindings.TryOffSelectToSpeakMouseChanged(
  3732  		js.Pointer(&ret), js.Pointer(&exception),
  3733  		callback.Ref(),
  3734  	)
  3735  
  3736  	return
  3737  }
  3738  
  3739  // HasFuncHasOnSelectToSpeakMouseChanged returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.hasListener" exists.
  3740  func HasFuncHasOnSelectToSpeakMouseChanged() bool {
  3741  	return js.True == bindings.HasFuncHasOnSelectToSpeakMouseChanged()
  3742  }
  3743  
  3744  // FuncHasOnSelectToSpeakMouseChanged returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.hasListener".
  3745  func FuncHasOnSelectToSpeakMouseChanged() (fn js.Func[func(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) bool]) {
  3746  	bindings.FuncHasOnSelectToSpeakMouseChanged(
  3747  		js.Pointer(&fn),
  3748  	)
  3749  	return
  3750  }
  3751  
  3752  // HasOnSelectToSpeakMouseChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.hasListener" directly.
  3753  func HasOnSelectToSpeakMouseChanged(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) (ret bool) {
  3754  	bindings.CallHasOnSelectToSpeakMouseChanged(
  3755  		js.Pointer(&ret),
  3756  		callback.Ref(),
  3757  	)
  3758  
  3759  	return
  3760  }
  3761  
  3762  // TryHasOnSelectToSpeakMouseChanged calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakMouseChanged.hasListener"
  3763  // in a try/catch block and returns (_, err, ok = false) when it went through
  3764  // the catch clause.
  3765  func TryHasOnSelectToSpeakMouseChanged(callback js.Func[func(typ SyntheticMouseEventType, x int64, y int64)]) (ret bool, exception js.Any, ok bool) {
  3766  	ok = js.True == bindings.TryHasOnSelectToSpeakMouseChanged(
  3767  		js.Pointer(&ret), js.Pointer(&exception),
  3768  		callback.Ref(),
  3769  	)
  3770  
  3771  	return
  3772  }
  3773  
  3774  type OnSelectToSpeakPanelActionEventCallbackFunc func(this js.Ref, action SelectToSpeakPanelAction, value float64) js.Ref
  3775  
  3776  func (fn OnSelectToSpeakPanelActionEventCallbackFunc) Register() js.Func[func(action SelectToSpeakPanelAction, value float64)] {
  3777  	return js.RegisterCallback[func(action SelectToSpeakPanelAction, value float64)](
  3778  		fn, abi.FuncPCABIInternal(fn),
  3779  	)
  3780  }
  3781  
  3782  func (fn OnSelectToSpeakPanelActionEventCallbackFunc) DispatchCallback(
  3783  	targetPC uintptr, ctx *js.CallbackContext,
  3784  ) {
  3785  	args := ctx.Args()
  3786  	if len(args) != 2+1 /* js this */ ||
  3787  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3788  		js.ThrowInvalidCallbackInvocation()
  3789  	}
  3790  
  3791  	if ctx.Return(fn(
  3792  		args[0],
  3793  
  3794  		SelectToSpeakPanelAction(0).FromRef(args[0+1]),
  3795  		js.Number[float64]{}.FromRef(args[1+1]).Get(),
  3796  	)) {
  3797  		return
  3798  	}
  3799  
  3800  	js.ThrowCallbackValueNotReturned()
  3801  }
  3802  
  3803  type OnSelectToSpeakPanelActionEventCallback[T any] struct {
  3804  	Fn  func(arg T, this js.Ref, action SelectToSpeakPanelAction, value float64) js.Ref
  3805  	Arg T
  3806  }
  3807  
  3808  func (cb *OnSelectToSpeakPanelActionEventCallback[T]) Register() js.Func[func(action SelectToSpeakPanelAction, value float64)] {
  3809  	return js.RegisterCallback[func(action SelectToSpeakPanelAction, value float64)](
  3810  		cb, abi.FuncPCABIInternal(cb.Fn),
  3811  	)
  3812  }
  3813  
  3814  func (cb *OnSelectToSpeakPanelActionEventCallback[T]) DispatchCallback(
  3815  	targetPC uintptr, ctx *js.CallbackContext,
  3816  ) {
  3817  	args := ctx.Args()
  3818  	if len(args) != 2+1 /* js this */ ||
  3819  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3820  		js.ThrowInvalidCallbackInvocation()
  3821  	}
  3822  
  3823  	if ctx.Return(cb.Fn(
  3824  		cb.Arg,
  3825  		args[0],
  3826  
  3827  		SelectToSpeakPanelAction(0).FromRef(args[0+1]),
  3828  		js.Number[float64]{}.FromRef(args[1+1]).Get(),
  3829  	)) {
  3830  		return
  3831  	}
  3832  
  3833  	js.ThrowCallbackValueNotReturned()
  3834  }
  3835  
  3836  // HasFuncOnSelectToSpeakPanelAction returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.addListener" exists.
  3837  func HasFuncOnSelectToSpeakPanelAction() bool {
  3838  	return js.True == bindings.HasFuncOnSelectToSpeakPanelAction()
  3839  }
  3840  
  3841  // FuncOnSelectToSpeakPanelAction returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.addListener".
  3842  func FuncOnSelectToSpeakPanelAction() (fn js.Func[func(callback js.Func[func(action SelectToSpeakPanelAction, value float64)])]) {
  3843  	bindings.FuncOnSelectToSpeakPanelAction(
  3844  		js.Pointer(&fn),
  3845  	)
  3846  	return
  3847  }
  3848  
  3849  // OnSelectToSpeakPanelAction calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.addListener" directly.
  3850  func OnSelectToSpeakPanelAction(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) (ret js.Void) {
  3851  	bindings.CallOnSelectToSpeakPanelAction(
  3852  		js.Pointer(&ret),
  3853  		callback.Ref(),
  3854  	)
  3855  
  3856  	return
  3857  }
  3858  
  3859  // TryOnSelectToSpeakPanelAction calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.addListener"
  3860  // in a try/catch block and returns (_, err, ok = false) when it went through
  3861  // the catch clause.
  3862  func TryOnSelectToSpeakPanelAction(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) (ret js.Void, exception js.Any, ok bool) {
  3863  	ok = js.True == bindings.TryOnSelectToSpeakPanelAction(
  3864  		js.Pointer(&ret), js.Pointer(&exception),
  3865  		callback.Ref(),
  3866  	)
  3867  
  3868  	return
  3869  }
  3870  
  3871  // HasFuncOffSelectToSpeakPanelAction returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.removeListener" exists.
  3872  func HasFuncOffSelectToSpeakPanelAction() bool {
  3873  	return js.True == bindings.HasFuncOffSelectToSpeakPanelAction()
  3874  }
  3875  
  3876  // FuncOffSelectToSpeakPanelAction returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.removeListener".
  3877  func FuncOffSelectToSpeakPanelAction() (fn js.Func[func(callback js.Func[func(action SelectToSpeakPanelAction, value float64)])]) {
  3878  	bindings.FuncOffSelectToSpeakPanelAction(
  3879  		js.Pointer(&fn),
  3880  	)
  3881  	return
  3882  }
  3883  
  3884  // OffSelectToSpeakPanelAction calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.removeListener" directly.
  3885  func OffSelectToSpeakPanelAction(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) (ret js.Void) {
  3886  	bindings.CallOffSelectToSpeakPanelAction(
  3887  		js.Pointer(&ret),
  3888  		callback.Ref(),
  3889  	)
  3890  
  3891  	return
  3892  }
  3893  
  3894  // TryOffSelectToSpeakPanelAction calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.removeListener"
  3895  // in a try/catch block and returns (_, err, ok = false) when it went through
  3896  // the catch clause.
  3897  func TryOffSelectToSpeakPanelAction(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) (ret js.Void, exception js.Any, ok bool) {
  3898  	ok = js.True == bindings.TryOffSelectToSpeakPanelAction(
  3899  		js.Pointer(&ret), js.Pointer(&exception),
  3900  		callback.Ref(),
  3901  	)
  3902  
  3903  	return
  3904  }
  3905  
  3906  // HasFuncHasOnSelectToSpeakPanelAction returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.hasListener" exists.
  3907  func HasFuncHasOnSelectToSpeakPanelAction() bool {
  3908  	return js.True == bindings.HasFuncHasOnSelectToSpeakPanelAction()
  3909  }
  3910  
  3911  // FuncHasOnSelectToSpeakPanelAction returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.hasListener".
  3912  func FuncHasOnSelectToSpeakPanelAction() (fn js.Func[func(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) bool]) {
  3913  	bindings.FuncHasOnSelectToSpeakPanelAction(
  3914  		js.Pointer(&fn),
  3915  	)
  3916  	return
  3917  }
  3918  
  3919  // HasOnSelectToSpeakPanelAction calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.hasListener" directly.
  3920  func HasOnSelectToSpeakPanelAction(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) (ret bool) {
  3921  	bindings.CallHasOnSelectToSpeakPanelAction(
  3922  		js.Pointer(&ret),
  3923  		callback.Ref(),
  3924  	)
  3925  
  3926  	return
  3927  }
  3928  
  3929  // TryHasOnSelectToSpeakPanelAction calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakPanelAction.hasListener"
  3930  // in a try/catch block and returns (_, err, ok = false) when it went through
  3931  // the catch clause.
  3932  func TryHasOnSelectToSpeakPanelAction(callback js.Func[func(action SelectToSpeakPanelAction, value float64)]) (ret bool, exception js.Any, ok bool) {
  3933  	ok = js.True == bindings.TryHasOnSelectToSpeakPanelAction(
  3934  		js.Pointer(&ret), js.Pointer(&exception),
  3935  		callback.Ref(),
  3936  	)
  3937  
  3938  	return
  3939  }
  3940  
  3941  type OnSelectToSpeakStateChangeRequestedEventCallbackFunc func(this js.Ref) js.Ref
  3942  
  3943  func (fn OnSelectToSpeakStateChangeRequestedEventCallbackFunc) Register() js.Func[func()] {
  3944  	return js.RegisterCallback[func()](
  3945  		fn, abi.FuncPCABIInternal(fn),
  3946  	)
  3947  }
  3948  
  3949  func (fn OnSelectToSpeakStateChangeRequestedEventCallbackFunc) DispatchCallback(
  3950  	targetPC uintptr, ctx *js.CallbackContext,
  3951  ) {
  3952  	args := ctx.Args()
  3953  	if len(args) != 0+1 /* js this */ ||
  3954  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  3955  		js.ThrowInvalidCallbackInvocation()
  3956  	}
  3957  
  3958  	if ctx.Return(fn(
  3959  		args[0],
  3960  	)) {
  3961  		return
  3962  	}
  3963  
  3964  	js.ThrowCallbackValueNotReturned()
  3965  }
  3966  
  3967  type OnSelectToSpeakStateChangeRequestedEventCallback[T any] struct {
  3968  	Fn  func(arg T, this js.Ref) js.Ref
  3969  	Arg T
  3970  }
  3971  
  3972  func (cb *OnSelectToSpeakStateChangeRequestedEventCallback[T]) Register() js.Func[func()] {
  3973  	return js.RegisterCallback[func()](
  3974  		cb, abi.FuncPCABIInternal(cb.Fn),
  3975  	)
  3976  }
  3977  
  3978  func (cb *OnSelectToSpeakStateChangeRequestedEventCallback[T]) DispatchCallback(
  3979  	targetPC uintptr, ctx *js.CallbackContext,
  3980  ) {
  3981  	args := ctx.Args()
  3982  	if len(args) != 0+1 /* js this */ ||
  3983  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  3984  		js.ThrowInvalidCallbackInvocation()
  3985  	}
  3986  
  3987  	if ctx.Return(cb.Fn(
  3988  		cb.Arg,
  3989  		args[0],
  3990  	)) {
  3991  		return
  3992  	}
  3993  
  3994  	js.ThrowCallbackValueNotReturned()
  3995  }
  3996  
  3997  // HasFuncOnSelectToSpeakStateChangeRequested returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.addListener" exists.
  3998  func HasFuncOnSelectToSpeakStateChangeRequested() bool {
  3999  	return js.True == bindings.HasFuncOnSelectToSpeakStateChangeRequested()
  4000  }
  4001  
  4002  // FuncOnSelectToSpeakStateChangeRequested returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.addListener".
  4003  func FuncOnSelectToSpeakStateChangeRequested() (fn js.Func[func(callback js.Func[func()])]) {
  4004  	bindings.FuncOnSelectToSpeakStateChangeRequested(
  4005  		js.Pointer(&fn),
  4006  	)
  4007  	return
  4008  }
  4009  
  4010  // OnSelectToSpeakStateChangeRequested calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.addListener" directly.
  4011  func OnSelectToSpeakStateChangeRequested(callback js.Func[func()]) (ret js.Void) {
  4012  	bindings.CallOnSelectToSpeakStateChangeRequested(
  4013  		js.Pointer(&ret),
  4014  		callback.Ref(),
  4015  	)
  4016  
  4017  	return
  4018  }
  4019  
  4020  // TryOnSelectToSpeakStateChangeRequested calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.addListener"
  4021  // in a try/catch block and returns (_, err, ok = false) when it went through
  4022  // the catch clause.
  4023  func TryOnSelectToSpeakStateChangeRequested(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4024  	ok = js.True == bindings.TryOnSelectToSpeakStateChangeRequested(
  4025  		js.Pointer(&ret), js.Pointer(&exception),
  4026  		callback.Ref(),
  4027  	)
  4028  
  4029  	return
  4030  }
  4031  
  4032  // HasFuncOffSelectToSpeakStateChangeRequested returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.removeListener" exists.
  4033  func HasFuncOffSelectToSpeakStateChangeRequested() bool {
  4034  	return js.True == bindings.HasFuncOffSelectToSpeakStateChangeRequested()
  4035  }
  4036  
  4037  // FuncOffSelectToSpeakStateChangeRequested returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.removeListener".
  4038  func FuncOffSelectToSpeakStateChangeRequested() (fn js.Func[func(callback js.Func[func()])]) {
  4039  	bindings.FuncOffSelectToSpeakStateChangeRequested(
  4040  		js.Pointer(&fn),
  4041  	)
  4042  	return
  4043  }
  4044  
  4045  // OffSelectToSpeakStateChangeRequested calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.removeListener" directly.
  4046  func OffSelectToSpeakStateChangeRequested(callback js.Func[func()]) (ret js.Void) {
  4047  	bindings.CallOffSelectToSpeakStateChangeRequested(
  4048  		js.Pointer(&ret),
  4049  		callback.Ref(),
  4050  	)
  4051  
  4052  	return
  4053  }
  4054  
  4055  // TryOffSelectToSpeakStateChangeRequested calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.removeListener"
  4056  // in a try/catch block and returns (_, err, ok = false) when it went through
  4057  // the catch clause.
  4058  func TryOffSelectToSpeakStateChangeRequested(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4059  	ok = js.True == bindings.TryOffSelectToSpeakStateChangeRequested(
  4060  		js.Pointer(&ret), js.Pointer(&exception),
  4061  		callback.Ref(),
  4062  	)
  4063  
  4064  	return
  4065  }
  4066  
  4067  // HasFuncHasOnSelectToSpeakStateChangeRequested returns true if the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.hasListener" exists.
  4068  func HasFuncHasOnSelectToSpeakStateChangeRequested() bool {
  4069  	return js.True == bindings.HasFuncHasOnSelectToSpeakStateChangeRequested()
  4070  }
  4071  
  4072  // FuncHasOnSelectToSpeakStateChangeRequested returns the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.hasListener".
  4073  func FuncHasOnSelectToSpeakStateChangeRequested() (fn js.Func[func(callback js.Func[func()]) bool]) {
  4074  	bindings.FuncHasOnSelectToSpeakStateChangeRequested(
  4075  		js.Pointer(&fn),
  4076  	)
  4077  	return
  4078  }
  4079  
  4080  // HasOnSelectToSpeakStateChangeRequested calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.hasListener" directly.
  4081  func HasOnSelectToSpeakStateChangeRequested(callback js.Func[func()]) (ret bool) {
  4082  	bindings.CallHasOnSelectToSpeakStateChangeRequested(
  4083  		js.Pointer(&ret),
  4084  		callback.Ref(),
  4085  	)
  4086  
  4087  	return
  4088  }
  4089  
  4090  // TryHasOnSelectToSpeakStateChangeRequested calls the function "WEBEXT.accessibilityPrivate.onSelectToSpeakStateChangeRequested.hasListener"
  4091  // in a try/catch block and returns (_, err, ok = false) when it went through
  4092  // the catch clause.
  4093  func TryHasOnSelectToSpeakStateChangeRequested(callback js.Func[func()]) (ret bool, exception js.Any, ok bool) {
  4094  	ok = js.True == bindings.TryHasOnSelectToSpeakStateChangeRequested(
  4095  		js.Pointer(&ret), js.Pointer(&exception),
  4096  		callback.Ref(),
  4097  	)
  4098  
  4099  	return
  4100  }
  4101  
  4102  type OnShowChromeVoxTutorialEventCallbackFunc func(this js.Ref) js.Ref
  4103  
  4104  func (fn OnShowChromeVoxTutorialEventCallbackFunc) Register() js.Func[func()] {
  4105  	return js.RegisterCallback[func()](
  4106  		fn, abi.FuncPCABIInternal(fn),
  4107  	)
  4108  }
  4109  
  4110  func (fn OnShowChromeVoxTutorialEventCallbackFunc) DispatchCallback(
  4111  	targetPC uintptr, ctx *js.CallbackContext,
  4112  ) {
  4113  	args := ctx.Args()
  4114  	if len(args) != 0+1 /* js this */ ||
  4115  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  4116  		js.ThrowInvalidCallbackInvocation()
  4117  	}
  4118  
  4119  	if ctx.Return(fn(
  4120  		args[0],
  4121  	)) {
  4122  		return
  4123  	}
  4124  
  4125  	js.ThrowCallbackValueNotReturned()
  4126  }
  4127  
  4128  type OnShowChromeVoxTutorialEventCallback[T any] struct {
  4129  	Fn  func(arg T, this js.Ref) js.Ref
  4130  	Arg T
  4131  }
  4132  
  4133  func (cb *OnShowChromeVoxTutorialEventCallback[T]) Register() js.Func[func()] {
  4134  	return js.RegisterCallback[func()](
  4135  		cb, abi.FuncPCABIInternal(cb.Fn),
  4136  	)
  4137  }
  4138  
  4139  func (cb *OnShowChromeVoxTutorialEventCallback[T]) DispatchCallback(
  4140  	targetPC uintptr, ctx *js.CallbackContext,
  4141  ) {
  4142  	args := ctx.Args()
  4143  	if len(args) != 0+1 /* js this */ ||
  4144  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  4145  		js.ThrowInvalidCallbackInvocation()
  4146  	}
  4147  
  4148  	if ctx.Return(cb.Fn(
  4149  		cb.Arg,
  4150  		args[0],
  4151  	)) {
  4152  		return
  4153  	}
  4154  
  4155  	js.ThrowCallbackValueNotReturned()
  4156  }
  4157  
  4158  // HasFuncOnShowChromeVoxTutorial returns true if the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.addListener" exists.
  4159  func HasFuncOnShowChromeVoxTutorial() bool {
  4160  	return js.True == bindings.HasFuncOnShowChromeVoxTutorial()
  4161  }
  4162  
  4163  // FuncOnShowChromeVoxTutorial returns the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.addListener".
  4164  func FuncOnShowChromeVoxTutorial() (fn js.Func[func(callback js.Func[func()])]) {
  4165  	bindings.FuncOnShowChromeVoxTutorial(
  4166  		js.Pointer(&fn),
  4167  	)
  4168  	return
  4169  }
  4170  
  4171  // OnShowChromeVoxTutorial calls the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.addListener" directly.
  4172  func OnShowChromeVoxTutorial(callback js.Func[func()]) (ret js.Void) {
  4173  	bindings.CallOnShowChromeVoxTutorial(
  4174  		js.Pointer(&ret),
  4175  		callback.Ref(),
  4176  	)
  4177  
  4178  	return
  4179  }
  4180  
  4181  // TryOnShowChromeVoxTutorial calls the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.addListener"
  4182  // in a try/catch block and returns (_, err, ok = false) when it went through
  4183  // the catch clause.
  4184  func TryOnShowChromeVoxTutorial(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4185  	ok = js.True == bindings.TryOnShowChromeVoxTutorial(
  4186  		js.Pointer(&ret), js.Pointer(&exception),
  4187  		callback.Ref(),
  4188  	)
  4189  
  4190  	return
  4191  }
  4192  
  4193  // HasFuncOffShowChromeVoxTutorial returns true if the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.removeListener" exists.
  4194  func HasFuncOffShowChromeVoxTutorial() bool {
  4195  	return js.True == bindings.HasFuncOffShowChromeVoxTutorial()
  4196  }
  4197  
  4198  // FuncOffShowChromeVoxTutorial returns the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.removeListener".
  4199  func FuncOffShowChromeVoxTutorial() (fn js.Func[func(callback js.Func[func()])]) {
  4200  	bindings.FuncOffShowChromeVoxTutorial(
  4201  		js.Pointer(&fn),
  4202  	)
  4203  	return
  4204  }
  4205  
  4206  // OffShowChromeVoxTutorial calls the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.removeListener" directly.
  4207  func OffShowChromeVoxTutorial(callback js.Func[func()]) (ret js.Void) {
  4208  	bindings.CallOffShowChromeVoxTutorial(
  4209  		js.Pointer(&ret),
  4210  		callback.Ref(),
  4211  	)
  4212  
  4213  	return
  4214  }
  4215  
  4216  // TryOffShowChromeVoxTutorial calls the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.removeListener"
  4217  // in a try/catch block and returns (_, err, ok = false) when it went through
  4218  // the catch clause.
  4219  func TryOffShowChromeVoxTutorial(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4220  	ok = js.True == bindings.TryOffShowChromeVoxTutorial(
  4221  		js.Pointer(&ret), js.Pointer(&exception),
  4222  		callback.Ref(),
  4223  	)
  4224  
  4225  	return
  4226  }
  4227  
  4228  // HasFuncHasOnShowChromeVoxTutorial returns true if the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.hasListener" exists.
  4229  func HasFuncHasOnShowChromeVoxTutorial() bool {
  4230  	return js.True == bindings.HasFuncHasOnShowChromeVoxTutorial()
  4231  }
  4232  
  4233  // FuncHasOnShowChromeVoxTutorial returns the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.hasListener".
  4234  func FuncHasOnShowChromeVoxTutorial() (fn js.Func[func(callback js.Func[func()]) bool]) {
  4235  	bindings.FuncHasOnShowChromeVoxTutorial(
  4236  		js.Pointer(&fn),
  4237  	)
  4238  	return
  4239  }
  4240  
  4241  // HasOnShowChromeVoxTutorial calls the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.hasListener" directly.
  4242  func HasOnShowChromeVoxTutorial(callback js.Func[func()]) (ret bool) {
  4243  	bindings.CallHasOnShowChromeVoxTutorial(
  4244  		js.Pointer(&ret),
  4245  		callback.Ref(),
  4246  	)
  4247  
  4248  	return
  4249  }
  4250  
  4251  // TryHasOnShowChromeVoxTutorial calls the function "WEBEXT.accessibilityPrivate.onShowChromeVoxTutorial.hasListener"
  4252  // in a try/catch block and returns (_, err, ok = false) when it went through
  4253  // the catch clause.
  4254  func TryHasOnShowChromeVoxTutorial(callback js.Func[func()]) (ret bool, exception js.Any, ok bool) {
  4255  	ok = js.True == bindings.TryHasOnShowChromeVoxTutorial(
  4256  		js.Pointer(&ret), js.Pointer(&exception),
  4257  		callback.Ref(),
  4258  	)
  4259  
  4260  	return
  4261  }
  4262  
  4263  type OnSwitchAccessCommandEventCallbackFunc func(this js.Ref, command SwitchAccessCommand) js.Ref
  4264  
  4265  func (fn OnSwitchAccessCommandEventCallbackFunc) Register() js.Func[func(command SwitchAccessCommand)] {
  4266  	return js.RegisterCallback[func(command SwitchAccessCommand)](
  4267  		fn, abi.FuncPCABIInternal(fn),
  4268  	)
  4269  }
  4270  
  4271  func (fn OnSwitchAccessCommandEventCallbackFunc) DispatchCallback(
  4272  	targetPC uintptr, ctx *js.CallbackContext,
  4273  ) {
  4274  	args := ctx.Args()
  4275  	if len(args) != 1+1 /* js this */ ||
  4276  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  4277  		js.ThrowInvalidCallbackInvocation()
  4278  	}
  4279  
  4280  	if ctx.Return(fn(
  4281  		args[0],
  4282  
  4283  		SwitchAccessCommand(0).FromRef(args[0+1]),
  4284  	)) {
  4285  		return
  4286  	}
  4287  
  4288  	js.ThrowCallbackValueNotReturned()
  4289  }
  4290  
  4291  type OnSwitchAccessCommandEventCallback[T any] struct {
  4292  	Fn  func(arg T, this js.Ref, command SwitchAccessCommand) js.Ref
  4293  	Arg T
  4294  }
  4295  
  4296  func (cb *OnSwitchAccessCommandEventCallback[T]) Register() js.Func[func(command SwitchAccessCommand)] {
  4297  	return js.RegisterCallback[func(command SwitchAccessCommand)](
  4298  		cb, abi.FuncPCABIInternal(cb.Fn),
  4299  	)
  4300  }
  4301  
  4302  func (cb *OnSwitchAccessCommandEventCallback[T]) DispatchCallback(
  4303  	targetPC uintptr, ctx *js.CallbackContext,
  4304  ) {
  4305  	args := ctx.Args()
  4306  	if len(args) != 1+1 /* js this */ ||
  4307  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  4308  		js.ThrowInvalidCallbackInvocation()
  4309  	}
  4310  
  4311  	if ctx.Return(cb.Fn(
  4312  		cb.Arg,
  4313  		args[0],
  4314  
  4315  		SwitchAccessCommand(0).FromRef(args[0+1]),
  4316  	)) {
  4317  		return
  4318  	}
  4319  
  4320  	js.ThrowCallbackValueNotReturned()
  4321  }
  4322  
  4323  // HasFuncOnSwitchAccessCommand returns true if the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.addListener" exists.
  4324  func HasFuncOnSwitchAccessCommand() bool {
  4325  	return js.True == bindings.HasFuncOnSwitchAccessCommand()
  4326  }
  4327  
  4328  // FuncOnSwitchAccessCommand returns the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.addListener".
  4329  func FuncOnSwitchAccessCommand() (fn js.Func[func(callback js.Func[func(command SwitchAccessCommand)])]) {
  4330  	bindings.FuncOnSwitchAccessCommand(
  4331  		js.Pointer(&fn),
  4332  	)
  4333  	return
  4334  }
  4335  
  4336  // OnSwitchAccessCommand calls the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.addListener" directly.
  4337  func OnSwitchAccessCommand(callback js.Func[func(command SwitchAccessCommand)]) (ret js.Void) {
  4338  	bindings.CallOnSwitchAccessCommand(
  4339  		js.Pointer(&ret),
  4340  		callback.Ref(),
  4341  	)
  4342  
  4343  	return
  4344  }
  4345  
  4346  // TryOnSwitchAccessCommand calls the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.addListener"
  4347  // in a try/catch block and returns (_, err, ok = false) when it went through
  4348  // the catch clause.
  4349  func TryOnSwitchAccessCommand(callback js.Func[func(command SwitchAccessCommand)]) (ret js.Void, exception js.Any, ok bool) {
  4350  	ok = js.True == bindings.TryOnSwitchAccessCommand(
  4351  		js.Pointer(&ret), js.Pointer(&exception),
  4352  		callback.Ref(),
  4353  	)
  4354  
  4355  	return
  4356  }
  4357  
  4358  // HasFuncOffSwitchAccessCommand returns true if the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.removeListener" exists.
  4359  func HasFuncOffSwitchAccessCommand() bool {
  4360  	return js.True == bindings.HasFuncOffSwitchAccessCommand()
  4361  }
  4362  
  4363  // FuncOffSwitchAccessCommand returns the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.removeListener".
  4364  func FuncOffSwitchAccessCommand() (fn js.Func[func(callback js.Func[func(command SwitchAccessCommand)])]) {
  4365  	bindings.FuncOffSwitchAccessCommand(
  4366  		js.Pointer(&fn),
  4367  	)
  4368  	return
  4369  }
  4370  
  4371  // OffSwitchAccessCommand calls the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.removeListener" directly.
  4372  func OffSwitchAccessCommand(callback js.Func[func(command SwitchAccessCommand)]) (ret js.Void) {
  4373  	bindings.CallOffSwitchAccessCommand(
  4374  		js.Pointer(&ret),
  4375  		callback.Ref(),
  4376  	)
  4377  
  4378  	return
  4379  }
  4380  
  4381  // TryOffSwitchAccessCommand calls the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.removeListener"
  4382  // in a try/catch block and returns (_, err, ok = false) when it went through
  4383  // the catch clause.
  4384  func TryOffSwitchAccessCommand(callback js.Func[func(command SwitchAccessCommand)]) (ret js.Void, exception js.Any, ok bool) {
  4385  	ok = js.True == bindings.TryOffSwitchAccessCommand(
  4386  		js.Pointer(&ret), js.Pointer(&exception),
  4387  		callback.Ref(),
  4388  	)
  4389  
  4390  	return
  4391  }
  4392  
  4393  // HasFuncHasOnSwitchAccessCommand returns true if the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.hasListener" exists.
  4394  func HasFuncHasOnSwitchAccessCommand() bool {
  4395  	return js.True == bindings.HasFuncHasOnSwitchAccessCommand()
  4396  }
  4397  
  4398  // FuncHasOnSwitchAccessCommand returns the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.hasListener".
  4399  func FuncHasOnSwitchAccessCommand() (fn js.Func[func(callback js.Func[func(command SwitchAccessCommand)]) bool]) {
  4400  	bindings.FuncHasOnSwitchAccessCommand(
  4401  		js.Pointer(&fn),
  4402  	)
  4403  	return
  4404  }
  4405  
  4406  // HasOnSwitchAccessCommand calls the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.hasListener" directly.
  4407  func HasOnSwitchAccessCommand(callback js.Func[func(command SwitchAccessCommand)]) (ret bool) {
  4408  	bindings.CallHasOnSwitchAccessCommand(
  4409  		js.Pointer(&ret),
  4410  		callback.Ref(),
  4411  	)
  4412  
  4413  	return
  4414  }
  4415  
  4416  // TryHasOnSwitchAccessCommand calls the function "WEBEXT.accessibilityPrivate.onSwitchAccessCommand.hasListener"
  4417  // in a try/catch block and returns (_, err, ok = false) when it went through
  4418  // the catch clause.
  4419  func TryHasOnSwitchAccessCommand(callback js.Func[func(command SwitchAccessCommand)]) (ret bool, exception js.Any, ok bool) {
  4420  	ok = js.True == bindings.TryHasOnSwitchAccessCommand(
  4421  		js.Pointer(&ret), js.Pointer(&exception),
  4422  		callback.Ref(),
  4423  	)
  4424  
  4425  	return
  4426  }
  4427  
  4428  type OnToggleDictationEventCallbackFunc func(this js.Ref, activated bool) js.Ref
  4429  
  4430  func (fn OnToggleDictationEventCallbackFunc) Register() js.Func[func(activated bool)] {
  4431  	return js.RegisterCallback[func(activated bool)](
  4432  		fn, abi.FuncPCABIInternal(fn),
  4433  	)
  4434  }
  4435  
  4436  func (fn OnToggleDictationEventCallbackFunc) DispatchCallback(
  4437  	targetPC uintptr, ctx *js.CallbackContext,
  4438  ) {
  4439  	args := ctx.Args()
  4440  	if len(args) != 1+1 /* js this */ ||
  4441  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  4442  		js.ThrowInvalidCallbackInvocation()
  4443  	}
  4444  
  4445  	if ctx.Return(fn(
  4446  		args[0],
  4447  
  4448  		args[0+1] == js.True,
  4449  	)) {
  4450  		return
  4451  	}
  4452  
  4453  	js.ThrowCallbackValueNotReturned()
  4454  }
  4455  
  4456  type OnToggleDictationEventCallback[T any] struct {
  4457  	Fn  func(arg T, this js.Ref, activated bool) js.Ref
  4458  	Arg T
  4459  }
  4460  
  4461  func (cb *OnToggleDictationEventCallback[T]) Register() js.Func[func(activated bool)] {
  4462  	return js.RegisterCallback[func(activated bool)](
  4463  		cb, abi.FuncPCABIInternal(cb.Fn),
  4464  	)
  4465  }
  4466  
  4467  func (cb *OnToggleDictationEventCallback[T]) DispatchCallback(
  4468  	targetPC uintptr, ctx *js.CallbackContext,
  4469  ) {
  4470  	args := ctx.Args()
  4471  	if len(args) != 1+1 /* js this */ ||
  4472  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  4473  		js.ThrowInvalidCallbackInvocation()
  4474  	}
  4475  
  4476  	if ctx.Return(cb.Fn(
  4477  		cb.Arg,
  4478  		args[0],
  4479  
  4480  		args[0+1] == js.True,
  4481  	)) {
  4482  		return
  4483  	}
  4484  
  4485  	js.ThrowCallbackValueNotReturned()
  4486  }
  4487  
  4488  // HasFuncOnToggleDictation returns true if the function "WEBEXT.accessibilityPrivate.onToggleDictation.addListener" exists.
  4489  func HasFuncOnToggleDictation() bool {
  4490  	return js.True == bindings.HasFuncOnToggleDictation()
  4491  }
  4492  
  4493  // FuncOnToggleDictation returns the function "WEBEXT.accessibilityPrivate.onToggleDictation.addListener".
  4494  func FuncOnToggleDictation() (fn js.Func[func(callback js.Func[func(activated bool)])]) {
  4495  	bindings.FuncOnToggleDictation(
  4496  		js.Pointer(&fn),
  4497  	)
  4498  	return
  4499  }
  4500  
  4501  // OnToggleDictation calls the function "WEBEXT.accessibilityPrivate.onToggleDictation.addListener" directly.
  4502  func OnToggleDictation(callback js.Func[func(activated bool)]) (ret js.Void) {
  4503  	bindings.CallOnToggleDictation(
  4504  		js.Pointer(&ret),
  4505  		callback.Ref(),
  4506  	)
  4507  
  4508  	return
  4509  }
  4510  
  4511  // TryOnToggleDictation calls the function "WEBEXT.accessibilityPrivate.onToggleDictation.addListener"
  4512  // in a try/catch block and returns (_, err, ok = false) when it went through
  4513  // the catch clause.
  4514  func TryOnToggleDictation(callback js.Func[func(activated bool)]) (ret js.Void, exception js.Any, ok bool) {
  4515  	ok = js.True == bindings.TryOnToggleDictation(
  4516  		js.Pointer(&ret), js.Pointer(&exception),
  4517  		callback.Ref(),
  4518  	)
  4519  
  4520  	return
  4521  }
  4522  
  4523  // HasFuncOffToggleDictation returns true if the function "WEBEXT.accessibilityPrivate.onToggleDictation.removeListener" exists.
  4524  func HasFuncOffToggleDictation() bool {
  4525  	return js.True == bindings.HasFuncOffToggleDictation()
  4526  }
  4527  
  4528  // FuncOffToggleDictation returns the function "WEBEXT.accessibilityPrivate.onToggleDictation.removeListener".
  4529  func FuncOffToggleDictation() (fn js.Func[func(callback js.Func[func(activated bool)])]) {
  4530  	bindings.FuncOffToggleDictation(
  4531  		js.Pointer(&fn),
  4532  	)
  4533  	return
  4534  }
  4535  
  4536  // OffToggleDictation calls the function "WEBEXT.accessibilityPrivate.onToggleDictation.removeListener" directly.
  4537  func OffToggleDictation(callback js.Func[func(activated bool)]) (ret js.Void) {
  4538  	bindings.CallOffToggleDictation(
  4539  		js.Pointer(&ret),
  4540  		callback.Ref(),
  4541  	)
  4542  
  4543  	return
  4544  }
  4545  
  4546  // TryOffToggleDictation calls the function "WEBEXT.accessibilityPrivate.onToggleDictation.removeListener"
  4547  // in a try/catch block and returns (_, err, ok = false) when it went through
  4548  // the catch clause.
  4549  func TryOffToggleDictation(callback js.Func[func(activated bool)]) (ret js.Void, exception js.Any, ok bool) {
  4550  	ok = js.True == bindings.TryOffToggleDictation(
  4551  		js.Pointer(&ret), js.Pointer(&exception),
  4552  		callback.Ref(),
  4553  	)
  4554  
  4555  	return
  4556  }
  4557  
  4558  // HasFuncHasOnToggleDictation returns true if the function "WEBEXT.accessibilityPrivate.onToggleDictation.hasListener" exists.
  4559  func HasFuncHasOnToggleDictation() bool {
  4560  	return js.True == bindings.HasFuncHasOnToggleDictation()
  4561  }
  4562  
  4563  // FuncHasOnToggleDictation returns the function "WEBEXT.accessibilityPrivate.onToggleDictation.hasListener".
  4564  func FuncHasOnToggleDictation() (fn js.Func[func(callback js.Func[func(activated bool)]) bool]) {
  4565  	bindings.FuncHasOnToggleDictation(
  4566  		js.Pointer(&fn),
  4567  	)
  4568  	return
  4569  }
  4570  
  4571  // HasOnToggleDictation calls the function "WEBEXT.accessibilityPrivate.onToggleDictation.hasListener" directly.
  4572  func HasOnToggleDictation(callback js.Func[func(activated bool)]) (ret bool) {
  4573  	bindings.CallHasOnToggleDictation(
  4574  		js.Pointer(&ret),
  4575  		callback.Ref(),
  4576  	)
  4577  
  4578  	return
  4579  }
  4580  
  4581  // TryHasOnToggleDictation calls the function "WEBEXT.accessibilityPrivate.onToggleDictation.hasListener"
  4582  // in a try/catch block and returns (_, err, ok = false) when it went through
  4583  // the catch clause.
  4584  func TryHasOnToggleDictation(callback js.Func[func(activated bool)]) (ret bool, exception js.Any, ok bool) {
  4585  	ok = js.True == bindings.TryHasOnToggleDictation(
  4586  		js.Pointer(&ret), js.Pointer(&exception),
  4587  		callback.Ref(),
  4588  	)
  4589  
  4590  	return
  4591  }
  4592  
  4593  type OnTwoFingerTouchStartEventCallbackFunc func(this js.Ref) js.Ref
  4594  
  4595  func (fn OnTwoFingerTouchStartEventCallbackFunc) Register() js.Func[func()] {
  4596  	return js.RegisterCallback[func()](
  4597  		fn, abi.FuncPCABIInternal(fn),
  4598  	)
  4599  }
  4600  
  4601  func (fn OnTwoFingerTouchStartEventCallbackFunc) DispatchCallback(
  4602  	targetPC uintptr, ctx *js.CallbackContext,
  4603  ) {
  4604  	args := ctx.Args()
  4605  	if len(args) != 0+1 /* js this */ ||
  4606  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  4607  		js.ThrowInvalidCallbackInvocation()
  4608  	}
  4609  
  4610  	if ctx.Return(fn(
  4611  		args[0],
  4612  	)) {
  4613  		return
  4614  	}
  4615  
  4616  	js.ThrowCallbackValueNotReturned()
  4617  }
  4618  
  4619  type OnTwoFingerTouchStartEventCallback[T any] struct {
  4620  	Fn  func(arg T, this js.Ref) js.Ref
  4621  	Arg T
  4622  }
  4623  
  4624  func (cb *OnTwoFingerTouchStartEventCallback[T]) Register() js.Func[func()] {
  4625  	return js.RegisterCallback[func()](
  4626  		cb, abi.FuncPCABIInternal(cb.Fn),
  4627  	)
  4628  }
  4629  
  4630  func (cb *OnTwoFingerTouchStartEventCallback[T]) DispatchCallback(
  4631  	targetPC uintptr, ctx *js.CallbackContext,
  4632  ) {
  4633  	args := ctx.Args()
  4634  	if len(args) != 0+1 /* js this */ ||
  4635  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  4636  		js.ThrowInvalidCallbackInvocation()
  4637  	}
  4638  
  4639  	if ctx.Return(cb.Fn(
  4640  		cb.Arg,
  4641  		args[0],
  4642  	)) {
  4643  		return
  4644  	}
  4645  
  4646  	js.ThrowCallbackValueNotReturned()
  4647  }
  4648  
  4649  // HasFuncOnTwoFingerTouchStart returns true if the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.addListener" exists.
  4650  func HasFuncOnTwoFingerTouchStart() bool {
  4651  	return js.True == bindings.HasFuncOnTwoFingerTouchStart()
  4652  }
  4653  
  4654  // FuncOnTwoFingerTouchStart returns the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.addListener".
  4655  func FuncOnTwoFingerTouchStart() (fn js.Func[func(callback js.Func[func()])]) {
  4656  	bindings.FuncOnTwoFingerTouchStart(
  4657  		js.Pointer(&fn),
  4658  	)
  4659  	return
  4660  }
  4661  
  4662  // OnTwoFingerTouchStart calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.addListener" directly.
  4663  func OnTwoFingerTouchStart(callback js.Func[func()]) (ret js.Void) {
  4664  	bindings.CallOnTwoFingerTouchStart(
  4665  		js.Pointer(&ret),
  4666  		callback.Ref(),
  4667  	)
  4668  
  4669  	return
  4670  }
  4671  
  4672  // TryOnTwoFingerTouchStart calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.addListener"
  4673  // in a try/catch block and returns (_, err, ok = false) when it went through
  4674  // the catch clause.
  4675  func TryOnTwoFingerTouchStart(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4676  	ok = js.True == bindings.TryOnTwoFingerTouchStart(
  4677  		js.Pointer(&ret), js.Pointer(&exception),
  4678  		callback.Ref(),
  4679  	)
  4680  
  4681  	return
  4682  }
  4683  
  4684  // HasFuncOffTwoFingerTouchStart returns true if the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.removeListener" exists.
  4685  func HasFuncOffTwoFingerTouchStart() bool {
  4686  	return js.True == bindings.HasFuncOffTwoFingerTouchStart()
  4687  }
  4688  
  4689  // FuncOffTwoFingerTouchStart returns the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.removeListener".
  4690  func FuncOffTwoFingerTouchStart() (fn js.Func[func(callback js.Func[func()])]) {
  4691  	bindings.FuncOffTwoFingerTouchStart(
  4692  		js.Pointer(&fn),
  4693  	)
  4694  	return
  4695  }
  4696  
  4697  // OffTwoFingerTouchStart calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.removeListener" directly.
  4698  func OffTwoFingerTouchStart(callback js.Func[func()]) (ret js.Void) {
  4699  	bindings.CallOffTwoFingerTouchStart(
  4700  		js.Pointer(&ret),
  4701  		callback.Ref(),
  4702  	)
  4703  
  4704  	return
  4705  }
  4706  
  4707  // TryOffTwoFingerTouchStart calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.removeListener"
  4708  // in a try/catch block and returns (_, err, ok = false) when it went through
  4709  // the catch clause.
  4710  func TryOffTwoFingerTouchStart(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4711  	ok = js.True == bindings.TryOffTwoFingerTouchStart(
  4712  		js.Pointer(&ret), js.Pointer(&exception),
  4713  		callback.Ref(),
  4714  	)
  4715  
  4716  	return
  4717  }
  4718  
  4719  // HasFuncHasOnTwoFingerTouchStart returns true if the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.hasListener" exists.
  4720  func HasFuncHasOnTwoFingerTouchStart() bool {
  4721  	return js.True == bindings.HasFuncHasOnTwoFingerTouchStart()
  4722  }
  4723  
  4724  // FuncHasOnTwoFingerTouchStart returns the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.hasListener".
  4725  func FuncHasOnTwoFingerTouchStart() (fn js.Func[func(callback js.Func[func()]) bool]) {
  4726  	bindings.FuncHasOnTwoFingerTouchStart(
  4727  		js.Pointer(&fn),
  4728  	)
  4729  	return
  4730  }
  4731  
  4732  // HasOnTwoFingerTouchStart calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.hasListener" directly.
  4733  func HasOnTwoFingerTouchStart(callback js.Func[func()]) (ret bool) {
  4734  	bindings.CallHasOnTwoFingerTouchStart(
  4735  		js.Pointer(&ret),
  4736  		callback.Ref(),
  4737  	)
  4738  
  4739  	return
  4740  }
  4741  
  4742  // TryHasOnTwoFingerTouchStart calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStart.hasListener"
  4743  // in a try/catch block and returns (_, err, ok = false) when it went through
  4744  // the catch clause.
  4745  func TryHasOnTwoFingerTouchStart(callback js.Func[func()]) (ret bool, exception js.Any, ok bool) {
  4746  	ok = js.True == bindings.TryHasOnTwoFingerTouchStart(
  4747  		js.Pointer(&ret), js.Pointer(&exception),
  4748  		callback.Ref(),
  4749  	)
  4750  
  4751  	return
  4752  }
  4753  
  4754  type OnTwoFingerTouchStopEventCallbackFunc func(this js.Ref) js.Ref
  4755  
  4756  func (fn OnTwoFingerTouchStopEventCallbackFunc) Register() js.Func[func()] {
  4757  	return js.RegisterCallback[func()](
  4758  		fn, abi.FuncPCABIInternal(fn),
  4759  	)
  4760  }
  4761  
  4762  func (fn OnTwoFingerTouchStopEventCallbackFunc) DispatchCallback(
  4763  	targetPC uintptr, ctx *js.CallbackContext,
  4764  ) {
  4765  	args := ctx.Args()
  4766  	if len(args) != 0+1 /* js this */ ||
  4767  		targetPC != uintptr(abi.FuncPCABIInternal(fn)) {
  4768  		js.ThrowInvalidCallbackInvocation()
  4769  	}
  4770  
  4771  	if ctx.Return(fn(
  4772  		args[0],
  4773  	)) {
  4774  		return
  4775  	}
  4776  
  4777  	js.ThrowCallbackValueNotReturned()
  4778  }
  4779  
  4780  type OnTwoFingerTouchStopEventCallback[T any] struct {
  4781  	Fn  func(arg T, this js.Ref) js.Ref
  4782  	Arg T
  4783  }
  4784  
  4785  func (cb *OnTwoFingerTouchStopEventCallback[T]) Register() js.Func[func()] {
  4786  	return js.RegisterCallback[func()](
  4787  		cb, abi.FuncPCABIInternal(cb.Fn),
  4788  	)
  4789  }
  4790  
  4791  func (cb *OnTwoFingerTouchStopEventCallback[T]) DispatchCallback(
  4792  	targetPC uintptr, ctx *js.CallbackContext,
  4793  ) {
  4794  	args := ctx.Args()
  4795  	if len(args) != 0+1 /* js this */ ||
  4796  		targetPC != uintptr(abi.FuncPCABIInternal(cb.Fn)) {
  4797  		js.ThrowInvalidCallbackInvocation()
  4798  	}
  4799  
  4800  	if ctx.Return(cb.Fn(
  4801  		cb.Arg,
  4802  		args[0],
  4803  	)) {
  4804  		return
  4805  	}
  4806  
  4807  	js.ThrowCallbackValueNotReturned()
  4808  }
  4809  
  4810  // HasFuncOnTwoFingerTouchStop returns true if the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.addListener" exists.
  4811  func HasFuncOnTwoFingerTouchStop() bool {
  4812  	return js.True == bindings.HasFuncOnTwoFingerTouchStop()
  4813  }
  4814  
  4815  // FuncOnTwoFingerTouchStop returns the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.addListener".
  4816  func FuncOnTwoFingerTouchStop() (fn js.Func[func(callback js.Func[func()])]) {
  4817  	bindings.FuncOnTwoFingerTouchStop(
  4818  		js.Pointer(&fn),
  4819  	)
  4820  	return
  4821  }
  4822  
  4823  // OnTwoFingerTouchStop calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.addListener" directly.
  4824  func OnTwoFingerTouchStop(callback js.Func[func()]) (ret js.Void) {
  4825  	bindings.CallOnTwoFingerTouchStop(
  4826  		js.Pointer(&ret),
  4827  		callback.Ref(),
  4828  	)
  4829  
  4830  	return
  4831  }
  4832  
  4833  // TryOnTwoFingerTouchStop calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.addListener"
  4834  // in a try/catch block and returns (_, err, ok = false) when it went through
  4835  // the catch clause.
  4836  func TryOnTwoFingerTouchStop(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4837  	ok = js.True == bindings.TryOnTwoFingerTouchStop(
  4838  		js.Pointer(&ret), js.Pointer(&exception),
  4839  		callback.Ref(),
  4840  	)
  4841  
  4842  	return
  4843  }
  4844  
  4845  // HasFuncOffTwoFingerTouchStop returns true if the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.removeListener" exists.
  4846  func HasFuncOffTwoFingerTouchStop() bool {
  4847  	return js.True == bindings.HasFuncOffTwoFingerTouchStop()
  4848  }
  4849  
  4850  // FuncOffTwoFingerTouchStop returns the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.removeListener".
  4851  func FuncOffTwoFingerTouchStop() (fn js.Func[func(callback js.Func[func()])]) {
  4852  	bindings.FuncOffTwoFingerTouchStop(
  4853  		js.Pointer(&fn),
  4854  	)
  4855  	return
  4856  }
  4857  
  4858  // OffTwoFingerTouchStop calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.removeListener" directly.
  4859  func OffTwoFingerTouchStop(callback js.Func[func()]) (ret js.Void) {
  4860  	bindings.CallOffTwoFingerTouchStop(
  4861  		js.Pointer(&ret),
  4862  		callback.Ref(),
  4863  	)
  4864  
  4865  	return
  4866  }
  4867  
  4868  // TryOffTwoFingerTouchStop calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.removeListener"
  4869  // in a try/catch block and returns (_, err, ok = false) when it went through
  4870  // the catch clause.
  4871  func TryOffTwoFingerTouchStop(callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool) {
  4872  	ok = js.True == bindings.TryOffTwoFingerTouchStop(
  4873  		js.Pointer(&ret), js.Pointer(&exception),
  4874  		callback.Ref(),
  4875  	)
  4876  
  4877  	return
  4878  }
  4879  
  4880  // HasFuncHasOnTwoFingerTouchStop returns true if the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.hasListener" exists.
  4881  func HasFuncHasOnTwoFingerTouchStop() bool {
  4882  	return js.True == bindings.HasFuncHasOnTwoFingerTouchStop()
  4883  }
  4884  
  4885  // FuncHasOnTwoFingerTouchStop returns the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.hasListener".
  4886  func FuncHasOnTwoFingerTouchStop() (fn js.Func[func(callback js.Func[func()]) bool]) {
  4887  	bindings.FuncHasOnTwoFingerTouchStop(
  4888  		js.Pointer(&fn),
  4889  	)
  4890  	return
  4891  }
  4892  
  4893  // HasOnTwoFingerTouchStop calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.hasListener" directly.
  4894  func HasOnTwoFingerTouchStop(callback js.Func[func()]) (ret bool) {
  4895  	bindings.CallHasOnTwoFingerTouchStop(
  4896  		js.Pointer(&ret),
  4897  		callback.Ref(),
  4898  	)
  4899  
  4900  	return
  4901  }
  4902  
  4903  // TryHasOnTwoFingerTouchStop calls the function "WEBEXT.accessibilityPrivate.onTwoFingerTouchStop.hasListener"
  4904  // in a try/catch block and returns (_, err, ok = false) when it went through
  4905  // the catch clause.
  4906  func TryHasOnTwoFingerTouchStop(callback js.Func[func()]) (ret bool, exception js.Any, ok bool) {
  4907  	ok = js.True == bindings.TryHasOnTwoFingerTouchStop(
  4908  		js.Pointer(&ret), js.Pointer(&exception),
  4909  		callback.Ref(),
  4910  	)
  4911  
  4912  	return
  4913  }
  4914  
  4915  // HasFuncOpenSettingsSubpage returns true if the function "WEBEXT.accessibilityPrivate.openSettingsSubpage" exists.
  4916  func HasFuncOpenSettingsSubpage() bool {
  4917  	return js.True == bindings.HasFuncOpenSettingsSubpage()
  4918  }
  4919  
  4920  // FuncOpenSettingsSubpage returns the function "WEBEXT.accessibilityPrivate.openSettingsSubpage".
  4921  func FuncOpenSettingsSubpage() (fn js.Func[func(subpage js.String)]) {
  4922  	bindings.FuncOpenSettingsSubpage(
  4923  		js.Pointer(&fn),
  4924  	)
  4925  	return
  4926  }
  4927  
  4928  // OpenSettingsSubpage calls the function "WEBEXT.accessibilityPrivate.openSettingsSubpage" directly.
  4929  func OpenSettingsSubpage(subpage js.String) (ret js.Void) {
  4930  	bindings.CallOpenSettingsSubpage(
  4931  		js.Pointer(&ret),
  4932  		subpage.Ref(),
  4933  	)
  4934  
  4935  	return
  4936  }
  4937  
  4938  // TryOpenSettingsSubpage calls the function "WEBEXT.accessibilityPrivate.openSettingsSubpage"
  4939  // in a try/catch block and returns (_, err, ok = false) when it went through
  4940  // the catch clause.
  4941  func TryOpenSettingsSubpage(subpage js.String) (ret js.Void, exception js.Any, ok bool) {
  4942  	ok = js.True == bindings.TryOpenSettingsSubpage(
  4943  		js.Pointer(&ret), js.Pointer(&exception),
  4944  		subpage.Ref(),
  4945  	)
  4946  
  4947  	return
  4948  }
  4949  
  4950  // HasFuncPerformAcceleratorAction returns true if the function "WEBEXT.accessibilityPrivate.performAcceleratorAction" exists.
  4951  func HasFuncPerformAcceleratorAction() bool {
  4952  	return js.True == bindings.HasFuncPerformAcceleratorAction()
  4953  }
  4954  
  4955  // FuncPerformAcceleratorAction returns the function "WEBEXT.accessibilityPrivate.performAcceleratorAction".
  4956  func FuncPerformAcceleratorAction() (fn js.Func[func(acceleratorAction AcceleratorAction)]) {
  4957  	bindings.FuncPerformAcceleratorAction(
  4958  		js.Pointer(&fn),
  4959  	)
  4960  	return
  4961  }
  4962  
  4963  // PerformAcceleratorAction calls the function "WEBEXT.accessibilityPrivate.performAcceleratorAction" directly.
  4964  func PerformAcceleratorAction(acceleratorAction AcceleratorAction) (ret js.Void) {
  4965  	bindings.CallPerformAcceleratorAction(
  4966  		js.Pointer(&ret),
  4967  		uint32(acceleratorAction),
  4968  	)
  4969  
  4970  	return
  4971  }
  4972  
  4973  // TryPerformAcceleratorAction calls the function "WEBEXT.accessibilityPrivate.performAcceleratorAction"
  4974  // in a try/catch block and returns (_, err, ok = false) when it went through
  4975  // the catch clause.
  4976  func TryPerformAcceleratorAction(acceleratorAction AcceleratorAction) (ret js.Void, exception js.Any, ok bool) {
  4977  	ok = js.True == bindings.TryPerformAcceleratorAction(
  4978  		js.Pointer(&ret), js.Pointer(&exception),
  4979  		uint32(acceleratorAction),
  4980  	)
  4981  
  4982  	return
  4983  }
  4984  
  4985  // HasFuncSendSyntheticKeyEvent returns true if the function "WEBEXT.accessibilityPrivate.sendSyntheticKeyEvent" exists.
  4986  func HasFuncSendSyntheticKeyEvent() bool {
  4987  	return js.True == bindings.HasFuncSendSyntheticKeyEvent()
  4988  }
  4989  
  4990  // FuncSendSyntheticKeyEvent returns the function "WEBEXT.accessibilityPrivate.sendSyntheticKeyEvent".
  4991  func FuncSendSyntheticKeyEvent() (fn js.Func[func(keyEvent SyntheticKeyboardEvent, useRewriters bool)]) {
  4992  	bindings.FuncSendSyntheticKeyEvent(
  4993  		js.Pointer(&fn),
  4994  	)
  4995  	return
  4996  }
  4997  
  4998  // SendSyntheticKeyEvent calls the function "WEBEXT.accessibilityPrivate.sendSyntheticKeyEvent" directly.
  4999  func SendSyntheticKeyEvent(keyEvent SyntheticKeyboardEvent, useRewriters bool) (ret js.Void) {
  5000  	bindings.CallSendSyntheticKeyEvent(
  5001  		js.Pointer(&ret),
  5002  		js.Pointer(&keyEvent),
  5003  		js.Bool(bool(useRewriters)),
  5004  	)
  5005  
  5006  	return
  5007  }
  5008  
  5009  // TrySendSyntheticKeyEvent calls the function "WEBEXT.accessibilityPrivate.sendSyntheticKeyEvent"
  5010  // in a try/catch block and returns (_, err, ok = false) when it went through
  5011  // the catch clause.
  5012  func TrySendSyntheticKeyEvent(keyEvent SyntheticKeyboardEvent, useRewriters bool) (ret js.Void, exception js.Any, ok bool) {
  5013  	ok = js.True == bindings.TrySendSyntheticKeyEvent(
  5014  		js.Pointer(&ret), js.Pointer(&exception),
  5015  		js.Pointer(&keyEvent),
  5016  		js.Bool(bool(useRewriters)),
  5017  	)
  5018  
  5019  	return
  5020  }
  5021  
  5022  // HasFuncSendSyntheticMouseEvent returns true if the function "WEBEXT.accessibilityPrivate.sendSyntheticMouseEvent" exists.
  5023  func HasFuncSendSyntheticMouseEvent() bool {
  5024  	return js.True == bindings.HasFuncSendSyntheticMouseEvent()
  5025  }
  5026  
  5027  // FuncSendSyntheticMouseEvent returns the function "WEBEXT.accessibilityPrivate.sendSyntheticMouseEvent".
  5028  func FuncSendSyntheticMouseEvent() (fn js.Func[func(mouseEvent SyntheticMouseEvent)]) {
  5029  	bindings.FuncSendSyntheticMouseEvent(
  5030  		js.Pointer(&fn),
  5031  	)
  5032  	return
  5033  }
  5034  
  5035  // SendSyntheticMouseEvent calls the function "WEBEXT.accessibilityPrivate.sendSyntheticMouseEvent" directly.
  5036  func SendSyntheticMouseEvent(mouseEvent SyntheticMouseEvent) (ret js.Void) {
  5037  	bindings.CallSendSyntheticMouseEvent(
  5038  		js.Pointer(&ret),
  5039  		js.Pointer(&mouseEvent),
  5040  	)
  5041  
  5042  	return
  5043  }
  5044  
  5045  // TrySendSyntheticMouseEvent calls the function "WEBEXT.accessibilityPrivate.sendSyntheticMouseEvent"
  5046  // in a try/catch block and returns (_, err, ok = false) when it went through
  5047  // the catch clause.
  5048  func TrySendSyntheticMouseEvent(mouseEvent SyntheticMouseEvent) (ret js.Void, exception js.Any, ok bool) {
  5049  	ok = js.True == bindings.TrySendSyntheticMouseEvent(
  5050  		js.Pointer(&ret), js.Pointer(&exception),
  5051  		js.Pointer(&mouseEvent),
  5052  	)
  5053  
  5054  	return
  5055  }
  5056  
  5057  // HasFuncSetFocusRings returns true if the function "WEBEXT.accessibilityPrivate.setFocusRings" exists.
  5058  func HasFuncSetFocusRings() bool {
  5059  	return js.True == bindings.HasFuncSetFocusRings()
  5060  }
  5061  
  5062  // FuncSetFocusRings returns the function "WEBEXT.accessibilityPrivate.setFocusRings".
  5063  func FuncSetFocusRings() (fn js.Func[func(focusRings js.Array[FocusRingInfo], atType AssistiveTechnologyType)]) {
  5064  	bindings.FuncSetFocusRings(
  5065  		js.Pointer(&fn),
  5066  	)
  5067  	return
  5068  }
  5069  
  5070  // SetFocusRings calls the function "WEBEXT.accessibilityPrivate.setFocusRings" directly.
  5071  func SetFocusRings(focusRings js.Array[FocusRingInfo], atType AssistiveTechnologyType) (ret js.Void) {
  5072  	bindings.CallSetFocusRings(
  5073  		js.Pointer(&ret),
  5074  		focusRings.Ref(),
  5075  		uint32(atType),
  5076  	)
  5077  
  5078  	return
  5079  }
  5080  
  5081  // TrySetFocusRings calls the function "WEBEXT.accessibilityPrivate.setFocusRings"
  5082  // in a try/catch block and returns (_, err, ok = false) when it went through
  5083  // the catch clause.
  5084  func TrySetFocusRings(focusRings js.Array[FocusRingInfo], atType AssistiveTechnologyType) (ret js.Void, exception js.Any, ok bool) {
  5085  	ok = js.True == bindings.TrySetFocusRings(
  5086  		js.Pointer(&ret), js.Pointer(&exception),
  5087  		focusRings.Ref(),
  5088  		uint32(atType),
  5089  	)
  5090  
  5091  	return
  5092  }
  5093  
  5094  // HasFuncSetHighlights returns true if the function "WEBEXT.accessibilityPrivate.setHighlights" exists.
  5095  func HasFuncSetHighlights() bool {
  5096  	return js.True == bindings.HasFuncSetHighlights()
  5097  }
  5098  
  5099  // FuncSetHighlights returns the function "WEBEXT.accessibilityPrivate.setHighlights".
  5100  func FuncSetHighlights() (fn js.Func[func(rects js.Array[ScreenRect], color js.String)]) {
  5101  	bindings.FuncSetHighlights(
  5102  		js.Pointer(&fn),
  5103  	)
  5104  	return
  5105  }
  5106  
  5107  // SetHighlights calls the function "WEBEXT.accessibilityPrivate.setHighlights" directly.
  5108  func SetHighlights(rects js.Array[ScreenRect], color js.String) (ret js.Void) {
  5109  	bindings.CallSetHighlights(
  5110  		js.Pointer(&ret),
  5111  		rects.Ref(),
  5112  		color.Ref(),
  5113  	)
  5114  
  5115  	return
  5116  }
  5117  
  5118  // TrySetHighlights calls the function "WEBEXT.accessibilityPrivate.setHighlights"
  5119  // in a try/catch block and returns (_, err, ok = false) when it went through
  5120  // the catch clause.
  5121  func TrySetHighlights(rects js.Array[ScreenRect], color js.String) (ret js.Void, exception js.Any, ok bool) {
  5122  	ok = js.True == bindings.TrySetHighlights(
  5123  		js.Pointer(&ret), js.Pointer(&exception),
  5124  		rects.Ref(),
  5125  		color.Ref(),
  5126  	)
  5127  
  5128  	return
  5129  }
  5130  
  5131  // HasFuncSetKeyboardListener returns true if the function "WEBEXT.accessibilityPrivate.setKeyboardListener" exists.
  5132  func HasFuncSetKeyboardListener() bool {
  5133  	return js.True == bindings.HasFuncSetKeyboardListener()
  5134  }
  5135  
  5136  // FuncSetKeyboardListener returns the function "WEBEXT.accessibilityPrivate.setKeyboardListener".
  5137  func FuncSetKeyboardListener() (fn js.Func[func(enabled bool, capture bool)]) {
  5138  	bindings.FuncSetKeyboardListener(
  5139  		js.Pointer(&fn),
  5140  	)
  5141  	return
  5142  }
  5143  
  5144  // SetKeyboardListener calls the function "WEBEXT.accessibilityPrivate.setKeyboardListener" directly.
  5145  func SetKeyboardListener(enabled bool, capture bool) (ret js.Void) {
  5146  	bindings.CallSetKeyboardListener(
  5147  		js.Pointer(&ret),
  5148  		js.Bool(bool(enabled)),
  5149  		js.Bool(bool(capture)),
  5150  	)
  5151  
  5152  	return
  5153  }
  5154  
  5155  // TrySetKeyboardListener calls the function "WEBEXT.accessibilityPrivate.setKeyboardListener"
  5156  // in a try/catch block and returns (_, err, ok = false) when it went through
  5157  // the catch clause.
  5158  func TrySetKeyboardListener(enabled bool, capture bool) (ret js.Void, exception js.Any, ok bool) {
  5159  	ok = js.True == bindings.TrySetKeyboardListener(
  5160  		js.Pointer(&ret), js.Pointer(&exception),
  5161  		js.Bool(bool(enabled)),
  5162  		js.Bool(bool(capture)),
  5163  	)
  5164  
  5165  	return
  5166  }
  5167  
  5168  // HasFuncSetNativeAccessibilityEnabled returns true if the function "WEBEXT.accessibilityPrivate.setNativeAccessibilityEnabled" exists.
  5169  func HasFuncSetNativeAccessibilityEnabled() bool {
  5170  	return js.True == bindings.HasFuncSetNativeAccessibilityEnabled()
  5171  }
  5172  
  5173  // FuncSetNativeAccessibilityEnabled returns the function "WEBEXT.accessibilityPrivate.setNativeAccessibilityEnabled".
  5174  func FuncSetNativeAccessibilityEnabled() (fn js.Func[func(enabled bool)]) {
  5175  	bindings.FuncSetNativeAccessibilityEnabled(
  5176  		js.Pointer(&fn),
  5177  	)
  5178  	return
  5179  }
  5180  
  5181  // SetNativeAccessibilityEnabled calls the function "WEBEXT.accessibilityPrivate.setNativeAccessibilityEnabled" directly.
  5182  func SetNativeAccessibilityEnabled(enabled bool) (ret js.Void) {
  5183  	bindings.CallSetNativeAccessibilityEnabled(
  5184  		js.Pointer(&ret),
  5185  		js.Bool(bool(enabled)),
  5186  	)
  5187  
  5188  	return
  5189  }
  5190  
  5191  // TrySetNativeAccessibilityEnabled calls the function "WEBEXT.accessibilityPrivate.setNativeAccessibilityEnabled"
  5192  // in a try/catch block and returns (_, err, ok = false) when it went through
  5193  // the catch clause.
  5194  func TrySetNativeAccessibilityEnabled(enabled bool) (ret js.Void, exception js.Any, ok bool) {
  5195  	ok = js.True == bindings.TrySetNativeAccessibilityEnabled(
  5196  		js.Pointer(&ret), js.Pointer(&exception),
  5197  		js.Bool(bool(enabled)),
  5198  	)
  5199  
  5200  	return
  5201  }
  5202  
  5203  // HasFuncSetNativeChromeVoxArcSupportForCurrentApp returns true if the function "WEBEXT.accessibilityPrivate.setNativeChromeVoxArcSupportForCurrentApp" exists.
  5204  func HasFuncSetNativeChromeVoxArcSupportForCurrentApp() bool {
  5205  	return js.True == bindings.HasFuncSetNativeChromeVoxArcSupportForCurrentApp()
  5206  }
  5207  
  5208  // FuncSetNativeChromeVoxArcSupportForCurrentApp returns the function "WEBEXT.accessibilityPrivate.setNativeChromeVoxArcSupportForCurrentApp".
  5209  func FuncSetNativeChromeVoxArcSupportForCurrentApp() (fn js.Func[func(enabled bool) js.Promise[SetNativeChromeVoxResponse]]) {
  5210  	bindings.FuncSetNativeChromeVoxArcSupportForCurrentApp(
  5211  		js.Pointer(&fn),
  5212  	)
  5213  	return
  5214  }
  5215  
  5216  // SetNativeChromeVoxArcSupportForCurrentApp calls the function "WEBEXT.accessibilityPrivate.setNativeChromeVoxArcSupportForCurrentApp" directly.
  5217  func SetNativeChromeVoxArcSupportForCurrentApp(enabled bool) (ret js.Promise[SetNativeChromeVoxResponse]) {
  5218  	bindings.CallSetNativeChromeVoxArcSupportForCurrentApp(
  5219  		js.Pointer(&ret),
  5220  		js.Bool(bool(enabled)),
  5221  	)
  5222  
  5223  	return
  5224  }
  5225  
  5226  // TrySetNativeChromeVoxArcSupportForCurrentApp calls the function "WEBEXT.accessibilityPrivate.setNativeChromeVoxArcSupportForCurrentApp"
  5227  // in a try/catch block and returns (_, err, ok = false) when it went through
  5228  // the catch clause.
  5229  func TrySetNativeChromeVoxArcSupportForCurrentApp(enabled bool) (ret js.Promise[SetNativeChromeVoxResponse], exception js.Any, ok bool) {
  5230  	ok = js.True == bindings.TrySetNativeChromeVoxArcSupportForCurrentApp(
  5231  		js.Pointer(&ret), js.Pointer(&exception),
  5232  		js.Bool(bool(enabled)),
  5233  	)
  5234  
  5235  	return
  5236  }
  5237  
  5238  // HasFuncSetPointScanState returns true if the function "WEBEXT.accessibilityPrivate.setPointScanState" exists.
  5239  func HasFuncSetPointScanState() bool {
  5240  	return js.True == bindings.HasFuncSetPointScanState()
  5241  }
  5242  
  5243  // FuncSetPointScanState returns the function "WEBEXT.accessibilityPrivate.setPointScanState".
  5244  func FuncSetPointScanState() (fn js.Func[func(state PointScanState)]) {
  5245  	bindings.FuncSetPointScanState(
  5246  		js.Pointer(&fn),
  5247  	)
  5248  	return
  5249  }
  5250  
  5251  // SetPointScanState calls the function "WEBEXT.accessibilityPrivate.setPointScanState" directly.
  5252  func SetPointScanState(state PointScanState) (ret js.Void) {
  5253  	bindings.CallSetPointScanState(
  5254  		js.Pointer(&ret),
  5255  		uint32(state),
  5256  	)
  5257  
  5258  	return
  5259  }
  5260  
  5261  // TrySetPointScanState calls the function "WEBEXT.accessibilityPrivate.setPointScanState"
  5262  // in a try/catch block and returns (_, err, ok = false) when it went through
  5263  // the catch clause.
  5264  func TrySetPointScanState(state PointScanState) (ret js.Void, exception js.Any, ok bool) {
  5265  	ok = js.True == bindings.TrySetPointScanState(
  5266  		js.Pointer(&ret), js.Pointer(&exception),
  5267  		uint32(state),
  5268  	)
  5269  
  5270  	return
  5271  }
  5272  
  5273  // HasFuncSetSelectToSpeakState returns true if the function "WEBEXT.accessibilityPrivate.setSelectToSpeakState" exists.
  5274  func HasFuncSetSelectToSpeakState() bool {
  5275  	return js.True == bindings.HasFuncSetSelectToSpeakState()
  5276  }
  5277  
  5278  // FuncSetSelectToSpeakState returns the function "WEBEXT.accessibilityPrivate.setSelectToSpeakState".
  5279  func FuncSetSelectToSpeakState() (fn js.Func[func(state SelectToSpeakState)]) {
  5280  	bindings.FuncSetSelectToSpeakState(
  5281  		js.Pointer(&fn),
  5282  	)
  5283  	return
  5284  }
  5285  
  5286  // SetSelectToSpeakState calls the function "WEBEXT.accessibilityPrivate.setSelectToSpeakState" directly.
  5287  func SetSelectToSpeakState(state SelectToSpeakState) (ret js.Void) {
  5288  	bindings.CallSetSelectToSpeakState(
  5289  		js.Pointer(&ret),
  5290  		uint32(state),
  5291  	)
  5292  
  5293  	return
  5294  }
  5295  
  5296  // TrySetSelectToSpeakState calls the function "WEBEXT.accessibilityPrivate.setSelectToSpeakState"
  5297  // in a try/catch block and returns (_, err, ok = false) when it went through
  5298  // the catch clause.
  5299  func TrySetSelectToSpeakState(state SelectToSpeakState) (ret js.Void, exception js.Any, ok bool) {
  5300  	ok = js.True == bindings.TrySetSelectToSpeakState(
  5301  		js.Pointer(&ret), js.Pointer(&exception),
  5302  		uint32(state),
  5303  	)
  5304  
  5305  	return
  5306  }
  5307  
  5308  // HasFuncSetVirtualKeyboardVisible returns true if the function "WEBEXT.accessibilityPrivate.setVirtualKeyboardVisible" exists.
  5309  func HasFuncSetVirtualKeyboardVisible() bool {
  5310  	return js.True == bindings.HasFuncSetVirtualKeyboardVisible()
  5311  }
  5312  
  5313  // FuncSetVirtualKeyboardVisible returns the function "WEBEXT.accessibilityPrivate.setVirtualKeyboardVisible".
  5314  func FuncSetVirtualKeyboardVisible() (fn js.Func[func(isVisible bool)]) {
  5315  	bindings.FuncSetVirtualKeyboardVisible(
  5316  		js.Pointer(&fn),
  5317  	)
  5318  	return
  5319  }
  5320  
  5321  // SetVirtualKeyboardVisible calls the function "WEBEXT.accessibilityPrivate.setVirtualKeyboardVisible" directly.
  5322  func SetVirtualKeyboardVisible(isVisible bool) (ret js.Void) {
  5323  	bindings.CallSetVirtualKeyboardVisible(
  5324  		js.Pointer(&ret),
  5325  		js.Bool(bool(isVisible)),
  5326  	)
  5327  
  5328  	return
  5329  }
  5330  
  5331  // TrySetVirtualKeyboardVisible calls the function "WEBEXT.accessibilityPrivate.setVirtualKeyboardVisible"
  5332  // in a try/catch block and returns (_, err, ok = false) when it went through
  5333  // the catch clause.
  5334  func TrySetVirtualKeyboardVisible(isVisible bool) (ret js.Void, exception js.Any, ok bool) {
  5335  	ok = js.True == bindings.TrySetVirtualKeyboardVisible(
  5336  		js.Pointer(&ret), js.Pointer(&exception),
  5337  		js.Bool(bool(isVisible)),
  5338  	)
  5339  
  5340  	return
  5341  }
  5342  
  5343  // HasFuncShowConfirmationDialog returns true if the function "WEBEXT.accessibilityPrivate.showConfirmationDialog" exists.
  5344  func HasFuncShowConfirmationDialog() bool {
  5345  	return js.True == bindings.HasFuncShowConfirmationDialog()
  5346  }
  5347  
  5348  // FuncShowConfirmationDialog returns the function "WEBEXT.accessibilityPrivate.showConfirmationDialog".
  5349  func FuncShowConfirmationDialog() (fn js.Func[func(title js.String, description js.String, cancelName js.String) js.Promise[js.Boolean]]) {
  5350  	bindings.FuncShowConfirmationDialog(
  5351  		js.Pointer(&fn),
  5352  	)
  5353  	return
  5354  }
  5355  
  5356  // ShowConfirmationDialog calls the function "WEBEXT.accessibilityPrivate.showConfirmationDialog" directly.
  5357  func ShowConfirmationDialog(title js.String, description js.String, cancelName js.String) (ret js.Promise[js.Boolean]) {
  5358  	bindings.CallShowConfirmationDialog(
  5359  		js.Pointer(&ret),
  5360  		title.Ref(),
  5361  		description.Ref(),
  5362  		cancelName.Ref(),
  5363  	)
  5364  
  5365  	return
  5366  }
  5367  
  5368  // TryShowConfirmationDialog calls the function "WEBEXT.accessibilityPrivate.showConfirmationDialog"
  5369  // in a try/catch block and returns (_, err, ok = false) when it went through
  5370  // the catch clause.
  5371  func TryShowConfirmationDialog(title js.String, description js.String, cancelName js.String) (ret js.Promise[js.Boolean], exception js.Any, ok bool) {
  5372  	ok = js.True == bindings.TryShowConfirmationDialog(
  5373  		js.Pointer(&ret), js.Pointer(&exception),
  5374  		title.Ref(),
  5375  		description.Ref(),
  5376  		cancelName.Ref(),
  5377  	)
  5378  
  5379  	return
  5380  }
  5381  
  5382  // HasFuncShowToast returns true if the function "WEBEXT.accessibilityPrivate.showToast" exists.
  5383  func HasFuncShowToast() bool {
  5384  	return js.True == bindings.HasFuncShowToast()
  5385  }
  5386  
  5387  // FuncShowToast returns the function "WEBEXT.accessibilityPrivate.showToast".
  5388  func FuncShowToast() (fn js.Func[func(typ ToastType)]) {
  5389  	bindings.FuncShowToast(
  5390  		js.Pointer(&fn),
  5391  	)
  5392  	return
  5393  }
  5394  
  5395  // ShowToast calls the function "WEBEXT.accessibilityPrivate.showToast" directly.
  5396  func ShowToast(typ ToastType) (ret js.Void) {
  5397  	bindings.CallShowToast(
  5398  		js.Pointer(&ret),
  5399  		uint32(typ),
  5400  	)
  5401  
  5402  	return
  5403  }
  5404  
  5405  // TryShowToast calls the function "WEBEXT.accessibilityPrivate.showToast"
  5406  // in a try/catch block and returns (_, err, ok = false) when it went through
  5407  // the catch clause.
  5408  func TryShowToast(typ ToastType) (ret js.Void, exception js.Any, ok bool) {
  5409  	ok = js.True == bindings.TryShowToast(
  5410  		js.Pointer(&ret), js.Pointer(&exception),
  5411  		uint32(typ),
  5412  	)
  5413  
  5414  	return
  5415  }
  5416  
  5417  // HasFuncSilenceSpokenFeedback returns true if the function "WEBEXT.accessibilityPrivate.silenceSpokenFeedback" exists.
  5418  func HasFuncSilenceSpokenFeedback() bool {
  5419  	return js.True == bindings.HasFuncSilenceSpokenFeedback()
  5420  }
  5421  
  5422  // FuncSilenceSpokenFeedback returns the function "WEBEXT.accessibilityPrivate.silenceSpokenFeedback".
  5423  func FuncSilenceSpokenFeedback() (fn js.Func[func()]) {
  5424  	bindings.FuncSilenceSpokenFeedback(
  5425  		js.Pointer(&fn),
  5426  	)
  5427  	return
  5428  }
  5429  
  5430  // SilenceSpokenFeedback calls the function "WEBEXT.accessibilityPrivate.silenceSpokenFeedback" directly.
  5431  func SilenceSpokenFeedback() (ret js.Void) {
  5432  	bindings.CallSilenceSpokenFeedback(
  5433  		js.Pointer(&ret),
  5434  	)
  5435  
  5436  	return
  5437  }
  5438  
  5439  // TrySilenceSpokenFeedback calls the function "WEBEXT.accessibilityPrivate.silenceSpokenFeedback"
  5440  // in a try/catch block and returns (_, err, ok = false) when it went through
  5441  // the catch clause.
  5442  func TrySilenceSpokenFeedback() (ret js.Void, exception js.Any, ok bool) {
  5443  	ok = js.True == bindings.TrySilenceSpokenFeedback(
  5444  		js.Pointer(&ret), js.Pointer(&exception),
  5445  	)
  5446  
  5447  	return
  5448  }
  5449  
  5450  // HasFuncToggleDictation returns true if the function "WEBEXT.accessibilityPrivate.toggleDictation" exists.
  5451  func HasFuncToggleDictation() bool {
  5452  	return js.True == bindings.HasFuncToggleDictation()
  5453  }
  5454  
  5455  // FuncToggleDictation returns the function "WEBEXT.accessibilityPrivate.toggleDictation".
  5456  func FuncToggleDictation() (fn js.Func[func()]) {
  5457  	bindings.FuncToggleDictation(
  5458  		js.Pointer(&fn),
  5459  	)
  5460  	return
  5461  }
  5462  
  5463  // ToggleDictation calls the function "WEBEXT.accessibilityPrivate.toggleDictation" directly.
  5464  func ToggleDictation() (ret js.Void) {
  5465  	bindings.CallToggleDictation(
  5466  		js.Pointer(&ret),
  5467  	)
  5468  
  5469  	return
  5470  }
  5471  
  5472  // TryToggleDictation calls the function "WEBEXT.accessibilityPrivate.toggleDictation"
  5473  // in a try/catch block and returns (_, err, ok = false) when it went through
  5474  // the catch clause.
  5475  func TryToggleDictation() (ret js.Void, exception js.Any, ok bool) {
  5476  	ok = js.True == bindings.TryToggleDictation(
  5477  		js.Pointer(&ret), js.Pointer(&exception),
  5478  	)
  5479  
  5480  	return
  5481  }
  5482  
  5483  // HasFuncUpdateDictationBubble returns true if the function "WEBEXT.accessibilityPrivate.updateDictationBubble" exists.
  5484  func HasFuncUpdateDictationBubble() bool {
  5485  	return js.True == bindings.HasFuncUpdateDictationBubble()
  5486  }
  5487  
  5488  // FuncUpdateDictationBubble returns the function "WEBEXT.accessibilityPrivate.updateDictationBubble".
  5489  func FuncUpdateDictationBubble() (fn js.Func[func(properties DictationBubbleProperties)]) {
  5490  	bindings.FuncUpdateDictationBubble(
  5491  		js.Pointer(&fn),
  5492  	)
  5493  	return
  5494  }
  5495  
  5496  // UpdateDictationBubble calls the function "WEBEXT.accessibilityPrivate.updateDictationBubble" directly.
  5497  func UpdateDictationBubble(properties DictationBubbleProperties) (ret js.Void) {
  5498  	bindings.CallUpdateDictationBubble(
  5499  		js.Pointer(&ret),
  5500  		js.Pointer(&properties),
  5501  	)
  5502  
  5503  	return
  5504  }
  5505  
  5506  // TryUpdateDictationBubble calls the function "WEBEXT.accessibilityPrivate.updateDictationBubble"
  5507  // in a try/catch block and returns (_, err, ok = false) when it went through
  5508  // the catch clause.
  5509  func TryUpdateDictationBubble(properties DictationBubbleProperties) (ret js.Void, exception js.Any, ok bool) {
  5510  	ok = js.True == bindings.TryUpdateDictationBubble(
  5511  		js.Pointer(&ret), js.Pointer(&exception),
  5512  		js.Pointer(&properties),
  5513  	)
  5514  
  5515  	return
  5516  }
  5517  
  5518  // HasFuncUpdateSelectToSpeakPanel returns true if the function "WEBEXT.accessibilityPrivate.updateSelectToSpeakPanel" exists.
  5519  func HasFuncUpdateSelectToSpeakPanel() bool {
  5520  	return js.True == bindings.HasFuncUpdateSelectToSpeakPanel()
  5521  }
  5522  
  5523  // FuncUpdateSelectToSpeakPanel returns the function "WEBEXT.accessibilityPrivate.updateSelectToSpeakPanel".
  5524  func FuncUpdateSelectToSpeakPanel() (fn js.Func[func(show bool, anchor ScreenRect, isPaused bool, speed float64)]) {
  5525  	bindings.FuncUpdateSelectToSpeakPanel(
  5526  		js.Pointer(&fn),
  5527  	)
  5528  	return
  5529  }
  5530  
  5531  // UpdateSelectToSpeakPanel calls the function "WEBEXT.accessibilityPrivate.updateSelectToSpeakPanel" directly.
  5532  func UpdateSelectToSpeakPanel(show bool, anchor ScreenRect, isPaused bool, speed float64) (ret js.Void) {
  5533  	bindings.CallUpdateSelectToSpeakPanel(
  5534  		js.Pointer(&ret),
  5535  		js.Bool(bool(show)),
  5536  		js.Pointer(&anchor),
  5537  		js.Bool(bool(isPaused)),
  5538  		float64(speed),
  5539  	)
  5540  
  5541  	return
  5542  }
  5543  
  5544  // TryUpdateSelectToSpeakPanel calls the function "WEBEXT.accessibilityPrivate.updateSelectToSpeakPanel"
  5545  // in a try/catch block and returns (_, err, ok = false) when it went through
  5546  // the catch clause.
  5547  func TryUpdateSelectToSpeakPanel(show bool, anchor ScreenRect, isPaused bool, speed float64) (ret js.Void, exception js.Any, ok bool) {
  5548  	ok = js.True == bindings.TryUpdateSelectToSpeakPanel(
  5549  		js.Pointer(&ret), js.Pointer(&exception),
  5550  		js.Bool(bool(show)),
  5551  		js.Pointer(&anchor),
  5552  		js.Bool(bool(isPaused)),
  5553  		float64(speed),
  5554  	)
  5555  
  5556  	return
  5557  }
  5558  
  5559  // HasFuncUpdateSwitchAccessBubble returns true if the function "WEBEXT.accessibilityPrivate.updateSwitchAccessBubble" exists.
  5560  func HasFuncUpdateSwitchAccessBubble() bool {
  5561  	return js.True == bindings.HasFuncUpdateSwitchAccessBubble()
  5562  }
  5563  
  5564  // FuncUpdateSwitchAccessBubble returns the function "WEBEXT.accessibilityPrivate.updateSwitchAccessBubble".
  5565  func FuncUpdateSwitchAccessBubble() (fn js.Func[func(bubble SwitchAccessBubble, show bool, anchor ScreenRect, actions js.Array[SwitchAccessMenuAction])]) {
  5566  	bindings.FuncUpdateSwitchAccessBubble(
  5567  		js.Pointer(&fn),
  5568  	)
  5569  	return
  5570  }
  5571  
  5572  // UpdateSwitchAccessBubble calls the function "WEBEXT.accessibilityPrivate.updateSwitchAccessBubble" directly.
  5573  func UpdateSwitchAccessBubble(bubble SwitchAccessBubble, show bool, anchor ScreenRect, actions js.Array[SwitchAccessMenuAction]) (ret js.Void) {
  5574  	bindings.CallUpdateSwitchAccessBubble(
  5575  		js.Pointer(&ret),
  5576  		uint32(bubble),
  5577  		js.Bool(bool(show)),
  5578  		js.Pointer(&anchor),
  5579  		actions.Ref(),
  5580  	)
  5581  
  5582  	return
  5583  }
  5584  
  5585  // TryUpdateSwitchAccessBubble calls the function "WEBEXT.accessibilityPrivate.updateSwitchAccessBubble"
  5586  // in a try/catch block and returns (_, err, ok = false) when it went through
  5587  // the catch clause.
  5588  func TryUpdateSwitchAccessBubble(bubble SwitchAccessBubble, show bool, anchor ScreenRect, actions js.Array[SwitchAccessMenuAction]) (ret js.Void, exception js.Any, ok bool) {
  5589  	ok = js.True == bindings.TryUpdateSwitchAccessBubble(
  5590  		js.Pointer(&ret), js.Pointer(&exception),
  5591  		uint32(bubble),
  5592  		js.Bool(bool(show)),
  5593  		js.Pointer(&anchor),
  5594  		actions.Ref(),
  5595  	)
  5596  
  5597  	return
  5598  }