| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 | 180 |
| 181 // True by default, but some platforms want to treat the root | 181 // True by default, but some platforms want to treat the root |
| 182 // scroll offsets separately. | 182 // scroll offsets separately. |
| 183 virtual bool UseRootScrollOffsetsWhenComputingBounds(); | 183 virtual bool UseRootScrollOffsetsWhenComputingBounds(); |
| 184 | 184 |
| 185 // Walk the tree. | 185 // Walk the tree. |
| 186 BrowserAccessibility* NextInTreeOrder(BrowserAccessibility* node); | 186 BrowserAccessibility* NextInTreeOrder(BrowserAccessibility* node); |
| 187 BrowserAccessibility* PreviousInTreeOrder(BrowserAccessibility* node); | 187 BrowserAccessibility* PreviousInTreeOrder(BrowserAccessibility* node); |
| 188 | 188 |
| 189 // AXTreeDelegate implementation. | 189 // AXTreeDelegate implementation. |
| 190 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE; | 190 virtual void OnNodeWillBeDeleted(ui::AXNode* node) override; |
| 191 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE; | 191 virtual void OnNodeCreated(ui::AXNode* node) override; |
| 192 virtual void OnNodeChanged(ui::AXNode* node) OVERRIDE; | 192 virtual void OnNodeChanged(ui::AXNode* node) override; |
| 193 virtual void OnNodeCreationFinished(ui::AXNode* node) OVERRIDE; | 193 virtual void OnNodeCreationFinished(ui::AXNode* node) override; |
| 194 virtual void OnNodeChangeFinished(ui::AXNode* node) OVERRIDE; | 194 virtual void OnNodeChangeFinished(ui::AXNode* node) override; |
| 195 virtual void OnRootChanged(ui::AXNode* new_root) OVERRIDE {} | 195 virtual void OnRootChanged(ui::AXNode* new_root) override {} |
| 196 | 196 |
| 197 BrowserAccessibilityDelegate* delegate() const { return delegate_; } | 197 BrowserAccessibilityDelegate* delegate() const { return delegate_; } |
| 198 void set_delegate(BrowserAccessibilityDelegate* delegate) { | 198 void set_delegate(BrowserAccessibilityDelegate* delegate) { |
| 199 delegate_ = delegate; | 199 delegate_ = delegate; |
| 200 } | 200 } |
| 201 | 201 |
| 202 // Get a snapshot of the current tree as an AXTreeUpdate. | 202 // Get a snapshot of the current tree as an AXTreeUpdate. |
| 203 ui::AXTreeUpdate SnapshotAXTreeForTesting(); | 203 ui::AXTreeUpdate SnapshotAXTreeForTesting(); |
| 204 | 204 |
| 205 protected: | 205 protected: |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 // The on-screen keyboard state. | 257 // The on-screen keyboard state. |
| 258 OnScreenKeyboardState osk_state_; | 258 OnScreenKeyboardState osk_state_; |
| 259 | 259 |
| 260 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 260 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 261 }; | 261 }; |
| 262 | 262 |
| 263 } // namespace content | 263 } // namespace content |
| 264 | 264 |
| 265 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 265 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |