1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
//
// DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleEvent.idl
//


/// `interface nsIAccessibleEvent : nsISupports`
///

/// ```text
/// /**
///  * An interface for accessibility events listened to
///  * by in-process accessibility clients, which can be used
///  * to find out how to get accessibility and DOM interfaces for
///  * the event and its target. To listen to in-process accessibility invents,
///  * make your object an nsIObserver, and listen for accessible-event by
///  * using code something like this:
///  *   nsCOMPtr<nsIObserverService> observerService =
///  *     do_GetService("@mozilla.org/observer-service;1", &rv);
///  *   if (NS_SUCCEEDED(rv))
///  *     rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);
///  */
/// ```
///

// The actual type definition for the interface. This struct has methods
// declared on it which will call through its vtable. You never want to pass
// this type around by value, always pass it behind a reference.

#[repr(C)]
pub struct nsIAccessibleEvent {
    vtable: *const nsIAccessibleEventVTable,

    /// This field is a phantomdata to ensure that the VTable type and any
    /// struct containing it is not safe to send across threads, as XPCOM is
    /// generally not threadsafe.
    ///
    /// XPCOM interfaces in general are not safe to send across threads.
    __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>,
}

// Implementing XpCom for an interface exposes its IID, which allows for easy
// use of the `.query_interface<T>` helper method. This also defines that
// method for nsIAccessibleEvent.
unsafe impl XpCom for nsIAccessibleEvent {
    const IID: nsIID = nsID(0x20c69a40, 0x6c2c, 0x42a3,
        [0xa5, 0x78, 0x6f, 0x44, 0x73, 0xaa, 0xb9, 0xdd]);
}

// We need to implement the RefCounted trait so we can be used with `RefPtr`.
// This trait teaches `RefPtr` how to manage our memory.
unsafe impl RefCounted for nsIAccessibleEvent {
    #[inline]
    unsafe fn addref(&self) {
        self.AddRef();
    }
    #[inline]
    unsafe fn release(&self) {
        self.Release();
    }
}

// This trait is implemented on all types which can be coerced to from nsIAccessibleEvent.
// It is used in the implementation of `fn coerce<T>`. We hide it from the
// documentation, because it clutters it up a lot.
#[doc(hidden)]
pub trait nsIAccessibleEventCoerce {
    /// Cheaply cast a value of this type from a `nsIAccessibleEvent`.
    fn coerce_from(v: &nsIAccessibleEvent) -> &Self;
}

// The trivial implementation: We can obviously coerce ourselves to ourselves.
impl nsIAccessibleEventCoerce for nsIAccessibleEvent {
    #[inline]
    fn coerce_from(v: &nsIAccessibleEvent) -> &Self {
        v
    }
}

impl nsIAccessibleEvent {
    /// Cast this `nsIAccessibleEvent` to one of its base interfaces.
    #[inline]
    pub fn coerce<T: nsIAccessibleEventCoerce>(&self) -> &T {
        T::coerce_from(self)
    }
}

// Every interface struct type implements `Deref` to its base interface. This
// causes methods on the base interfaces to be directly avaliable on the
// object. For example, you can call `.AddRef` or `.QueryInterface` directly
// on any interface which inherits from `nsISupports`.
impl ::std::ops::Deref for nsIAccessibleEvent {
    type Target = nsISupports;
    #[inline]
    fn deref(&self) -> &nsISupports {
        unsafe {
            ::std::mem::transmute(self)
        }
    }
}

// Ensure we can use .coerce() to cast to our base types as well. Any type which
// our base interface can coerce from should be coercable from us as well.
impl<T: nsISupportsCoerce> nsIAccessibleEventCoerce for T {
    #[inline]
    fn coerce_from(v: &nsIAccessibleEvent) -> &Self {
        T::coerce_from(v)
    }
}

// This struct represents the interface's VTable. A pointer to a statically
// allocated version of this struct is at the beginning of every nsIAccessibleEvent
// object. It contains one pointer field for each method in the interface. In
// the case where we can't generate a binding for a method, we include a void
// pointer.
#[doc(hidden)]
#[repr(C)]
pub struct nsIAccessibleEventVTable {
    /// We need to include the members from the base interface's vtable at the start
    /// of the VTable definition.
    pub __base: nsISupportsVTable,

