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

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

Issue 1872013002: Fix Android accessibility for editable text fields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test expectation Created 4 years, 8 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // top-left corner of the overall web area. Only valid when the 146 // top-left corner of the overall web area. Only valid when the
147 // role is WebAXRoleStaticText. 147 // role is WebAXRoleStaticText.
148 gfx::Rect GetLocalBoundsForRange(int start, int len) const; 148 gfx::Rect GetLocalBoundsForRange(int start, int len) const;
149 149
150 // Same as GetLocalBoundsForRange, in screen coordinates. Only valid when 150 // Same as GetLocalBoundsForRange, in screen coordinates. Only valid when
151 // the role is WebAXRoleStaticText. 151 // the role is WebAXRoleStaticText.
152 gfx::Rect GetGlobalBoundsForRange(int start, int len) const; 152 gfx::Rect GetGlobalBoundsForRange(int start, int len) const;
153 153
154 // This is to handle the cases such as ARIA textbox, where the value should 154 // This is to handle the cases such as ARIA textbox, where the value should
155 // be calculated from the object's inner text. 155 // be calculated from the object's inner text.
156 base::string16 GetValue() const; 156 virtual base::string16 GetValue() const;
157 157
158 // Searches in the given text and from the given offset until the start of 158 // Searches in the given text and from the given offset until the start of
159 // the next or previous word is found and returns its position. 159 // the next or previous word is found and returns its position.
160 // In case there is no word boundary before or after the given offset, it 160 // In case there is no word boundary before or after the given offset, it
161 // returns one past the last character, i.e. the text's length. 161 // returns one past the last character, i.e. the text's length.
162 // If the given offset is already at the start of a word, returns the start 162 // If the given offset is already at the start of a word, returns the start
163 // of the next word if the search is forwards and the given offset if it is 163 // of the next word if the search is forwards and the given offset if it is
164 // backwards. 164 // backwards.
165 // If the start offset is equal to -1 and the search is in the forwards 165 // If the start offset is equal to -1 and the search is in the forwards
166 // direction, returns the start boundary of the first word. 166 // direction, returns the start boundary of the first word.
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 // its nearest scrollable ancestor) to local bounds (which are relative 356 // its nearest scrollable ancestor) to local bounds (which are relative
357 // to the top of the web accessibility tree). 357 // to the top of the web accessibility tree).
358 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; 358 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const;
359 359
360 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 360 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
361 }; 361 };
362 362
363 } // namespace content 363 } // namespace content
364 364
365 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 365 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698