OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1479 case kSliderRole: | 1479 case kSliderRole: |
1480 case kSplitterRole: | 1480 case kSplitterRole: |
1481 case kTabListRole: | 1481 case kTabListRole: |
1482 case kToolbarRole: | 1482 case kToolbarRole: |
1483 if (orientation == kAccessibilityOrientationUndefined) | 1483 if (orientation == kAccessibilityOrientationUndefined) |
1484 orientation = kAccessibilityOrientationHorizontal; | 1484 orientation = kAccessibilityOrientationHorizontal; |
1485 | 1485 |
1486 return orientation; | 1486 return orientation; |
1487 case kRadioGroupRole: | 1487 case kRadioGroupRole: |
1488 case kTreeGridRole: | 1488 case kTreeGridRole: |
1489 // TODO(nektar): Fix bug 532670 and remove table role. | |
1490 case kTableRole: | |
1491 return orientation; | 1489 return orientation; |
1492 default: | 1490 default: |
1493 return AXObject::Orientation(); | 1491 return AXObject::Orientation(); |
1494 } | 1492 } |
1495 } | 1493 } |
1496 | 1494 |
1497 AXObject::AXObjectVector AXNodeObject::RadioButtonsInGroup() const { | 1495 AXObject::AXObjectVector AXNodeObject::RadioButtonsInGroup() const { |
1498 AXObjectVector radio_buttons; | 1496 AXObjectVector radio_buttons; |
1499 if (!node_ || RoleValue() != kRadioButtonRole) | 1497 if (!node_ || RoleValue() != kRadioButtonRole) |
1500 return radio_buttons; | 1498 return radio_buttons; |
(...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3219 return String(); | 3217 return String(); |
3220 return ToTextControlElement(node)->StrippedPlaceholder(); | 3218 return ToTextControlElement(node)->StrippedPlaceholder(); |
3221 } | 3219 } |
3222 | 3220 |
3223 DEFINE_TRACE(AXNodeObject) { | 3221 DEFINE_TRACE(AXNodeObject) { |
3224 visitor->Trace(node_); | 3222 visitor->Trace(node_); |
3225 AXObject::Trace(visitor); | 3223 AXObject::Trace(visitor); |
3226 } | 3224 } |
3227 | 3225 |
3228 } // namespace blink | 3226 } // namespace blink |
OLD | NEW |