    /* readonly attribute unsigned long eventType; */
    pub GetEventType: unsafe extern "system" fn (this: *const nsIAccessibleEvent, aEventType: *mut libc::uint32_t) -> nsresult,

    /* readonly attribute nsIAccessible accessible; */
    pub GetAccessible: unsafe extern "system" fn (this: *const nsIAccessibleEvent, aAccessible: *mut *const nsIAccessible) -> nsresult,

    /* readonly attribute nsIAccessibleDocument accessibleDocument; */
    pub GetAccessibleDocument: unsafe extern "system" fn (this: *const nsIAccessibleEvent, aAccessibleDocument: *mut *const nsIAccessibleDocument) -> nsresult,

    /* readonly attribute nsIDOMNode DOMNode; */
    pub GetDOMNode: unsafe extern "system" fn (this: *const nsIAccessibleEvent, aDOMNode: *mut *const nsIDOMNode) -> nsresult,

    /* readonly attribute boolean isFromUserInput; */
    pub GetIsFromUserInput: unsafe extern "system" fn (this: *const nsIAccessibleEvent, aIsFromUserInput: *mut bool) -> nsresult,
}


// The implementations of the function wrappers which are exposed to rust code.
// Call these methods rather than manually calling through the VTable struct.
impl nsIAccessibleEvent {
    /// ```text
    /// /**
    ///    * An object has been created.
    ///    */
    /// ```
    ///

    pub const EVENT_SHOW: i64 = 1;

    /// ```text
    /// /**
    ///    * An object has been destroyed.
    ///    */
    /// ```
    ///

    pub const EVENT_HIDE: i64 = 2;

    /// ```text
    /// /**
    ///    * An object's children have changed
    ///    */
    /// ```
    ///

    pub const EVENT_REORDER: i64 = 3;

    /// ```text
    /// /**
    ///    * The active descendant of a component has changed. The active descendant
    ///    * is used in objects with transient children.
    ///    */
    /// ```
    ///

    pub const EVENT_ACTIVE_DECENDENT_CHANGED: i64 = 4;

    /// ```text
    /// /**
    ///    * An object has received the keyboard focus.
    ///    */
    /// ```
    ///

    pub const EVENT_FOCUS: i64 = 5;

    /// ```text
    /// /**
    ///    * An object's state has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_STATE_CHANGE: i64 = 6;

    /// ```text
    /// /**
    ///    * An object has changed location, shape, or size.
    ///    */
    /// ```
    ///

    pub const EVENT_LOCATION_CHANGE: i64 = 7;

    /// ```text
    /// /**
    ///    * An object's Name property has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_NAME_CHANGE: i64 = 8;

    /// ```text
    /// /**
    ///    * An object's Description property has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_DESCRIPTION_CHANGE: i64 = 9;

    /// ```text
    /// /**
    ///    * An object's numeric Value has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_VALUE_CHANGE: i64 = 10;

    /// ```text
    /// /**
    ///    * An object's help has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_HELP_CHANGE: i64 = 11;

    /// ```text
    /// /**
    ///    * An object's default action has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_DEFACTION_CHANGE: i64 = 12;

    /// ```text
    /// /**
    ///    * An object's action has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_ACTION_CHANGE: i64 = 13;

    /// ```text
    /// /**
    ///    * An object's keyboard shortcut has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_ACCELERATOR_CHANGE: i64 = 14;

    /// ```text
    /// /**
    ///    * The selection within a container object has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_SELECTION: i64 = 15;

    /// ```text
    /// /**
    ///    * An item within a container object has been added to the selection.
    ///    */
    /// ```
    ///

    pub const EVENT_SELECTION_ADD: i64 = 16;

    /// ```text
    /// /**
    ///    * An item within a container object has been removed from the selection.
    ///    */
    /// ```
    ///

    pub const EVENT_SELECTION_REMOVE: i64 = 17;

    /// ```text
    /// /**
    ///    * Numerous selection changes have occurred within a container object.
    ///    */
    /// ```
    ///

    pub const EVENT_SELECTION_WITHIN: i64 = 18;

    /// ```text
    /// /**
    ///    * An alert has been generated. Server applications send this event when a
    ///    * user needs to know that a user interface element has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_ALERT: i64 = 19;

    /// ```text
    /// /**
    ///    * The foreground window has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_FOREGROUND: i64 = 20;

