| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 virtual void OnLocationChanged() {} | 92 virtual void OnLocationChanged() {} |
| 93 | 93 |
| 94 // This is called when the platform-specific attributes for a node need | 94 // This is called when the platform-specific attributes for a node need |
| 95 // to be recomputed, which may involve firing native events, due to a | 95 // to be recomputed, which may involve firing native events, due to a |
| 96 // change other than an update from OnAccessibilityEvents. | 96 // change other than an update from OnAccessibilityEvents. |
| 97 virtual void UpdatePlatformAttributes() {} | 97 virtual void UpdatePlatformAttributes() {} |
| 98 | 98 |
| 99 // Return true if this object is equal to or a descendant of |ancestor|. | 99 // Return true if this object is equal to or a descendant of |ancestor|. |
| 100 bool IsDescendantOf(const BrowserAccessibility* ancestor) const; | 100 bool IsDescendantOf(const BrowserAccessibility* ancestor) const; |
| 101 | 101 |
| 102 bool IsDocument() const; |
| 103 |
| 104 bool IsEditField() const; |
| 105 |
| 102 // Returns true if this object is used only for representing text. | 106 // Returns true if this object is used only for representing text. |
| 103 bool IsTextOnlyObject() const; | 107 bool IsTextOnlyObject() const; |
| 104 | 108 |
| 105 bool IsLineBreakObject() const; | 109 bool IsLineBreakObject() const; |
| 106 | 110 |
| 107 // Returns true if this is a leaf node on this platform, meaning any | 111 // Returns true if this is a leaf node on this platform, meaning any |
| 108 // children should not be exposed to this platform's native accessibility | 112 // children should not be exposed to this platform's native accessibility |
| 109 // layer. Each platform subclass should implement this itself. | 113 // layer. Each platform subclass should implement this itself. |
| 110 // The definition of a leaf may vary depending on the platform, | 114 // The definition of a leaf may vary depending on the platform, |
| 111 // but a leaf node should never have children that are focusable or | 115 // but a leaf node should never have children that are focusable or |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 // special character in the place of every embedded object instead of its | 414 // special character in the place of every embedded object instead of its |
| 411 // text, depending on the platform. | 415 // text, depending on the platform. |
| 412 base::string16 GetInnerText() const; | 416 base::string16 GetInnerText() const; |
| 413 | 417 |
| 414 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); | 418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); |
| 415 }; | 419 }; |
| 416 | 420 |
| 417 } // namespace content | 421 } // namespace content |
| 418 | 422 |
| 419 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ | 423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ |
| OLD | NEW |