| OLD | NEW |
| 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 <memory> | 10 #include <memory> |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 } | 372 } |
| 373 | 373 |
| 374 // If this BrowserAccessibilityManager is a child frame or guest frame, | 374 // If this BrowserAccessibilityManager is a child frame or guest frame, |
| 375 // return the BrowserAccessibilityManager from the highest ancestor frame | 375 // return the BrowserAccessibilityManager from the highest ancestor frame |
| 376 // in the frame tree. | 376 // in the frame tree. |
| 377 BrowserAccessibilityManager* GetRootManager(); | 377 BrowserAccessibilityManager* GetRootManager(); |
| 378 | 378 |
| 379 // Returns the BrowserAccessibilityDelegate from |GetRootManager|, above. | 379 // Returns the BrowserAccessibilityDelegate from |GetRootManager|, above. |
| 380 BrowserAccessibilityDelegate* GetDelegateFromRootManager(); | 380 BrowserAccessibilityDelegate* GetDelegateFromRootManager(); |
| 381 | 381 |
| 382 // Returns whether this is the top document. |
| 383 bool IsRootTree(); |
| 384 |
| 382 // Get a snapshot of the current tree as an AXTreeUpdate. | 385 // Get a snapshot of the current tree as an AXTreeUpdate. |
| 383 ui::AXTreeUpdate SnapshotAXTreeForTesting(); | 386 ui::AXTreeUpdate SnapshotAXTreeForTesting(); |
| 384 | 387 |
| 385 protected: | 388 protected: |
| 386 BrowserAccessibilityManager( | 389 BrowserAccessibilityManager( |
| 387 BrowserAccessibilityDelegate* delegate, | 390 BrowserAccessibilityDelegate* delegate, |
| 388 BrowserAccessibilityFactory* factory); | 391 BrowserAccessibilityFactory* factory); |
| 389 | 392 |
| 390 BrowserAccessibilityManager( | 393 BrowserAccessibilityManager( |
| 391 const ui::AXTreeUpdate& initial_tree, | 394 const ui::AXTreeUpdate& initial_tree, |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 // node within that parent tree. It's computed as needed and cached for | 467 // node within that parent tree. It's computed as needed and cached for |
| 465 // speed so that it can be accessed quickly if it hasn't changed. | 468 // speed so that it can be accessed quickly if it hasn't changed. |
| 466 int parent_node_id_from_parent_tree_; | 469 int parent_node_id_from_parent_tree_; |
| 467 | 470 |
| 468 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 471 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 469 }; | 472 }; |
| 470 | 473 |
| 471 } // namespace content | 474 } // namespace content |
| 472 | 475 |
| 473 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 476 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |