aqua11ywrapperrow.mm (323de322) aqua11ywrapperrow.mm (2dae3561)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 20 unchanged lines hidden (view full) ---

29#include "aqua11ywrapperrow.h"
30#include "aqua11ytextwrapper.h"
31
32// Wrapper for AXRow role
33
34@implementation AquaA11yWrapperRow : AquaA11yWrapper
35
36-(id)disclosingAttribute {
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 20 unchanged lines hidden (view full) ---

29#include "aqua11ywrapperrow.h"
30#include "aqua11ytextwrapper.h"
31
32// Wrapper for AXRow role
33
34@implementation AquaA11yWrapperRow : AquaA11yWrapper
35
36-(id)disclosingAttribute {
37 return NO; // TODO
37 // TODO: implement
38 return nil;
38}
39
40-(NSArray *)accessibilityAttributeNames {
41 // Default Attributes
42 NSMutableArray * attributeNames = [ NSMutableArray arrayWithArray: [ super accessibilityAttributeNames ] ];
43 // Special Attributes and removing unwanted attributes depending on role
44 [ attributeNames removeObjectsInArray: [ AquaA11yTextWrapper specialAttributeNames ] ];
45 [ attributeNames removeObject: NSAccessibilityTitleAttribute ];
46 [ attributeNames removeObject: NSAccessibilityEnabledAttribute ];
47 [ attributeNames removeObject: NSAccessibilityFocusedAttribute ];
48 [ attributeNames addObject: NSAccessibilitySelectedAttribute ];
49 [ attributeNames addObject: NSAccessibilityDisclosingAttribute ];
50 return attributeNames;
51}
52
53@end
39}
40
41-(NSArray *)accessibilityAttributeNames {
42 // Default Attributes
43 NSMutableArray * attributeNames = [ NSMutableArray arrayWithArray: [ super accessibilityAttributeNames ] ];
44 // Special Attributes and removing unwanted attributes depending on role
45 [ attributeNames removeObjectsInArray: [ AquaA11yTextWrapper specialAttributeNames ] ];
46 [ attributeNames removeObject: NSAccessibilityTitleAttribute ];
47 [ attributeNames removeObject: NSAccessibilityEnabledAttribute ];
48 [ attributeNames removeObject: NSAccessibilityFocusedAttribute ];
49 [ attributeNames addObject: NSAccessibilitySelectedAttribute ];
50 [ attributeNames addObject: NSAccessibilityDisclosingAttribute ];
51 return attributeNames;
52}
53
54@end