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

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

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Finished pulling out ScopedAXObjectCache etc. Many fprintfs remain. Created 6 years 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef AXNodeObject_h 29 #ifndef AXNodeObject_h
30 #define AXNodeObject_h 30 #define AXNodeObject_h
31 31
32 #include "modules/accessibility/AXObject.h" 32 #include "modules/accessibility/AXObject.h"
33 #include "wtf/Forward.h" 33 #include "wtf/Forward.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AXObjectCache;
37 class Element; 38 class Element;
38 class HTMLLabelElement; 39 class HTMLLabelElement;
39 class LayoutRect; 40 class LayoutRect;
40 class Node; 41 class Node;
41 42
42 class AXNodeObject : public AXObject { 43 class AXNodeObject : public AXObject {
43 protected: 44 protected:
44 explicit AXNodeObject(Node*); 45 AXNodeObject(Node*, AXObjectCache*);
45 46
46 public: 47 public:
47 static PassRefPtr<AXNodeObject> create(Node*); 48 static PassRefPtr<AXNodeObject> create(Node*, AXObjectCache*);
48 virtual ~AXNodeObject(); 49 virtual ~AXNodeObject();
49 50
50 protected: 51 protected:
51 // Protected data. 52 // Protected data.
52 AccessibilityRole m_ariaRole; 53 AccessibilityRole m_ariaRole;
53 bool m_childrenDirty; 54 bool m_childrenDirty;
54 #if ENABLE(ASSERT) 55 #if ENABLE(ASSERT)
55 bool m_initialized; 56 bool m_initialized;
56 #endif 57 #endif
57 58
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 void changeValueByPercent(float percentChange); 198 void changeValueByPercent(float percentChange);
198 float stepValueForRange() const; 199 float stepValueForRange() const;
199 AXObject* findChildWithTagName(const HTMLQualifiedName&) const; 200 AXObject* findChildWithTagName(const HTMLQualifiedName&) const;
200 }; 201 };
201 202
202 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); 203 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject());
203 204
204 } // namespace blink 205 } // namespace blink
205 206
206 #endif // AXNodeObject_h 207 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698