2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #import <Cocoa/Cocoa.h>
9 #import "mozAccessible.h"
11 /* Simple subclasses for things like checkboxes, buttons, etc. */
13 @interface mozButtonAccessible
: mozAccessible
16 - (NSNumber
*)moxHasPopup
;
19 - (NSString
*)moxPopupValue
;
23 @interface mozPopupButtonAccessible
: mozButtonAccessible
26 - (NSString
*)moxTitle
;
29 - (BOOL
)moxBlockSelector
:(SEL
)selector
;
32 - (NSArray
*)moxChildren
;
35 - (void)stateChanged
:(uint64_t)state isEnabled
:(BOOL
)enabled
;
39 @interface mozCheckboxAccessible
: mozButtonAccessible
45 - (void)stateChanged
:(uint64_t)state isEnabled
:(BOOL
)enabled
;
49 // LocalAccessible for a radio button
50 @interface mozRadioButtonAccessible
: mozCheckboxAccessible
53 - (NSArray
*)moxLinkedUIElements
;
58 * Accessible for a PANE
60 @interface mozPaneAccessible
: mozAccessible
63 - (NSArray
*)moxChildren
;
68 * Base accessible for an incrementable
70 @interface mozIncrementableAccessible
: mozAccessible
76 - (NSString
*)moxValueDescription
;
85 - (void)moxSetValue
:(id
)value
;
88 - (void)moxPerformIncrement
;
91 - (void)moxPerformDecrement
;
94 - (NSString
*)moxOrientation
;
97 - (void)handleAccessibleEvent
:(uint32_t)eventType
;
99 - (void)changeValueBySteps
:(int)factor
;
103 @interface mozDatePickerAccessible
: mozAccessible
106 - (NSString
*)moxTitle
;