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

Side by Side Diff: Source/modules/accessibility/AXTableColumn.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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef AXTableColumn_h 29 #ifndef AXTableColumn_h
30 #define AXTableColumn_h 30 #define AXTableColumn_h
31 31
32 #include "modules/accessibility/AXMockObject.h" 32 #include "modules/accessibility/AXMockObject.h"
33 #include "modules/accessibility/AXTable.h" 33 #include "modules/accessibility/AXTable.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCache;
37 class RenderTableSection; 38 class RenderTableSection;
38 39
39 class AXTableColumn final : public AXMockObject { 40 class AXTableColumn final : public AXMockObject {
40 41
41 private: 42 private:
42 AXTableColumn(); 43 explicit AXTableColumn(AXObjectCache*);
43 public: 44 public:
44 static PassRefPtr<AXTableColumn> create(); 45 static PassRefPtr<AXTableColumn> create(AXObjectCache*);
45 virtual ~AXTableColumn(); 46 virtual ~AXTableColumn();
46 47
47 AXObject* headerObject(); 48 AXObject* headerObject();
48 49
49 virtual AccessibilityRole roleValue() const override { return ColumnRole; } 50 virtual AccessibilityRole roleValue() const override { return ColumnRole; }
50 51
51 void setColumnIndex(int columnIndex) { m_columnIndex = columnIndex; } 52 void setColumnIndex(int columnIndex) { m_columnIndex = columnIndex; }
52 int columnIndex() const { return m_columnIndex; } 53 int columnIndex() const { return m_columnIndex; }
53 54
54 virtual void addChildren() override; 55 virtual void addChildren() override;
55 virtual void setParent(AXObject*) override; 56 virtual void setParent(AXObject*) override;
56 57
57 virtual LayoutRect elementRect() const override; 58 virtual LayoutRect elementRect() const override;
58 59
59 private: 60 private:
60 unsigned m_columnIndex; 61 unsigned m_columnIndex;
61 LayoutRect m_columnRect; 62 LayoutRect m_columnRect;
62 63
63 virtual bool isTableCol() const override { return true; } 64 virtual bool isTableCol() const override { return true; }
64 AXObject* headerObjectForSection(RenderTableSection*, bool thTagRequired); 65 AXObject* headerObjectForSection(RenderTableSection*, bool thTagRequired);
65 virtual bool computeAccessibilityIsIgnored() const override; 66 virtual bool computeAccessibilityIsIgnored() const override;
66 }; 67 };
67 68
68 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol()); 69 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol());
69 70
70 } // namespace blink 71 } // namespace blink
71 72
72 #endif // AXTableColumn_h 73 #endif // AXTableColumn_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698