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

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

Issue 1032183003: AXObjectCacheImpl::postNotification shouldn't post on an ancestor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 9 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) 2014, Google Inc. All rights reserved. 2 * Copyright (C) 2014, Google 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } 148 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); }
149 149
150 AXID platformGenerateAXID() const; 150 AXID platformGenerateAXID() const;
151 151
152 // Counts the number of times the document has been modified. Some attribute values are cached 152 // Counts the number of times the document has been modified. Some attribute values are cached
153 // as long as the modification count hasn't changed. 153 // as long as the modification count hasn't changed.
154 int modificationCount() const { return m_modificationCount; } 154 int modificationCount() const { return m_modificationCount; }
155 155
156 void postNotification(LayoutObject*, AXNotification, bool postToElement); 156 void postNotification(LayoutObject*, AXNotification, bool postToElement);
157 void postNotification(Node*, AXNotification, bool postToElement); 157 void postNotification(Node*, AXNotification, bool postToElement);
158 void postNotification(AXObject*, Document*, AXNotification, bool postToEleme nt); 158 void postNotification(AXObject*, AXNotification, bool postToElement);
159 159
160 protected: 160 protected:
161 void postPlatformNotification(AXObject*, AXNotification); 161 void postPlatformNotification(AXObject*, AXNotification);
162 void textChanged(AXObject*); 162 void textChanged(AXObject*);
163 void labelChanged(Element*); 163 void labelChanged(Element*);
164 164
165 // This is a weak reference cache for knowing if Nodes used by TextMarkers a re valid. 165 // This is a weak reference cache for knowing if Nodes used by TextMarkers a re valid.
166 void setNodeInUse(Node* n) { m_textMarkerNodes.add(n); } 166 void setNodeInUse(Node* n) { m_textMarkerNodes.add(n); }
167 void removeNodeForUse(Node* n) { m_textMarkerNodes.remove(n); } 167 void removeNodeForUse(Node* n) { m_textMarkerNodes.remove(n); }
168 bool isNodeInUse(Node* n) { return m_textMarkerNodes.contains(n); } 168 bool isNodeInUse(Node* n) { return m_textMarkerNodes.contains(n); }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // This is the only subclass of AXObjectCache. 200 // This is the only subclass of AXObjectCache.
201 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 201 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
202 202
203 bool nodeHasRole(Node*, const String& role); 203 bool nodeHasRole(Node*, const String& role);
204 // This will let you know if aria-hidden was explicitly set to false. 204 // This will let you know if aria-hidden was explicitly set to false.
205 bool isNodeAriaVisible(Node*); 205 bool isNodeAriaVisible(Node*);
206 206
207 } 207 }
208 208
209 #endif 209 #endif
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/modules/accessibility/AXObjectCacheImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698