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

Side by Side Diff: content/browser/accessibility/browser_accessibility.h

Issue 510513003: Send Android accessibility event when object location changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_accessibility_focus_3
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 // Called after an atomic update to the tree finished and this object 59 // Called after an atomic update to the tree finished and this object
60 // was created or changed in this update. 60 // was created or changed in this update.
61 virtual void OnUpdateFinished() {} 61 virtual void OnUpdateFinished() {}
62 62
63 // Returns true if this is a native platform-specific object, vs a 63 // Returns true if this is a native platform-specific object, vs a
64 // cross-platform generic object. 64 // cross-platform generic object.
65 virtual bool IsNative() const; 65 virtual bool IsNative() const;
66 66
67 // Called when the location changed. 67 // Called when the location changed.
68 virtual void OnLocationChanged() const {} 68 virtual void OnLocationChanged() {}
69 69
70 // Return true if this object is equal to or a descendant of |ancestor|. 70 // Return true if this object is equal to or a descendant of |ancestor|.
71 bool IsDescendantOf(BrowserAccessibility* ancestor); 71 bool IsDescendantOf(BrowserAccessibility* ancestor);
72 72
73 // Returns true if this is a leaf node on this platform, meaning any 73 // Returns true if this is a leaf node on this platform, meaning any
74 // children should not be exposed to this platform's native accessibility 74 // children should not be exposed to this platform's native accessibility
75 // layer. Each platform subclass should implement this itself. 75 // layer. Each platform subclass should implement this itself.
76 // The definition of a leaf may vary depending on the platform, 76 // The definition of a leaf may vary depending on the platform,
77 // but a leaf node should never have children that are focusable or 77 // but a leaf node should never have children that are focusable or
78 // that might send notifications. 78 // that might send notifications.
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 std::string name_; 262 std::string name_;
263 std::string value_; 263 std::string value_;
264 264
265 private: 265 private:
266 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 266 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
267 }; 267 };
268 268
269 } // namespace content 269 } // namespace content
270 270
271 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 271 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698