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

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

Issue 2287433003: Get rid of remaining uses of AXObject::elementRect (Closed)
Patch Set: Rebase Created 4 years, 3 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void headerObjectsForColumn(AXObjectVector&); 54 void headerObjectsForColumn(AXObjectVector&);
55 55
56 AccessibilityRole roleValue() const override { return ColumnRole; } 56 AccessibilityRole roleValue() const override { return ColumnRole; }
57 57
58 void setColumnIndex(int columnIndex) { m_columnIndex = columnIndex; } 58 void setColumnIndex(int columnIndex) { m_columnIndex = columnIndex; }
59 int columnIndex() const { return m_columnIndex; } 59 int columnIndex() const { return m_columnIndex; }
60 60
61 void addChildren() override; 61 void addChildren() override;
62 void setParent(AXObject*) override; 62 void setParent(AXObject*) override;
63 63
64 LayoutRect elementRect() const override;
65
66 private: 64 private:
67 unsigned m_columnIndex; 65 unsigned m_columnIndex;
68 LayoutRect m_columnRect;
69 66
70 bool isTableCol() const override { return true; } 67 bool isTableCol() const override { return true; }
71 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ; 68 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override ;
72 }; 69 };
73 70
74 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol()); 71 DEFINE_AX_OBJECT_TYPE_CASTS(AXTableColumn, isTableCol());
75 72
76 } // namespace blink 73 } // namespace blink
77 74
78 #endif // AXTableColumn_h 75 #endif // AXTableColumn_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698