    /// ```text
    /// /**
    ///    * A menu item on the menu bar has been selected.
    ///    */
    /// ```
    ///

    pub const EVENT_MENU_START: i64 = 21;

    /// ```text
    /// /**
    ///    * A menu from the menu bar has been closed.
    ///    */
    /// ```
    ///

    pub const EVENT_MENU_END: i64 = 22;

    /// ```text
    /// /**
    ///    * A pop-up menu has been displayed.
    ///    */
    /// ```
    ///

    pub const EVENT_MENUPOPUP_START: i64 = 23;

    /// ```text
    /// /**
    ///    * A pop-up menu has been closed.
    ///    */
    /// ```
    ///

    pub const EVENT_MENUPOPUP_END: i64 = 24;

    /// ```text
    /// /**
    ///    * A window has received mouse capture.
    ///    */
    /// ```
    ///

    pub const EVENT_CAPTURE_START: i64 = 25;

    /// ```text
    /// /**
    ///    * A window has lost mouse capture.
    ///    */
    /// ```
    ///

    pub const EVENT_CAPTURE_END: i64 = 26;

    /// ```text
    /// /**
    ///    * A window is being moved or resized.
    ///    */
    /// ```
    ///

    pub const EVENT_MOVESIZE_START: i64 = 27;

    /// ```text
    /// /**
    ///   * The movement or resizing of a window has finished
    ///   */
    /// ```
    ///

    pub const EVENT_MOVESIZE_END: i64 = 28;

    /// ```text
    /// /**
    ///    * A window has entered context-sensitive Help mode
    ///    */
    /// ```
    ///

    pub const EVENT_CONTEXTHELP_START: i64 = 29;

    /// ```text
    /// /**
    ///    * A window has exited context-sensitive Help mode
    ///    */
    /// ```
    ///

    pub const EVENT_CONTEXTHELP_END: i64 = 30;

    /// ```text
    /// /**
    ///    * An application is about to enter drag-and-drop mode
    ///    */
    /// ```
    ///

    pub const EVENT_DRAGDROP_START: i64 = 31;

    /// ```text
    /// /**
    ///    * An application is about to exit drag-and-drop mode
    ///    */
    /// ```
    ///

    pub const EVENT_DRAGDROP_END: i64 = 32;

    /// ```text
    /// /**
    ///    * A dialog box has been displayed
    ///    */
    /// ```
    ///

    pub const EVENT_DIALOG_START: i64 = 33;

    /// ```text
    /// /**
    ///    * A dialog box has been closed
    ///    */
    /// ```
    ///

    pub const EVENT_DIALOG_END: i64 = 34;

    /// ```text
    /// /**
    ///    * Scrolling has started on a scroll bar
    ///    */
    /// ```
    ///

    pub const EVENT_SCROLLING_START: i64 = 35;

    /// ```text
    /// /**
    ///    * Scrolling has ended on a scroll bar
    ///    */
    /// ```
    ///

    pub const EVENT_SCROLLING_END: i64 = 36;

    /// ```text
    /// /**
    ///    * A window object is about to be minimized or maximized
    ///    */
    /// ```
    ///

    pub const EVENT_MINIMIZE_START: i64 = 37;

    /// ```text
    /// /**
    ///    * A window object has been minimized or maximized
    ///    */
    /// ```
    ///

    pub const EVENT_MINIMIZE_END: i64 = 38;

    /// ```text
    /// /**
    ///    * The loading of the document has completed.
    ///    */
    /// ```
    ///

    pub const EVENT_DOCUMENT_LOAD_COMPLETE: i64 = 39;

    /// ```text
    /// /**
    ///    * The document contents are being reloaded.
    ///    */
    /// ```
    ///

    pub const EVENT_DOCUMENT_RELOAD: i64 = 40;

    /// ```text
    /// /**
    ///    * The loading of the document was interrupted.
    ///    */
    /// ```
    ///

    pub const EVENT_DOCUMENT_LOAD_STOPPED: i64 = 41;

    /// ```text
    /// /**
    ///    * The document wide attributes of the document object have changed.
    ///    */
    /// ```
    ///

    pub const EVENT_DOCUMENT_ATTRIBUTES_CHANGED: i64 = 42;

    /// ```text
    /// /**
    ///    * The contents of the document have changed.
    ///    */
    /// ```
    ///

    pub const EVENT_DOCUMENT_CONTENT_CHANGED: i64 = 43;


