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

Side by Side Diff: Source/core/accessibility/AXObjectCache.h

Issue 14763003: HashTraits<RefPtr<P> >::PeekType should be raw pointer for better performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 | « no previous file | Source/core/accessibility/AXObjectCache.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) 2003, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010, 2011 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 #endif 143 #endif
144 144
145 void removeAXID(AccessibilityObject*); 145 void removeAXID(AccessibilityObject*);
146 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); } 146 bool isIDinUse(AXID id) const { return m_idsInUse.contains(id); }
147 147
148 Element* rootAXEditableElement(Node*); 148 Element* rootAXEditableElement(Node*);
149 const Element* rootAXEditableElement(const Node*); 149 const Element* rootAXEditableElement(const Node*);
150 bool nodeIsTextControl(const Node*); 150 bool nodeIsTextControl(const Node*);
151 151
152 AXID platformGenerateAXID() const; 152 AXID platformGenerateAXID() const;
153 AccessibilityObject* objectFromAXID(AXID id) const { return m_objects.get(id ).get(); } 153 AccessibilityObject* objectFromAXID(AXID id) const { return m_objects.get(id ); }
154 154
155 // Text marker utilities. 155 // Text marker utilities.
156 void textMarkerDataForVisiblePosition(TextMarkerData&, const VisiblePosition &); 156 void textMarkerDataForVisiblePosition(TextMarkerData&, const VisiblePosition &);
157 VisiblePosition visiblePositionForTextMarkerData(TextMarkerData&); 157 VisiblePosition visiblePositionForTextMarkerData(TextMarkerData&);
158 158
159 enum AXNotification { 159 enum AXNotification {
160 AXActiveDescendantChanged, 160 AXActiveDescendantChanged,
161 AXAutocorrectionOccured, 161 AXAutocorrectionOccured,
162 AXCheckedStateChanged, 162 AXCheckedStateChanged,
163 AXChildrenChanged, 163 AXChildrenChanged,
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 inline void AXObjectCache::remove(RenderObject*) { } 295 inline void AXObjectCache::remove(RenderObject*) { }
296 inline void AXObjectCache::remove(Node*) { } 296 inline void AXObjectCache::remove(Node*) { }
297 inline void AXObjectCache::remove(Widget*) { } 297 inline void AXObjectCache::remove(Widget*) { }
298 inline void AXObjectCache::selectedChildrenChanged(RenderObject*) { } 298 inline void AXObjectCache::selectedChildrenChanged(RenderObject*) { }
299 inline void AXObjectCache::selectedChildrenChanged(Node*) { } 299 inline void AXObjectCache::selectedChildrenChanged(Node*) { }
300 #endif 300 #endif
301 301
302 } 302 }
303 303
304 #endif 304 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXObjectCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698