summaryrefslogtreecommitdiffstats
path: root/accessible/mac/mozActionElements.mm
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /accessible/mac/mozActionElements.mm
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'accessible/mac/mozActionElements.mm')
-rw-r--r--accessible/mac/mozActionElements.mm41
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.
*