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

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

Issue 272573003: Add hack so VoiceOver speaks updates to injected live regions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clarified comment Created 6 years, 7 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
Index: content/browser/accessibility/browser_accessibility_mac.h
diff --git a/content/browser/accessibility/browser_accessibility_mac.h b/content/browser/accessibility/browser_accessibility_mac.h
index dc04484b67e97fefd1b38b10346e46f9a0397524..e1b5e384dc1b2cd50f8110b3255040319a62bc9a 100644
--- a/content/browser/accessibility/browser_accessibility_mac.h
+++ b/content/browser/accessibility/browser_accessibility_mac.h
@@ -27,6 +27,11 @@ class BrowserAccessibilityMac : public BrowserAccessibility {
return browser_accessibility_cocoa_;
}
+ // Detach the BrowserAccessibilityCocoa object and then recreate it.
+ // This is only used to work around VoiceOver bugs by forcing VoiceOver
+ // to rebuild its internal state.
+ void RecreateNativeObject();
David Tseng 2014/05/09 03:09:47 FYI; I forgot that the BAC creates its children (a
dmazzoni 2014/05/09 06:10:30 Oh! Good thought. Better idea, let's preserve the
+
private:
// This gives BrowserAccessibility::Create access to the class constructor.
friend class BrowserAccessibility;

Powered by Google App Engine
This is Rietveld 408576698