| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 bool IsMenuRelated() const; | 337 bool IsMenuRelated() const; |
| 338 bool IsNativeTextControl() const; | 338 bool IsNativeTextControl() const; |
| 339 bool IsSimpleTextControl() const; | 339 bool IsSimpleTextControl() const; |
| 340 // Indicates if this object is at the root of a rich edit text control. | 340 // Indicates if this object is at the root of a rich edit text control. |
| 341 bool IsRichTextControl() const; | 341 bool IsRichTextControl() const; |
| 342 | 342 |
| 343 // If an object is focusable but has no accessible name, use this | 343 // If an object is focusable but has no accessible name, use this |
| 344 // to compute a name from its descendants. | 344 // to compute a name from its descendants. |
| 345 std::string ComputeAccessibleNameFromDescendants(); | 345 std::string ComputeAccessibleNameFromDescendants(); |
| 346 | 346 |
| 347 // Gets the text offsets where new lines start. |
| 348 std::vector<int> GetLineStartOffsets() const; |
| 349 |
| 347 protected: | 350 protected: |
| 348 BrowserAccessibility(); | 351 BrowserAccessibility(); |
| 349 | 352 |
| 350 // The manager of this tree of accessibility objects. | 353 // The manager of this tree of accessibility objects. |
| 351 BrowserAccessibilityManager* manager_; | 354 BrowserAccessibilityManager* manager_; |
| 352 | 355 |
| 353 // The underlying node. | 356 // The underlying node. |
| 354 ui::AXNode* node_; | 357 ui::AXNode* node_; |
| 355 | 358 |
| 356 // A unique ID, since node IDs are frame-local. | 359 // A unique ID, since node IDs are frame-local. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 374 // page coordinates (when |frameOnly| is false), or in frame coordinates | 377 // page coordinates (when |frameOnly| is false), or in frame coordinates |
| 375 // (when |frameOnly| is true). | 378 // (when |frameOnly| is true). |
| 376 gfx::Rect RelativeToAbsoluteBounds(gfx::RectF bounds, bool frame_only) const; | 379 gfx::Rect RelativeToAbsoluteBounds(gfx::RectF bounds, bool frame_only) const; |
| 377 | 380 |
| 378 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 381 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 379 }; | 382 }; |
| 380 | 383 |
| 381 } // namespace content | 384 } // namespace content |
| 382 | 385 |
| 383 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 386 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |