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 1589623002: Keep track of accessibility focus across windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final suggestions Created 4 years, 10 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // This class should only be used from inside the accessibility directory. 47 // This class should only be used from inside the accessibility directory.
48 class MODULES_EXPORT AXObjectCacheImpl : public AXObjectCache { 48 class MODULES_EXPORT AXObjectCacheImpl : public AXObjectCache {
49 WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl); 49 WTF_MAKE_NONCOPYABLE(AXObjectCacheImpl);
50 public: 50 public:
51 static AXObjectCache* create(Document&); 51 static AXObjectCache* create(Document&);
52 52
53 explicit AXObjectCacheImpl(Document&); 53 explicit AXObjectCacheImpl(Document&);
54 ~AXObjectCacheImpl(); 54 ~AXObjectCacheImpl();
55 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
56 56
57 AXObject* focusedUIElementForPage(const Page*); 57 AXObject* focusedObject();
58 58
59 void dispose() override; 59 void dispose() override;
60 60
61 void selectionChanged(Node*) override; 61 void selectionChanged(Node*) override;
62 void childrenChanged(Node*) override; 62 void childrenChanged(Node*) override;
63 void childrenChanged(LayoutObject*) override; 63 void childrenChanged(LayoutObject*) override;
64 void checkedStateChanged(Node*) override; 64 void checkedStateChanged(Node*) override;
65 virtual void listboxOptionStateChanged(HTMLOptionElement*); 65 virtual void listboxOptionStateChanged(HTMLOptionElement*);
66 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*); 66 virtual void listboxSelectedChildrenChanged(HTMLSelectElement*);
67 virtual void listboxActiveIndexChanged(HTMLSelectElement*); 67 virtual void listboxActiveIndexChanged(HTMLSelectElement*);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // This is the only subclass of AXObjectCache. 246 // This is the only subclass of AXObjectCache.
247 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true); 247 DEFINE_TYPE_CASTS(AXObjectCacheImpl, AXObjectCache, cache, true, true);
248 248
249 bool nodeHasRole(Node*, const String& role); 249 bool nodeHasRole(Node*, const String& role);
250 // This will let you know if aria-hidden was explicitly set to false. 250 // This will let you know if aria-hidden was explicitly set to false.
251 bool isNodeAriaVisible(Node*); 251 bool isNodeAriaVisible(Node*);
252 252
253 } // namespace blink 253 } // namespace blink
254 254
255 #endif 255 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698