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

Unified Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 8770021: Initial implementation of IAccessible2 scrollTo and setTextSelection and (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_win.h
===================================================================
--- content/browser/accessibility/browser_accessibility_win.h (revision 112482)
+++ content/browser/accessibility/browser_accessibility_win.h (working copy)
@@ -194,17 +194,15 @@
IAccessibleRelation** relations,
LONG* n_relations);
- // IAccessible2 methods not implemented.
- CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) {
- return E_NOTIMPL;
- }
- CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type) {
- return E_NOTIMPL;
- }
+ CONTENT_EXPORT STDMETHODIMP scrollTo(enum IA2ScrollType scroll_type);
+
CONTENT_EXPORT STDMETHODIMP scrollToPoint(
enum IA2CoordinateType coordinate_type,
LONG x,
- LONG y) {
+ LONG y);
+
+ // IAccessible2 methods not implemented.
+ CONTENT_EXPORT STDMETHODIMP get_extendedRole(BSTR* extended_role) {
return E_NOTIMPL;
}
CONTENT_EXPORT STDMETHODIMP get_groupPosition(LONG* group_level,
@@ -446,10 +444,28 @@
enum IA2CoordinateType coord_type,
LONG* offset);
+ CONTENT_EXPORT STDMETHODIMP scrollSubstringTo(
+ LONG start_index,
+ LONG end_index,
+ enum IA2ScrollType scroll_type);
+
+ CONTENT_EXPORT STDMETHODIMP scrollSubstringToPoint(
+ LONG start_index,
+ LONG end_index,
+ enum IA2CoordinateType coordinate_type,
+ LONG x, LONG y);
+
+ CONTENT_EXPORT STDMETHODIMP addSelection(LONG start_offset, LONG end_offset);
+
+ CONTENT_EXPORT STDMETHODIMP removeSelection(LONG selection_index);
+
+ CONTENT_EXPORT STDMETHODIMP setCaretOffset(LONG offset);
+
+ CONTENT_EXPORT STDMETHODIMP setSelection(LONG selection_index,
+ LONG start_offset,
+ LONG end_offset);
+
// IAccessibleText methods not implemented.
- CONTENT_EXPORT STDMETHODIMP addSelection(LONG start_offset, LONG end_offset) {
- return E_NOTIMPL;
- }
CONTENT_EXPORT STDMETHODIMP get_attributes(LONG offset, LONG* start_offset,
LONG* end_offset,
BSTR* text_attributes) {
@@ -461,28 +477,6 @@
LONG* width, LONG* height) {
return E_NOTIMPL;
}
- CONTENT_EXPORT STDMETHODIMP removeSelection(LONG selection_index) {
- return E_NOTIMPL;
- }
- CONTENT_EXPORT STDMETHODIMP setCaretOffset(LONG offset) {
- return E_NOTIMPL;
- }
- CONTENT_EXPORT STDMETHODIMP setSelection(LONG selection_index,
- LONG start_offset,
- LONG end_offset) {
- return E_NOTIMPL;
- }
- CONTENT_EXPORT STDMETHODIMP scrollSubstringTo(LONG start_index,
- LONG end_index,
- enum IA2ScrollType scroll_type) {
- return E_NOTIMPL;
- }
- CONTENT_EXPORT STDMETHODIMP scrollSubstringToPoint(LONG start_index,
- LONG end_index,
- enum IA2CoordinateType coordinate_type,
- LONG x, LONG y) {
- return E_NOTIMPL;
- }
//
// IAccessibleValue methods.

Powered by Google App Engine
This is Rietveld 408576698