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

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

Issue 2934953004: De-templatize ui::AXPosition
Patch Set: rebase Created 3 years, 6 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) 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 bool IsRichTextControl() const; 364 bool IsRichTextControl() const;
365 365
366 // Return true if the accessible name was explicitly set to "" by the author 366 // Return true if the accessible name was explicitly set to "" by the author
367 bool HasExplicitlyEmptyName() const; 367 bool HasExplicitlyEmptyName() const;
368 368
369 // If an object is focusable but has no accessible name, use this 369 // If an object is focusable but has no accessible name, use this
370 // to compute a name from its descendants. 370 // to compute a name from its descendants.
371 std::string ComputeAccessibleNameFromDescendants() const; 371 std::string ComputeAccessibleNameFromDescendants() const;
372 372
373 // Creates a text position rooted at this object. 373 // Creates a text position rooted at this object.
374 AXPlatformPosition::AXPositionInstance CreatePositionAt( 374 AXPlatformPosition::ConcreteInstance CreatePositionAt(
375 int offset, 375 int offset,
376 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const; 376 ui::AXTextAffinity affinity = ui::AX_TEXT_AFFINITY_DOWNSTREAM) const;
377 377
378 // Gets the text offsets where new lines start. 378 // Gets the text offsets where new lines start.
379 std::vector<int> GetLineStartOffsets() const; 379 std::vector<int> GetLineStartOffsets() const;
380 380
381 virtual gfx::NativeViewAccessible GetNativeViewAccessible(); 381 virtual gfx::NativeViewAccessible GetNativeViewAccessible();
382 382
383 // AXPlatformNodeDelegate. 383 // AXPlatformNodeDelegate.
384 const ui::AXNodeData& GetData() const override; 384 const ui::AXNodeData& GetData() const override;
(...skipping 29 matching lines...) Expand all
414 // special character in the place of every embedded object instead of its 414 // special character in the place of every embedded object instead of its
415 // text, depending on the platform. 415 // text, depending on the platform.
416 base::string16 GetInnerText() const; 416 base::string16 GetInnerText() const;
417 417
418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
419 }; 419 };
420 420
421 } // namespace content 421 } // namespace content
422 422
423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « content/browser/accessibility/ax_platform_position.cc ('k') | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698