    pub const EVENT_PROPERTY_CHANGED: i64 = 44;

    /// ```text
    /// /**
    ///    * A slide changed in a presentation document or a page boundary was
    ///    * crossed in a word processing document.
    ///    */
    /// ```
    ///

    pub const EVENT_PAGE_CHANGED: i64 = 45;

    /// ```text
    /// /**
    ///    * A text object's attributes changed.
    ///    * Also see EVENT_OBJECT_ATTRIBUTE_CHANGED.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_ATTRIBUTE_CHANGED: i64 = 46;

    /// ```text
    /// /**
    ///    * The caret has moved to a new position.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_CARET_MOVED: i64 = 47;

    /// ```text
    /// /**
    ///    * This event indicates general text changes, i.e. changes to text that is
    ///    * exposed through the IAccessibleText and IAccessibleEditableText interfaces.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_CHANGED: i64 = 48;

    /// ```text
    /// /**
    ///    * Text was inserted.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_INSERTED: i64 = 49;

    /// ```text
    /// /**
    ///    * Text was removed.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_REMOVED: i64 = 50;

    /// ```text
    /// /**
    ///    * Text was updated.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_UPDATED: i64 = 51;

    /// ```text
    /// /**
    ///    * The text selection changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_SELECTION_CHANGED: i64 = 52;

    /// ```text
    /// /**
    ///    * A visibile data event indicates the change of the visual appearance
    ///    * of an accessible object.  This includes for example most of the
    ///    * attributes available via the IAccessibleComponent interface.
    ///    */
    /// ```
    ///

    pub const EVENT_VISIBLE_DATA_CHANGED: i64 = 53;

    /// ```text
    /// /**
    ///    * The caret moved from one column to the next.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_COLUMN_CHANGED: i64 = 54;

    /// ```text
    /// /**
    ///    * The caret moved from one section to the next.
    ///    */
    /// ```
    ///

    pub const EVENT_SECTION_CHANGED: i64 = 55;

    /// ```text
    /// /**
    ///    * A table caption changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_CAPTION_CHANGED: i64 = 56;

    /// ```text
    /// /**
    ///    * A table's data changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_MODEL_CHANGED: i64 = 57;

    /// ```text
    /// /**
    ///    * A table's summary changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_SUMMARY_CHANGED: i64 = 58;

    /// ```text
    /// /**
    ///    * A table's row description changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_ROW_DESCRIPTION_CHANGED: i64 = 59;

    /// ```text
    /// /**
    ///    * A table's row header changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_ROW_HEADER_CHANGED: i64 = 60;


    pub const EVENT_TABLE_ROW_INSERT: i64 = 61;


    pub const EVENT_TABLE_ROW_DELETE: i64 = 62;


    pub const EVENT_TABLE_ROW_REORDER: i64 = 63;

    /// ```text
    /// /**
    ///    * A table's column description changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED: i64 = 64;

    /// ```text
    /// /**
    ///    * A table's column header changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TABLE_COLUMN_HEADER_CHANGED: i64 = 65;


    pub const EVENT_TABLE_COLUMN_INSERT: i64 = 66;


    pub const EVENT_TABLE_COLUMN_DELETE: i64 = 67;


    pub const EVENT_TABLE_COLUMN_REORDER: i64 = 68;


    pub const EVENT_WINDOW_ACTIVATE: i64 = 69;


    pub const EVENT_WINDOW_CREATE: i64 = 70;


    pub const EVENT_WINDOW_DEACTIVATE: i64 = 71;


    pub const EVENT_WINDOW_DESTROY: i64 = 72;


    pub const EVENT_WINDOW_MAXIMIZE: i64 = 73;


    pub const EVENT_WINDOW_MINIMIZE: i64 = 74;


    pub const EVENT_WINDOW_RESIZE: i64 = 75;


    pub const EVENT_WINDOW_RESTORE: i64 = 76;

    /// ```text
    /// /**
    ///    * The ending index of this link within the containing string has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERLINK_END_INDEX_CHANGED: i64 = 77;

    /// ```text
    /// /**
    ///    * The number of anchors assoicated with this hyperlink object has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERLINK_NUMBER_OF_ANCHORS_CHANGED: i64 = 78;

