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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // AXTreeDelegate implementation. 171 // AXTreeDelegate implementation.
172 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE; 172 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE;
173 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE; 173 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE;
174 virtual void OnNodeChanged(ui::AXNode* node) OVERRIDE; 174 virtual void OnNodeChanged(ui::AXNode* node) OVERRIDE;
175 virtual void OnNodeCreationFinished(ui::AXNode* node) OVERRIDE; 175 virtual void OnNodeCreationFinished(ui::AXNode* node) OVERRIDE;
176 virtual void OnNodeChangeFinished(ui::AXNode* node) OVERRIDE; 176 virtual void OnNodeChangeFinished(ui::AXNode* node) OVERRIDE;
177 virtual void OnRootChanged(ui::AXNode* new_root) OVERRIDE {} 177 virtual void OnRootChanged(ui::AXNode* new_root) OVERRIDE {}
178 178
179 BrowserAccessibilityDelegate* delegate() const { return delegate_; } 179 BrowserAccessibilityDelegate* delegate() const { return delegate_; }
180 180
181 // Frame tree support.
182 void SetParentFrameIds(uint32 parent_frame_frame_id,
183 uint32 parent_frame_node_id);
184 BrowserAccessibility* GetCrossFrameParent();
185
181 protected: 186 protected:
182 BrowserAccessibilityManager( 187 BrowserAccessibilityManager(
183 BrowserAccessibilityDelegate* delegate, 188 BrowserAccessibilityDelegate* delegate,
184 BrowserAccessibilityFactory* factory); 189 BrowserAccessibilityFactory* factory);
185 190
186 BrowserAccessibilityManager( 191 BrowserAccessibilityManager(
187 const ui::AXTreeUpdate& initial_tree, 192 const ui::AXTreeUpdate& initial_tree,
188 BrowserAccessibilityDelegate* delegate, 193 BrowserAccessibilityDelegate* delegate,
189 BrowserAccessibilityFactory* factory); 194 BrowserAccessibilityFactory* factory);
190 195
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 240
236 // The underlying tree of accessibility objects. 241 // The underlying tree of accessibility objects.
237 scoped_ptr<ui::AXTree> tree_; 242 scoped_ptr<ui::AXTree> tree_;
238 243
239 // The node that currently has focus. 244 // The node that currently has focus.
240 ui::AXNode* focus_; 245 ui::AXNode* focus_;
241 246
242 // A mapping from a node id to its wrapper of type BrowserAccessibility. 247 // A mapping from a node id to its wrapper of type BrowserAccessibility.
243 base::hash_map<int32, BrowserAccessibility*> id_wrapper_map_; 248 base::hash_map<int32, BrowserAccessibility*> id_wrapper_map_;
244 249
250 // This and the following field are set if this tree's frame is the child
251 // of another frame.
252 //
253 // The id of the parent frame, which can be mapped to another
254 // BrowserAccessibilityManager using FrameTreeAccessibility.
255 uint32 parent_frame_frame_id_;
aboxhall 2014/05/06 15:41:27 I'm wondering whether this and the below should be
256
257 // If |parent_frame_frame_id_| is not kNoFrameId, then this is the
258 // id of the hosting node within the parent frame.
259 uint32 parent_frame_node_id_;
260
245 // The on-screen keyboard state. 261 // The on-screen keyboard state.
246 OnScreenKeyboardState osk_state_; 262 OnScreenKeyboardState osk_state_;
247 263
248 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 264 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
249 }; 265 };
250 266
251 } // namespace content 267 } // namespace content
252 268
253 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 269 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698