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

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

Issue 252253002: Implement initial support for nesting one ax tree in another. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback 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_manager.h
diff --git a/content/browser/accessibility/browser_accessibility_manager.h b/content/browser/accessibility/browser_accessibility_manager.h
index 932a435bd7adb9168fa2fc5e8379118afbd50ebb..c4e1d96cd29ce58b39b2ace64f1636f1d563af51 100644
--- a/content/browser/accessibility/browser_accessibility_manager.h
+++ b/content/browser/accessibility/browser_accessibility_manager.h
@@ -178,6 +178,11 @@ class CONTENT_EXPORT BrowserAccessibilityManager : public ui::AXTreeDelegate {
BrowserAccessibilityDelegate* delegate() const { return delegate_; }
+ // Frame tree support.
+ void SetParentFrameIds(uint32 parent_frame_frame_id,
+ uint32 parent_frame_node_id);
+ BrowserAccessibility* GetCrossFrameParent();
+
protected:
BrowserAccessibilityManager(
BrowserAccessibilityDelegate* delegate,
@@ -242,6 +247,17 @@ class CONTENT_EXPORT BrowserAccessibilityManager : public ui::AXTreeDelegate {
// A mapping from a node id to its wrapper of type BrowserAccessibility.
base::hash_map<int32, BrowserAccessibility*> id_wrapper_map_;
+ // This and the following field are set if this tree's frame is the child
+ // of another frame.
+ //
+ // The id of the parent frame, which can be mapped to another
+ // BrowserAccessibilityManager using FrameTreeAccessibility.
+ uint32 parent_frame_frame_id_;
aboxhall 2014/05/06 15:41:27 I'm wondering whether this and the below should be
+
+ // If |parent_frame_frame_id_| is not kNoFrameId, then this is the
+ // id of the hosting node within the parent frame.
+ uint32 parent_frame_node_id_;
+
// The on-screen keyboard state.
OnScreenKeyboardState osk_state_;

Powered by Google App Engine
This is Rietveld 408576698