diff options
Diffstat (limited to 'accessible/mac/mozActionElements.mm')
-rw-r--r-- | accessible/mac/mozActionElements.mm | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/accessible/mac/mozActionElements.mm b/accessible/mac/mozActionElements.mm index f39f2c8ad5..e3a2ff9598 100644 --- a/accessible/mac/mozActionElements.mm +++ b/accessible/mac/mozActionElements.mm @@ -134,17 +134,12 @@ using namespace mozilla::a11y; @end -@implementation mozIncrementableAccessible +@implementation mozRangeAccessible - (id)moxValue { return [NSNumber numberWithDouble:mGeckoAccessible->CurValue()]; } -- (NSString*)moxValueDescription { - nsAutoString valueDesc; - mGeckoAccessible->Value(valueDesc); - return nsCocoaUtils::ToNSString(valueDesc); -} - (id)moxMinValue { return [NSNumber numberWithDouble:mGeckoAccessible->MinValue()]; } @@ -153,18 +148,6 @@ using namespace mozilla::a11y; return [NSNumber numberWithDouble:mGeckoAccessible->MaxValue()]; } -- (void)moxSetValue:(id)value { - [self setValue:([value doubleValue])]; -} - -- (void)moxPerformIncrement { - [self changeValueBySteps:1]; -} - -- (void)moxPerformDecrement { - [self changeValueBySteps:-1]; -} - - (NSString*)moxOrientation { RefPtr<AccAttributes> attributes = mGeckoAccessible->Attributes(); if (attributes) { @@ -192,6 +175,28 @@ using namespace mozilla::a11y; } } +@end + +@implementation mozIncrementableAccessible + +- (NSString*)moxValueDescription { + nsAutoString valueDesc; + mGeckoAccessible->Value(valueDesc); + return nsCocoaUtils::ToNSString(valueDesc); +} + +- (void)moxSetValue:(id)value { + [self setValue:([value doubleValue])]; +} + +- (void)moxPerformIncrement { + [self changeValueBySteps:1]; +} + +- (void)moxPerformDecrement { + [self changeValueBySteps:-1]; +} + /* * Updates the accessible's current value by factor and step. * |