no bug - Correct some typos in the comments. a=typo-fix
[gecko.git] / accessible / mac / mozActionElements.h
blobf9940c793a489db06fc271c595f034bf99e5ba52
1 /* clang-format off */
2 /* -*- Mode: Objective-C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 /* clang-format on */
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
15 // override
16 - (NSNumber*)moxHasPopup;
18 // override
19 - (NSString*)moxPopupValue;
21 @end
23 @interface mozPopupButtonAccessible : mozButtonAccessible
25 // override
26 - (NSString*)moxTitle;
28 // override
29 - (BOOL)moxBlockSelector:(SEL)selector;
31 // override
32 - (NSArray*)moxChildren;
34 // override
35 - (void)stateChanged:(uint64_t)state isEnabled:(BOOL)enabled;
37 @end
39 @interface mozCheckboxAccessible : mozButtonAccessible
41 // override
42 - (id)moxValue;
44 // override
45 - (void)stateChanged:(uint64_t)state isEnabled:(BOOL)enabled;
47 @end
49 // LocalAccessible for a radio button
50 @interface mozRadioButtonAccessible : mozCheckboxAccessible
52 // override
53 - (NSArray*)moxLinkedUIElements;
55 @end
57 /**
58 * Accessible for a PANE
60 @interface mozPaneAccessible : mozAccessible
62 // override
63 - (NSArray*)moxChildren;
65 @end
67 /**
68 * Base accessible for an incrementable
70 @interface mozIncrementableAccessible : mozAccessible
72 // override
73 - (id)moxValue;
75 // override
76 - (NSString*)moxValueDescription;
78 // override
79 - (id)moxMinValue;
81 // override
82 - (id)moxMaxValue;
84 // override
85 - (void)moxSetValue:(id)value;
87 // override
88 - (void)moxPerformIncrement;
90 // override
91 - (void)moxPerformDecrement;
93 // override
94 - (NSString*)moxOrientation;
96 // override
97 - (void)handleAccessibleEvent:(uint32_t)eventType;
99 - (void)changeValueBySteps:(int)factor;
101 @end
103 @interface mozDatePickerAccessible : mozAccessible
105 // override
106 - (NSString*)moxTitle;
108 @end