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

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

Issue 2881723002: Fix TalkBack feedback for password fields in Android O (Closed)
Patch Set: Address feedback 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 bool IsNativeTextControl() const; 376 bool IsNativeTextControl() const;
377 bool IsSimpleTextControl() const; 377 bool IsSimpleTextControl() const;
378 // Indicates if this object is at the root of a rich edit text control. 378 // Indicates if this object is at the root of a rich edit text control.
379 bool IsRichTextControl() const; 379 bool IsRichTextControl() const;
380 380
381 // Return true if the accessible name was explicitly set to "" by the author 381 // Return true if the accessible name was explicitly set to "" by the author
382 bool HasExplicitlyEmptyName() const; 382 bool HasExplicitlyEmptyName() const;
383 383
384 // If an object is focusable but has no accessible name, use this 384 // If an object is focusable but has no accessible name, use this
385 // to compute a name from its descendants. 385 // to compute a name from its descendants.
386 std::string ComputeAccessibleNameFromDescendants(); 386 std::string ComputeAccessibleNameFromDescendants() const;
387 387
388 // Creates a text position rooted at this object. 388 // Creates a text position rooted at this object.
389 AXPlatformPosition::AXPositionInstance CreatePositionAt( 389 AXPlatformPosition::AXPositionInstance CreatePositionAt(
390 int offset, 390 int offset,
391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; 391 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const;
392 392
393 // Gets the text offsets where new lines start. 393 // Gets the text offsets where new lines start.
394 std::vector<int> GetLineStartOffsets() const; 394 std::vector<int> GetLineStartOffsets() const;
395 395
396 // AXPlatformNodeDelegate. 396 // AXPlatformNodeDelegate.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // bounds, but "virtual" elements in the accessibility tree that don't 439 // bounds, but "virtual" elements in the accessibility tree that don't
440 // correspond to a layed-out element sometimes don't have bounds. 440 // correspond to a layed-out element sometimes don't have bounds.
441 void FixEmptyBounds(gfx::RectF* bounds) const; 441 void FixEmptyBounds(gfx::RectF* bounds) const;
442 442
443 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 443 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
444 }; 444 };
445 445
446 } // namespace content 446 } // namespace content
447 447
448 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 448 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698