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

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

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Finished pulling out ScopedAXObjectCache etc. Many fprintfs remain. Created 6 years 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 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef AXTableRow_h 29 #ifndef AXTableRow_h
30 #define AXTableRow_h 30 #define AXTableRow_h
31 31
32 #include "modules/accessibility/AXRenderObject.h" 32 #include "modules/accessibility/AXRenderObject.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AXObjectCache;
37
36 class AXTableRow : public AXRenderObject { 38 class AXTableRow : public AXRenderObject {
37 39
38 protected: 40 protected:
39 explicit AXTableRow(RenderObject*); 41 AXTableRow(RenderObject*, AXObjectCache*);
42
40 public: 43 public:
41 static PassRefPtr<AXTableRow> create(RenderObject*); 44 static PassRefPtr<AXTableRow> create(RenderObject*, AXObjectCache*);
42 virtual ~AXTableRow(); 45 virtual ~AXTableRow();
43 46
44 virtual bool isTableRow() const override final; 47 virtual bool isTableRow() const override final;
45 48
46 // retrieves the "row" header (a th tag in the rightmost column) 49 // retrieves the "row" header (a th tag in the rightmost column)
47 virtual AXObject* headerObject(); 50 virtual AXObject* headerObject();
48 AXObject* parentTable() const; 51 AXObject* parentTable() const;
49 52
50 void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; } 53 void setRowIndex(int rowIndex) { m_rowIndex = rowIndex; }
51 int rowIndex() const { return m_rowIndex; } 54 int rowIndex() const { return m_rowIndex; }
(...skipping 10 matching lines...) Expand all
62 65
63 virtual AXObject* observableObject() const override final; 66 virtual AXObject* observableObject() const override final;
64 virtual bool computeAccessibilityIsIgnored() const override final; 67 virtual bool computeAccessibilityIsIgnored() const override final;
65 }; 68 };
66 69
67 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow()); 70 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableRow, isTableRow());
68 71
69 } // namespace blink 72 } // namespace blink
70 73
71 #endif // AXTableRow_h 74 #endif // AXTableRow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698