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_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 // If the bool attribute |attribute| is present, add its value as an | 786 // If the bool attribute |attribute| is present, add its value as an |
787 // IAccessible2 attribute with the name |ia2_attr|. | 787 // IAccessible2 attribute with the name |ia2_attr|. |
788 void BoolAttributeToIA2( | 788 void BoolAttributeToIA2( |
789 WebAccessibility::BoolAttribute attribute, const char* ia2_attr); | 789 WebAccessibility::BoolAttribute attribute, const char* ia2_attr); |
790 | 790 |
791 // If the int attribute |attribute| is present, add its value as an | 791 // If the int attribute |attribute| is present, add its value as an |
792 // IAccessible2 attribute with the name |ia2_attr|. | 792 // IAccessible2 attribute with the name |ia2_attr|. |
793 void IntAttributeToIA2( | 793 void IntAttributeToIA2( |
794 WebAccessibility::IntAttribute attribute, const char* ia2_attr); | 794 WebAccessibility::IntAttribute attribute, const char* ia2_attr); |
795 | 795 |
796 // Escape a string like it would be escaped for a URL or HTML form. | |
797 string16 Escape(const string16& str); | |
798 | |
799 // Get the text of this node for the purposes of IAccessibleText - it may | 796 // Get the text of this node for the purposes of IAccessibleText - it may |
800 // be the name, it may be the value, etc. depending on the role. | 797 // be the name, it may be the value, etc. depending on the role. |
801 const string16& TextForIAccessibleText(); | 798 const string16& TextForIAccessibleText(); |
802 | 799 |
803 // If offset is a member of IA2TextSpecialOffsets this function updates the | 800 // If offset is a member of IA2TextSpecialOffsets this function updates the |
804 // value of offset and returns, otherwise offset remains unchanged. | 801 // value of offset and returns, otherwise offset remains unchanged. |
805 void HandleSpecialTextOffset(const string16& text, LONG* offset); | 802 void HandleSpecialTextOffset(const string16& text, LONG* offset); |
806 | 803 |
807 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. | 804 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. |
808 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); | 805 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 std::vector<int32> hyperlinks_; | 857 std::vector<int32> hyperlinks_; |
861 | 858 |
862 // Give BrowserAccessibility::Create access to our constructor. | 859 // Give BrowserAccessibility::Create access to our constructor. |
863 friend class BrowserAccessibility; | 860 friend class BrowserAccessibility; |
864 friend class BrowserAccessibilityRelation; | 861 friend class BrowserAccessibilityRelation; |
865 | 862 |
866 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); | 863 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); |
867 }; | 864 }; |
868 | 865 |
869 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ | 866 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ |
OLD | NEW |