Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_COM_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <oleacc.h> | 10 #include <oleacc.h> |
| (...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 805 const char* ia2_attr); | 805 const char* ia2_attr); |
| 806 | 806 |
| 807 // If the bool attribute |attribute| is present, add its value as an | 807 // If the bool attribute |attribute| is present, add its value as an |
| 808 // IAccessible2 attribute with the name |ia2_attr|. | 808 // IAccessible2 attribute with the name |ia2_attr|. |
| 809 void BoolAttributeToIA2(ui::AXBoolAttribute attribute, const char* ia2_attr); | 809 void BoolAttributeToIA2(ui::AXBoolAttribute attribute, const char* ia2_attr); |
| 810 | 810 |
| 811 // If the int attribute |attribute| is present, add its value as an | 811 // If the int attribute |attribute| is present, add its value as an |
| 812 // IAccessible2 attribute with the name |ia2_attr|. | 812 // IAccessible2 attribute with the name |ia2_attr|. |
| 813 void IntAttributeToIA2(ui::AXIntAttribute attribute, const char* ia2_attr); | 813 void IntAttributeToIA2(ui::AXIntAttribute attribute, const char* ia2_attr); |
| 814 | 814 |
| 815 bool IsDocument() const; | |
| 816 | |
| 817 // Is the root of an editable area | |
|
dougt
2017/06/23 18:27:18
Nit: Comment isn't needed.
aleventhal
2017/06/28 14:20:57
Done.
| |
| 818 bool IsRootEditable() const; | |
| 819 | |
| 820 // Is an editbox of some type | |
|
dougt
2017/06/23 18:27:18
Same.
aleventhal
2017/06/28 14:20:57
Done.
| |
| 821 bool IsEditBoxRole() const; | |
| 822 | |
| 815 // | 823 // |
| 816 // Helper methods for IA2 hyperlinks. | 824 // Helper methods for IA2 hyperlinks. |
| 817 // | 825 // |
| 818 // Hyperlink is an IA2 misnomer. It refers to objects embedded within other | 826 // Hyperlink is an IA2 misnomer. It refers to objects embedded within other |
| 819 // objects, such as a numbered list within a contenteditable div. | 827 // objects, such as a numbered list within a contenteditable div. |
| 820 // Also, in IA2, text that includes embedded objects is called hypertext. | 828 // Also, in IA2, text that includes embedded objects is called hypertext. |
| 821 | 829 |
| 822 // Returns true if the current object is an IA2 hyperlink. | 830 // Returns true if the current object is an IA2 hyperlink. |
| 823 bool IsHyperlink() const; | 831 bool IsHyperlink() const; |
| 824 // Returns the hyperlink at the given text position, or nullptr if no | 832 // Returns the hyperlink at the given text position, or nullptr if no |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 990 | 998 |
| 991 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 999 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
| 992 }; | 1000 }; |
| 993 | 1001 |
| 994 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 1002 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
| 995 BrowserAccessibility* obj); | 1003 BrowserAccessibility* obj); |
| 996 | 1004 |
| 997 } // namespace content | 1005 } // namespace content |
| 998 | 1006 |
| 999 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 1007 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| OLD | NEW |