    /// ```text
    /// /**
    ///    * The hyperlink selected state changed from selected to unselected or
    ///    * from unselected to selected.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERLINK_SELECTED_LINK_CHANGED: i64 = 79;

    /// ```text
    /// /**
    ///    * One of the links associated with the hypertext object has been activated.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERTEXT_LINK_ACTIVATED: i64 = 80;

    /// ```text
    /// /**
    ///    * One of the links associated with the hypertext object has been selected.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERTEXT_LINK_SELECTED: i64 = 81;

    /// ```text
    /// /**
    ///    * The starting index of this link within the containing string has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERLINK_START_INDEX_CHANGED: i64 = 82;

    /// ```text
    /// /**
    ///    * Focus has changed from one hypertext object to another, or focus moved
    ///    * from a non-hypertext object to a hypertext object, or focus moved from a
    ///    * hypertext object to a non-hypertext object.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERTEXT_CHANGED: i64 = 83;

    /// ```text
    /// /**
    ///    * The number of hyperlinks associated with a hypertext object changed.
    ///    */
    /// ```
    ///

    pub const EVENT_HYPERTEXT_NLINKS_CHANGED: i64 = 84;

    /// ```text
    /// /**
    ///    * An object's attributes changed. Also see EVENT_TEXT_ATTRIBUTE_CHANGED.
    ///    */
    /// ```
    ///

    pub const EVENT_OBJECT_ATTRIBUTE_CHANGED: i64 = 85;

    /// ```text
    /// /**
    ///    * A cursorable's virtual cursor has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_VIRTUALCURSOR_CHANGED: i64 = 86;

    /// ```text
    /// /**
    ///    * An object's text Value has changed.
    ///    */
    /// ```
    ///

    pub const EVENT_TEXT_VALUE_CHANGE: i64 = 87;

    /// ```text
    /// /**
    ///    * Help make sure event map does not get out-of-line.
    ///    */
    /// ```
    ///

    pub const EVENT_LAST_ENTRY: i64 = 88;

    /// ```text
    /// /**
    ///    * The type of event, based on the enumerated event values
    ///    * defined in this interface.
    ///    */
    /// ```
    ///

    /// `readonly attribute unsigned long eventType;`
    #[inline]
    pub unsafe fn GetEventType(&self, aEventType: *mut libc::uint32_t) -> nsresult {
        ((*self.vtable).GetEventType)(self, aEventType)
    }


    /// ```text
    /// /**
    ///    * The nsIAccessible associated with the event.
    ///    * May return null if no accessible is available
    ///    */
    /// ```
    ///

    /// `readonly attribute nsIAccessible accessible;`
    #[inline]
    pub unsafe fn GetAccessible(&self, aAccessible: *mut *const nsIAccessible) -> nsresult {
        ((*self.vtable).GetAccessible)(self, aAccessible)
    }


    /// ```text
    /// /**
    ///    * The nsIAccessibleDocument that the event target nsIAccessible
    ///    * resides in. This can be used to get the DOM window,
    ///    * the DOM document and the window handler, among other things.
    ///    */
    /// ```
    ///

    /// `readonly attribute nsIAccessibleDocument accessibleDocument;`
    #[inline]
    pub unsafe fn GetAccessibleDocument(&self, aAccessibleDocument: *mut *const nsIAccessibleDocument) -> nsresult {
        ((*self.vtable).GetAccessibleDocument)(self, aAccessibleDocument)
    }


    /// ```text
    /// /**
    ///    * The nsIDOMNode associated with the event
    ///    * May return null if accessible for event has been shut down
    ///    */
    /// ```
    ///

    /// `readonly attribute nsIDOMNode DOMNode;`
    #[inline]
    pub unsafe fn GetDOMNode(&self, aDOMNode: *mut *const nsIDOMNode) -> nsresult {
        ((*self.vtable).GetDOMNode)(self, aDOMNode)
    }


    /// ```text
    /// /**
    ///    * Returns true if the event was caused by explicit user input,
    ///    * as opposed to purely originating from a timer or mouse movement
    ///    */
    /// ```
    ///

    /// `readonly attribute boolean isFromUserInput;`
    #[inline]
    pub unsafe fn GetIsFromUserInput(&self, aIsFromUserInput: *mut bool) -> nsresult {
        ((*self.vtable).GetIsFromUserInput)(self, aIsFromUserInput)
    }


}