Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple 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 28 matching lines...) Expand all Loading... | |
| 39 | 39 |
| 40 class AXTableColumn final : public AXMockObject { | 40 class AXTableColumn final : public AXMockObject { |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 explicit AXTableColumn(AXObjectCacheImpl*); | 43 explicit AXTableColumn(AXObjectCacheImpl*); |
| 44 | 44 |
| 45 public: | 45 public: |
| 46 static PassRefPtr<AXTableColumn> create(AXObjectCacheImpl*); | 46 static PassRefPtr<AXTableColumn> create(AXObjectCacheImpl*); |
| 47 virtual ~AXTableColumn(); | 47 virtual ~AXTableColumn(); |
| 48 | 48 |
| 49 // retrieves the topmost "column" header (th) | |
| 49 AXObject* headerObject(); | 50 AXObject* headerObject(); |
| 51 // retrieves the "column" headers (th, scope) from top to bottom for the eac h column. | |
|
dmazzoni
2015/01/21 07:12:30
nit: "for the each column" is confusing and can be
| |
| 52 void headerObjectsForColumn(AccessibilityChildrenVector&); | |
| 50 | 53 |
| 51 virtual AccessibilityRole roleValue() const override { return ColumnRole; } | 54 virtual AccessibilityRole roleValue() const override { return ColumnRole; } |
| 52 | 55 |
| 53 void setColumnIndex(int columnIndex) { m_columnIndex = columnIndex; } | 56 void setColumnIndex(int columnIndex) { m_columnIndex = columnIndex; } |
| 54 int columnIndex() const { return m_columnIndex; } | 57 int columnIndex() const { return m_columnIndex; } |
| 55 | 58 |
| 56 virtual void addChildren() override; | 59 virtual void addChildren() override; |
| 57 virtual void setParent(AXObject*) override; | 60 virtual void setParent(AXObject*) override; |
| 58 | 61 |
| 59 virtual LayoutRect elementRect() const override; | 62 virtual LayoutRect elementRect() const override; |
| 60 | 63 |
| 61 private: | 64 private: |
| 62 unsigned m_columnIndex; | 65 unsigned m_columnIndex; |
| 63 LayoutRect m_columnRect; | 66 LayoutRect m_columnRect; |
| 64 | 67 |
| 65 virtual bool isTableCol() const override { return true; } | 68 virtual bool isTableCol() const override { return true; } |
| 66 AXObject* headerObjectForSection(RenderTableSection*, bool thTagRequired); | 69 AXObject* headerObjectForSection(RenderTableSection*, bool thTagRequired); |
| 67 virtual bool computeAccessibilityIsIgnored() const override; | 70 virtual bool computeAccessibilityIsIgnored() const override; |
| 68 }; | 71 }; |
| 69 | 72 |
| 70 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol()); | 73 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol()); |
| 71 | 74 |
| 72 } // namespace blink | 75 } // namespace blink |
| 73 | 76 |
| 74 #endif // AXTableColumn_h | 77 #endif // AXTableColumn_h |
| OLD | NEW |