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

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

Issue 2890723003: Slider events with valuetext (Closed)
Patch Set: Fix test Created 3 years, 7 months 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) 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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 // If not found they retrieve the global selection found on the current frame. 850 // If not found they retrieve the global selection found on the current frame.
851 int GetSelectionAnchor() const; 851 int GetSelectionAnchor() const;
852 int GetSelectionFocus() const; 852 int GetSelectionFocus() const;
853 // Retrieves the selection offsets in the way required by the IA2 APIs. 853 // Retrieves the selection offsets in the way required by the IA2 APIs.
854 // selection_start and selection_end are -1 when there is no selection active 854 // selection_start and selection_end are -1 when there is no selection active
855 // on this object. 855 // on this object.
856 // The greatest of the two offsets is one past the last character of the 856 // The greatest of the two offsets is one past the last character of the
857 // selection.) 857 // selection.)
858 void GetSelectionOffsets(int* selection_start, int* selection_end) const; 858 void GetSelectionOffsets(int* selection_start, int* selection_end) const;
859 859
860 // Get the value text, which might come from the floating-point 860 // Get the range value text, which might come from aria-valuetext or
861 // value for some roles. 861 // a floating-point value. This is different from the value string
862 base::string16 GetValueText(); 862 // attribute used in input controls such as text boxes and combo boxes.
863 base::string16 GetRangeValueText();
864
865 // Return true for roles that support the value interface
866 bool IsRangeValueSupported();
863 867
864 bool IsSameHypertextCharacter(size_t old_char_index, size_t new_char_index); 868 bool IsSameHypertextCharacter(size_t old_char_index, size_t new_char_index);
865 void ComputeHypertextRemovedAndInserted(int* start, 869 void ComputeHypertextRemovedAndInserted(int* start,
866 int* old_len, 870 int* old_len,
867 int* new_len); 871 int* new_len);
868 872
869 // If offset is a member of IA2TextSpecialOffsets this function updates the 873 // If offset is a member of IA2TextSpecialOffsets this function updates the
870 // value of offset and returns, otherwise offset remains unchanged. 874 // value of offset and returns, otherwise offset remains unchanged.
871 void HandleSpecialTextOffset(LONG* offset); 875 void HandleSpecialTextOffset(LONG* offset);
872 876
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 984
981 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); 985 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin);
982 }; 986 };
983 987
984 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( 988 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin(
985 BrowserAccessibility* obj); 989 BrowserAccessibility* obj);
986 990
987 } // namespace content 991 } // namespace content
988 992
989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ 993 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698