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_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 BrowserAccessibilityManager* manager_; | 257 BrowserAccessibilityManager* manager_; |
258 | 258 |
259 // The underlying node. | 259 // The underlying node. |
260 ui::AXNode* node_; | 260 ui::AXNode* node_; |
261 | 261 |
262 private: | 262 private: |
263 // Return the sum of the lengths of all static text descendants, | 263 // Return the sum of the lengths of all static text descendants, |
264 // including this object if it's static text. | 264 // including this object if it's static text. |
265 int GetStaticTextLenRecursive() const; | 265 int GetStaticTextLenRecursive() const; |
266 | 266 |
| 267 // Similar to GetParent(), but includes nodes that are the host of a |
| 268 // subtree rather than skipping over them - because they contain important |
| 269 // bounds offsets. |
| 270 BrowserAccessibility* GetParentForBoundsCalculation() const; |
| 271 |
267 std::string name_; | 272 std::string name_; |
268 std::string value_; | 273 std::string value_; |
269 | 274 |
270 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 275 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
271 }; | 276 }; |
272 | 277 |
273 } // namespace content | 278 } // namespace content |
274 | 279 |
275 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 280 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
OLD | NEW |