Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Side by Side Diff: Source/modules/accessibility/AXTableColumn.h

Issue 862543003: Table headers are not retrieved properly by Accessibility API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor fixes, correct comment and very small refactoring Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXTableCell.h ('k') | Source/modules/accessibility/AXTableColumn.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698