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

Side by Side Diff: third_party/WebKit/Source/core/dom/AXObjectCache.h

Issue 1375703002: Fire accessibility hover events when the touch exploration flag is set. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use asserts instead of checks in test Created 5 years, 2 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) 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 enum AXNotification { 55 enum AXNotification {
56 AXActiveDescendantChanged, 56 AXActiveDescendantChanged,
57 AXAlert, 57 AXAlert,
58 AXAriaAttributeChanged, 58 AXAriaAttributeChanged,
59 AXAutocorrectionOccured, 59 AXAutocorrectionOccured,
60 AXBlur, 60 AXBlur,
61 AXCheckedStateChanged, 61 AXCheckedStateChanged,
62 AXChildrenChanged, 62 AXChildrenChanged,
63 AXFocusedUIElementChanged, 63 AXFocusedUIElementChanged,
64 AXHide, 64 AXHide,
65 AXHover,
65 AXInvalidStatusChanged, 66 AXInvalidStatusChanged,
66 AXLayoutComplete, 67 AXLayoutComplete,
67 AXLiveRegionChanged, 68 AXLiveRegionChanged,
68 AXLoadComplete, 69 AXLoadComplete,
69 AXLocationChanged, 70 AXLocationChanged,
70 AXMenuListItemSelected, 71 AXMenuListItemSelected,
71 AXMenuListItemUnselected, 72 AXMenuListItemUnselected,
72 AXMenuListValueChanged, 73 AXMenuListValueChanged,
73 AXRowCollapsed, 74 AXRowCollapsed,
74 AXRowCountChanged, 75 AXRowCountChanged,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void handleScrollPositionChanged(LayoutObject*) = 0; 129 virtual void handleScrollPositionChanged(LayoutObject*) = 0;
129 130
130 // Called when scroll bars are added / removed (as the view resizes). 131 // Called when scroll bars are added / removed (as the view resizes).
131 virtual void handleScrollbarUpdate(FrameView*) = 0; 132 virtual void handleScrollbarUpdate(FrameView*) = 0;
132 virtual void handleLayoutComplete(LayoutObject*) = 0; 133 virtual void handleLayoutComplete(LayoutObject*) = 0;
133 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0; 134 virtual void handleScrolledToAnchor(const Node* anchorNode) = 0;
134 135
135 virtual const AtomicString& computedRoleForNode(Node*) = 0; 136 virtual const AtomicString& computedRoleForNode(Node*) = 0;
136 virtual String computedNameForNode(Node*) = 0; 137 virtual String computedNameForNode(Node*) = 0;
137 138
139 virtual void onTouchAccessibilityHover(const IntPoint&) = 0;
140
138 typedef AXObjectCache* (*AXObjectCacheCreateFunction)(Document&); 141 typedef AXObjectCache* (*AXObjectCacheCreateFunction)(Document&);
139 static void init(AXObjectCacheCreateFunction); 142 static void init(AXObjectCacheCreateFunction);
140 143
141 protected: 144 protected:
142 AXObjectCache(); 145 AXObjectCache();
143 146
144 private: 147 private:
145 static AXObjectCacheCreateFunction m_createFunction; 148 static AXObjectCacheCreateFunction m_createFunction;
146 }; 149 };
147 150
148 class CORE_EXPORT ScopedAXObjectCache { 151 class CORE_EXPORT ScopedAXObjectCache {
149 WTF_MAKE_FAST_ALLOCATED(ScopedAXObjectCache); 152 WTF_MAKE_FAST_ALLOCATED(ScopedAXObjectCache);
150 WTF_MAKE_NONCOPYABLE(ScopedAXObjectCache); 153 WTF_MAKE_NONCOPYABLE(ScopedAXObjectCache);
151 public: 154 public:
152 static PassOwnPtr<ScopedAXObjectCache> create(Document&); 155 static PassOwnPtr<ScopedAXObjectCache> create(Document&);
153 ~ScopedAXObjectCache(); 156 ~ScopedAXObjectCache();
154 157
155 AXObjectCache* get(); 158 AXObjectCache* get();
156 159
157 private: 160 private:
158 explicit ScopedAXObjectCache(Document&); 161 explicit ScopedAXObjectCache(Document&);
159 162
160 RefPtrWillBePersistent<Document> m_document; 163 RefPtrWillBePersistent<Document> m_document;
161 Persistent<AXObjectCache> m_cache; 164 Persistent<AXObjectCache> m_cache;
162 }; 165 };
163 166
164 } 167 }
165 168
166 #endif 169 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698