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

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

Issue 880523002: Revert of Send Windows accessibility events based on tree updates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implicit_1_tests
Patch Set: Created 5 years, 11 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index e8a7d387d31407d42f3304e4591caa2f4b98c383..37f2fe04736c1d5e01a7ea8170b2bdf4d0e59a76 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -56,15 +56,15 @@
// Called after the object is first initialized and again every time
// its data changes.
- virtual void OnDataChanged() {}
+ virtual void OnDataChanged();
// Called after an atomic update to the tree finished and this object
// was created or changed in this update.
virtual void OnUpdateFinished() {}
- virtual void OnSubtreeWillBeDeleted() {}
-
- virtual void OnSubtreeCreationFinished() {}
+ // Returns true if this is a native platform-specific object, vs a
+ // cross-platform generic object.
+ virtual bool IsNative() const;
// Called when the location changed.
virtual void OnLocationChanged() {}
@@ -88,11 +88,6 @@
// invalid index. Returns NULL if PlatformIsLeaf() returns true.
BrowserAccessibility* PlatformGetChild(uint32 child_index) const;
- // Returns true if an ancestor of this node (not including itself) is a
- // leaf node, meaning that this node is not actually exposed to the
- // platform.
- bool PlatformIsChildOfLeaf() const;
-
// Return the previous sibling of this object, or NULL if it's the first
// child of its parent.
BrowserAccessibility* GetPreviousSibling();
@@ -145,6 +140,10 @@
BrowserAccessibilityManager* manager() const { return manager_; }
bool instance_active() const { return node_ != NULL; }
ui::AXNode* node() const { return node_; }
+ const std::string& name() const { return name_; }
+ const std::string& value() const { return value_; }
+ void set_name(const std::string& name) { name_ = name; }
+ void set_value(const std::string& value) { value_ = value; }
// These access the internal accessibility tree, which doesn't necessarily
// reflect the accessibility tree that should be exposed on each platform.
@@ -164,12 +163,6 @@
typedef base::StringPairs HtmlAttributes;
const HtmlAttributes& GetHtmlAttributes() const;
-
-
- // Returns true if this is a native platform-specific object, vs a
- // cross-platform generic object. Don't call ToBrowserAccessibilityXXX if
- // IsNative returns false.
- virtual bool IsNative() const;
#if defined(OS_MACOSX) && __OBJC__
BrowserAccessibilityCocoa* ToBrowserAccessibilityCocoa();
@@ -220,6 +213,9 @@
ui::AXIntListAttribute attribute) const;
bool GetIntListAttribute(ui::AXIntListAttribute attribute,
std::vector<int32>* value) const;
+
+ void SetStringAttribute(ui::AXStringAttribute attribute,
+ const std::string& value);
// Retrieve the value of a html attribute from the attribute map and
// returns true if found.
@@ -254,6 +250,9 @@
// True if this is a web area, and its grandparent is a presentational iframe.
bool IsWebAreaForPresentationalIframe() const;
+ // Append the text from this node and its children.
+ std::string GetTextRecursive() const;
+
protected:
BrowserAccessibility();
@@ -273,6 +272,9 @@
// bounds offsets.
BrowserAccessibility* GetParentForBoundsCalculation() const;
+ std::string name_;
+ std::string value_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
};
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698