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

Unified Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 1896463002: Merge to M51: Accessible location change events need to update internal data structure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_manager.h
diff --git a/content/browser/accessibility/browser_accessibility_manager.h b/content/browser/accessibility/browser_accessibility_manager.h
index d3d4f03c2a00e5677f7907f994f6e420cecb21a9..1bc554e2ef08e32a614ddc33a4f93271d811ac2c 100644
--- a/content/browser/accessibility/browser_accessibility_manager.h
+++ b/content/browser/accessibility/browser_accessibility_manager.h
@@ -240,8 +240,8 @@ class CONTENT_EXPORT BrowserAccessibilityManager : public ui::AXTreeDelegate {
const std::vector<AXEventNotificationDetails>& details);
// Called when the renderer process updates the location of accessibility
- // objects.
- virtual void OnLocationChanges(
+ // objects. Calls SendLocationChangeEvents(), which can be overridden.
+ void OnLocationChanges(
const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
// Called when a new find in page result is received. We hold on to this
@@ -366,6 +366,12 @@ class CONTENT_EXPORT BrowserAccessibilityManager : public ui::AXTreeDelegate {
BrowserAccessibilityDelegate* delegate,
BrowserAccessibilityFactory* factory);
+ // Send platform-specific notifications to each of these objects that
+ // their location has changed. This is called by OnLocationChanges
+ // after it's updated the internal data structure.
+ virtual void SendLocationChangeEvents(
+ const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
+
private:
// The following states keep track of whether or not the
// on-screen keyboard is allowed to be shown.
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698