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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXTableRow.h

Issue 2539503003: ARIA 1.1: implementation for aria-col-* and aria-row-*. (Closed)
Patch Set: Fix bad rebase Created 3 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 17 matching lines...) Expand all
28 28
29 #ifndef AXTableRow_h 29 #ifndef AXTableRow_h
30 #define AXTableRow_h 30 #define AXTableRow_h
31 31
32 #include "modules/accessibility/AXLayoutObject.h" 32 #include "modules/accessibility/AXLayoutObject.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AXObjectCacheImpl; 36 class AXObjectCacheImpl;
37 37
38 class AXTableRow : public AXLayoutObject { 38 class MODULES_EXPORT AXTableRow : public AXLayoutObject {
39 WTF_MAKE_NONCOPYABLE(AXTableRow); 39 WTF_MAKE_NONCOPYABLE(AXTableRow);
40 40
41 protected: 41 protected:
42 AXTableRow(LayoutObject*, AXObjectCacheImpl&); 42 AXTableRow(LayoutObject*, AXObjectCacheImpl&);
43 43
44 public: 44 public:
45 static AXTableRow* create(LayoutObject*, AXObjectCacheImpl&); 45 static AXTableRow* create(LayoutObject*, AXObjectCacheImpl&);
46 ~AXTableRow() override; 46 ~AXTableRow() override;
47 47
48 void addChildren() final;
48 bool isTableRow() const final; 49 bool isTableRow() const final;
49 50
50 // retrieves the "row" header (a th tag in the rightmost column) 51 // retrieves the "row" header (a th tag in the rightmost column)
51 virtual AXObject* headerObject(); 52 virtual AXObject* headerObject();
52 // Retrieves the "row" headers (th, scope) from left to right for the each 53 // Retrieves the "row" headers (th, scope) from left to right for the each
53 // row. 54 // row.
54 virtual void headerObjectsForRow(AXObjectVector&); 55 virtual void headerObjectsForRow(AXObjectVector&);
55 AXObject* parentTable() const; 56 AXObject* parentTable() const;
56 57
57 void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; } 58 void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; }
58 int rowIndex() const { return m_rowIndex; } 59 int rowIndex() const { return m_rowIndex; }
59 60
61 unsigned ariaColumnIndex() const;
62 unsigned ariaRowIndex() const;
63
60 protected: 64 protected:
61 AccessibilityRole determineAccessibilityRole() final; 65 AccessibilityRole determineAccessibilityRole() final;
62 66
63 private: 67 private:
64 int m_rowIndex; 68 int m_rowIndex;
65 69
66 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final; 70 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const final;
67 }; 71 };
68 72
69 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow()); 73 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow());
70 74
71 } // namespace blink 75 } // namespace blink
72 76
73 #endif // AXTableRow_h 77 #endif // AXTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698