Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 1416873015: Text controls should expose their value instead of their name via IAccessibleText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added browser tests. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 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 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 // selection.) 821 // selection.)
822 void GetSelectionOffsets(int* selection_start, int* selection_end) const; 822 void GetSelectionOffsets(int* selection_start, int* selection_end) const;
823 823
824 // Append the accessible name from this node and its children. 824 // Append the accessible name from this node and its children.
825 base::string16 GetNameRecursive() const; 825 base::string16 GetNameRecursive() const;
826 826
827 // Get the value text, which might come from the floating-point 827 // Get the value text, which might come from the floating-point
828 // value for some roles. 828 // value for some roles.
829 base::string16 GetValueText(); 829 base::string16 GetValueText();
830 830
831 // Get the text of this node for the purposes of IAccessibleText - it may
832 // be the name, it may be the value, etc. depending on the role.
833 base::string16 TextForIAccessibleText() const;
834
835 bool IsSameHypertextCharacter(size_t old_char_index, size_t new_char_index); 831 bool IsSameHypertextCharacter(size_t old_char_index, size_t new_char_index);
836 void ComputeHypertextRemovedAndInserted( 832 void ComputeHypertextRemovedAndInserted(
837 int* start, int* old_len, int* new_len); 833 int* start, int* old_len, int* new_len);
838 834
839 // If offset is a member of IA2TextSpecialOffsets this function updates the 835 // If offset is a member of IA2TextSpecialOffsets this function updates the
840 // value of offset and returns, otherwise offset remains unchanged. 836 // value of offset and returns, otherwise offset remains unchanged.
841 void HandleSpecialTextOffset(const base::string16& text, LONG* offset); 837 void HandleSpecialTextOffset(const base::string16& text, LONG* offset);
842 838
843 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. 839 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType.
844 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); 840 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 // Give BrowserAccessibility::Create access to our constructor. 916 // Give BrowserAccessibility::Create access to our constructor.
921 friend class BrowserAccessibility; 917 friend class BrowserAccessibility;
922 friend class BrowserAccessibilityRelation; 918 friend class BrowserAccessibilityRelation;
923 919
924 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 920 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
925 }; 921 };
926 922
927 } // namespace content 923 } // namespace content
928 924
929 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 925 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698