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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void handleScrolledToAnchor(const Node* anchorNode) override; 109 void handleScrolledToAnchor(const Node* anchorNode) override;
110 110
111 const AtomicString& computedRoleForNode(Node*) override; 111 const AtomicString& computedRoleForNode(Node*) override;
112 String computedNameForNode(Node*) override; 112 String computedNameForNode(Node*) override;
113 113
114 void onTouchAccessibilityHover(const IntPoint&) override; 114 void onTouchAccessibilityHover(const IntPoint&) override;
115 115
116 // Returns the root object for the entire document. 116 // Returns the root object for the entire document.
117 AXObject* rootObject(); 117 AXObject* rootObject();
118 118
119 AXObject* objectFromAXID(AXID id) const { return m_objects.get(id); } 119 AXObject* objectFromAXID(AXID id) const { return m_objects.at(id); }
120 AXObject* root(); 120 AXObject* root();
121 121
122 // used for objects without backing elements 122 // used for objects without backing elements
123 AXObject* getOrCreate(AccessibilityRole); 123 AXObject* getOrCreate(AccessibilityRole);
124 AXObject* getOrCreate(LayoutObject*); 124 AXObject* getOrCreate(LayoutObject*);
125 AXObject* getOrCreate(Node*); 125 AXObject* getOrCreate(Node*);
126 AXObject* getOrCreate(AbstractInlineTextBox*); 126 AXObject* getOrCreate(AbstractInlineTextBox*);
127 127
128 // will only return the AXObject if it already exists 128 // will only return the AXObject if it already exists
129 AXObject* get(Node*); 129 AXObject* get(Node*);
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // This is the only subclass of AXObjectCache. 258 // This is the only subclass of AXObjectCache.
259 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 259 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
260 260
261 bool nodeHasRole(Node*, const String& role); 261 bool nodeHasRole(Node*, const String& role);
262 // This will let you know if aria-hidden was explicitly set to false. 262 // This will let you know if aria-hidden was explicitly set to false.
263 bool isNodeAriaVisible(Node*); 263 bool isNodeAriaVisible(Node*);
264 264
265 } // namespace blink 265 } // namespace blink
266 266
267 #endif 267 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698