summaryrefslogtreecommitdiffstats
path: root/content/browser/accessibility/browser_accessibility.h
diff options
context:
space:
mode:
authordmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-14 22:43:51 +0000
committerdmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-14 22:43:51 +0000
commit26aef306d96f8126e95787f40dae07282562ed65 (patch)
tree205c7feade5fa6fbcba3e9234e2a53f65f96d4c6 /content/browser/accessibility/browser_accessibility.h
parentab254696bbf9608710cb64e432457dbb4bf1ef63 (diff)
downloadchromium_src-26aef306d96f8126e95787f40dae07282562ed65.zip
chromium_src-26aef306d96f8126e95787f40dae07282562ed65.tar.gz
chromium_src-26aef306d96f8126e95787f40dae07282562ed65.tar.bz2
Fix staleness in Mac accessibility tree.
After r186553, the browser accessibility tree updates more nodes in place. This exposed a latent bug, which is that BrowserAccessibilityCocoa was caching its children vector and not refreshing it when the node's children changed. This change fixes it so that any change to BrowserAccessibility's children results in refreshing BrowserAccessibilityCocoa's children too. Also fixes a mistake in the switch statement mapping Mac notifications. BUG=none TBR=dtseng Review URL: https://chromiumcodereview.appspot.com/12719008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@188221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/accessibility/browser_accessibility.h')
-rw-r--r--content/browser/accessibility/browser_accessibility.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index ee74077..62fff55 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -77,10 +77,7 @@ class CONTENT_EXPORT BrowserAccessibility {
// Initialize this object's data.
void InitializeData(const AccessibilityNodeData& src);
- // Add a child of this object.
- void AddChild(BrowserAccessibility* child);
-
- void SwapChildren(std::vector<BrowserAccessibility*>& children);
+ virtual void SwapChildren(std::vector<BrowserAccessibility*>& children);
// Update the parent and index in parent if this node has been moved.
void UpdateParent(BrowserAccessibility* parent, int index_in_parent);