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

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

Issue 8793001: Revert r112885 and follow-up r112886. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 10276e279d375774c9ea17742b57be3f4cabad1d..b07518bda22fbefb7422e9f39beb364d481732ca 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -55,16 +55,21 @@ class CONTENT_EXPORT BrowserAccessibility {
// Perform platform specific initialization. This can be called multiple times
// during the lifetime of this instance after the members of this base object
// have been reset with new values from the renderer process.
- // Child dependent initialization can be done here.
- virtual void PostInitialize() {}
+ virtual void Initialize();
+
+ // Optionally send events triggered simply by the fact that this node
+ // has been created or modified (and has been attached to the tree).
+ // This can include "show" events, "text changed" events in live regions,
+ // or "alert" events.
+ virtual void SendNodeUpdateEvents() {}
// Initialize this object, reading attributes from |src|. Does not
// recurse into children of |src| and build the whole subtree.
- void PreInitialize(BrowserAccessibilityManager* manager,
- BrowserAccessibility* parent,
- int32 child_id,
- int32 index_in_parent,
- const WebAccessibility& src);
+ void Initialize(BrowserAccessibilityManager* manager,
+ BrowserAccessibility* parent,
+ int32 child_id,
+ int32 index_in_parent,
+ const WebAccessibility& src);
// Add a child of this object.
void AddChild(BrowserAccessibility* child);
@@ -274,12 +279,6 @@ class CONTENT_EXPORT BrowserAccessibility {
string16 GetTextRecursive() const;
protected:
- // Perform platform specific initialization. This can be called multiple times
- // during the lifetime of this instance after the members of this base object
- // have been reset with new values from the renderer process.
- // Perform child independent initialization in this method.
- virtual void PreInitialize();
-
BrowserAccessibility();
// The manager of this tree of accessibility objects; needed for

Powered by Google App Engine
This is Rietveld 408576698