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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 HashMap<AXID, HashSet<String>> m_ariaOwnerToIdsMapping; 225 HashMap<AXID, HashSet<String>> m_ariaOwnerToIdsMapping;
226 226
227 // Map from an ID (the ID attribute of a DOM element) to the set of elements that 227 // Map from an ID (the ID attribute of a DOM element) to the set of elements that
228 // want to own that ID. This is *unvalidated*, it includes possible duplicat es. 228 // want to own that ID. This is *unvalidated*, it includes possible duplicat es.
229 // This is used so that when an element with an ID is added to the tree or c hanges 229 // This is used so that when an element with an ID is added to the tree or c hanges
230 // its ID, we can quickly determine if it affects an aria-owns relationship. 230 // its ID, we can quickly determine if it affects an aria-owns relationship.
231 HashMap<String, std::unique_ptr<HashSet<AXID>>> m_idToAriaOwnersMapping; 231 HashMap<String, std::unique_ptr<HashSet<AXID>>> m_idToAriaOwnersMapping;
232 232
233 Timer<AXObjectCacheImpl> m_notificationPostTimer; 233 Timer<AXObjectCacheImpl> m_notificationPostTimer;
234 HeapVector<std::pair<Member<AXObject>, AXNotification>> m_notificationsToPos t; 234 HeapVector<std::pair<Member<AXObject>, AXNotification>> m_notificationsToPos t;
235 void notificationPostTimerFired(Timer<AXObjectCacheImpl>*); 235 void notificationPostTimerFired(TimerBase*);
236 236
237 AXObject* focusedImageMapUIElement(HTMLAreaElement*); 237 AXObject* focusedImageMapUIElement(HTMLAreaElement*);
238 238
239 AXID getAXID(AXObject*); 239 AXID getAXID(AXObject*);
240 240
241 void textChanged(Node*); 241 void textChanged(Node*);
242 bool nodeIsTextControl(const Node*); 242 bool nodeIsTextControl(const Node*);
243 243
244 Settings* settings(); 244 Settings* settings();
245 }; 245 };
246 246
247 // This is the only subclass of AXObjectCache. 247 // This is the only subclass of AXObjectCache.
248 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 248 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
249 249
250 bool nodeHasRole(Node*, const String& role); 250 bool nodeHasRole(Node*, const String& role);
251 // This will let you know if aria-hidden was explicitly set to false. 251 // This will let you know if aria-hidden was explicitly set to false.
252 bool isNodeAriaVisible(Node*); 252 bool isNodeAriaVisible(Node*);
253 253
254 } // namespace blink 254 } // namespace blink
255 255
256 #endif 256 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698