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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager.h

Issue 1552683002: Enable DumpAccessibilityTree tests to use cross-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline last Android test Created 4 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 unified diff | Download patch
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 ui::AXTree* tree, 280 ui::AXTree* tree,
281 bool root_changed, 281 bool root_changed,
282 const std::vector<ui::AXTreeDelegate::Change>& changes) override; 282 const std::vector<ui::AXTreeDelegate::Change>& changes) override;
283 283
284 BrowserAccessibilityDelegate* delegate() const { return delegate_; } 284 BrowserAccessibilityDelegate* delegate() const { return delegate_; }
285 void set_delegate(BrowserAccessibilityDelegate* delegate) { 285 void set_delegate(BrowserAccessibilityDelegate* delegate) {
286 delegate_ = delegate; 286 delegate_ = delegate;
287 } 287 }
288 288
289 // If this BrowserAccessibilityManager is a child frame or guest frame, 289 // If this BrowserAccessibilityManager is a child frame or guest frame,
290 // return the BrowserAccessibilityDelegate from the highest ancestor frame 290 // return the BrowserAccessibilityManager from the highest ancestor frame
291 // in the frame tree. 291 // in the frame tree.
292 BrowserAccessibilityManager* GetRootManager();
293
294 // Returns the BrowserAccessibilityDelegate from |GetRootManager|, above.
292 BrowserAccessibilityDelegate* GetDelegateFromRootManager(); 295 BrowserAccessibilityDelegate* GetDelegateFromRootManager();
293 296
294 // Get a snapshot of the current tree as an AXTreeUpdate. 297 // Get a snapshot of the current tree as an AXTreeUpdate.
295 ui::AXTreeUpdate SnapshotAXTreeForTesting(); 298 ui::AXTreeUpdate SnapshotAXTreeForTesting();
296 299
297 protected: 300 protected:
298 BrowserAccessibilityManager( 301 BrowserAccessibilityManager(
299 BrowserAccessibilityDelegate* delegate, 302 BrowserAccessibilityDelegate* delegate,
300 BrowserAccessibilityFactory* factory); 303 BrowserAccessibilityFactory* factory);
301 304
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // node within that parent tree. It's computed as needed and cached for 361 // node within that parent tree. It's computed as needed and cached for
359 // speed so that it can be accessed quickly if it hasn't changed. 362 // speed so that it can be accessed quickly if it hasn't changed.
360 int parent_node_id_from_parent_tree_; 363 int parent_node_id_from_parent_tree_;
361 364
362 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); 365 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager);
363 }; 366 };
364 367
365 } // namespace content 368 } // namespace content
366 369
367 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ 370 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698