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

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

Issue 1072273006: Oilpan: Prepare moving AXObject to heap (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/modules/accessibility/AXSpinButton.cpp ('k') | Source/modules/accessibility/AXTable.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
37 37
38 class AXObjectCacheImpl; 38 class AXObjectCacheImpl;
39 class AXTableCell; 39 class AXTableCell;
40 40
41 class MODULES_EXPORT AXTable : public AXLayoutObject { 41 class MODULES_EXPORT AXTable : public AXLayoutObject {
42 42
43 protected: 43 protected:
44 AXTable(LayoutObject*, AXObjectCacheImpl&); 44 AXTable(LayoutObject*, AXObjectCacheImpl&);
45 45
46 public: 46 public:
47 static PassRefPtr<AXTable> create(LayoutObject*, AXObjectCacheImpl&); 47 static PassRefPtrWillBeRawPtr<AXTable> create(LayoutObject*, AXObjectCacheIm pl&);
48 virtual ~AXTable(); 48 virtual ~AXTable();
49 DECLARE_VIRTUAL_TRACE();
49 50
50 virtual void init() override final; 51 virtual void init() override final;
51 52
52 virtual bool isAXTable() const override final; 53 virtual bool isAXTable() const override final;
53 virtual bool isDataTable() const override final; 54 virtual bool isDataTable() const override final;
54 55
55 virtual AccessibilityRole roleValue() const override final; 56 virtual AccessibilityRole roleValue() const override final;
56 57
57 virtual void addChildren() override; 58 virtual void addChildren() override;
58 virtual void clearChildren() override final; 59 virtual void clearChildren() override final;
(...skipping 17 matching lines...) Expand all
76 void columnHeaders(AccessibilityChildrenVector&); 77 void columnHeaders(AccessibilityChildrenVector&);
77 void rowHeaders(AccessibilityChildrenVector&); 78 void rowHeaders(AccessibilityChildrenVector&);
78 79
79 // an object that contains, as children, all the objects that act as headers 80 // an object that contains, as children, all the objects that act as headers
80 AXObject* headerContainer(); 81 AXObject* headerContainer();
81 82
82 protected: 83 protected:
83 AccessibilityChildrenVector m_rows; 84 AccessibilityChildrenVector m_rows;
84 AccessibilityChildrenVector m_columns; 85 AccessibilityChildrenVector m_columns;
85 86
86 RefPtr<AXObject> m_headerContainer; 87 RefPtrWillBeMember<AXObject> m_headerContainer;
87 bool m_isAXTable; 88 bool m_isAXTable;
88 89
89 bool hasARIARole() const; 90 bool hasARIARole() const;
90 virtual bool isTableExposableThroughAccessibility() const; 91 virtual bool isTableExposableThroughAccessibility() const;
91 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override final; 92 virtual bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override final;
92 }; 93 };
93 94
94 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable()); 95 DEFINE_AX_OBJECT_TYPE_CASTS(AXTable, isAXTable());
95 96
96 } // namespace blink 97 } // namespace blink
97 98
98 #endif // AXTable_h 99 #endif // AXTable_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXSpinButton.cpp ('k') | Source/modules/accessibility/AXTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698