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

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

Issue 8775059: Relanding http://codereview.chromium.org/8416034 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Windows mucking up line endings for Mac file. 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 9ae0dc9a2efca4974e20abade9496bed904fcc9f..0dfdd0b1eb3f6240ebd2112dd896800f5c4229c0 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -55,21 +55,16 @@ 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.
- 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() {}
+ // Child dependent initialization can be done here.
+ virtual void PostInitialize() {}
// Initialize this object, reading attributes from |src|. Does not
// recurse into children of |src| and build the whole subtree.
- void Initialize(BrowserAccessibilityManager* manager,
- BrowserAccessibility* parent,
- int32 child_id,
- int32 index_in_parent,
- const WebAccessibility& src);
+ void PreInitialize(BrowserAccessibilityManager* manager,
+ BrowserAccessibility* parent,
+ int32 child_id,
+ int32 index_in_parent,
+ const WebAccessibility& src);
// Add a child of this object.
void AddChild(BrowserAccessibility* child);
@@ -224,6 +219,12 @@ 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