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

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

Issue 2692173003: Implemented SetSelection for the Web content on Windows. (Closed)
Patch Set: Fixed another compilation error on Windows. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index 78047df24c1fcc544e089865405d7c1d62cdb592..557bfa55a5f423b857236f6b6ae66a1c294d0d56 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -15,10 +15,12 @@
#include "base/strings/string16.h"
#include "base/strings/string_split.h"
#include "build/build_config.h"
+#include "content/browser/accessibility/ax_platform_position.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/web/WebAXEnums.h"
#include "ui/accessibility/ax_node.h"
#include "ui/accessibility/ax_node_data.h"
+#include "ui/accessibility/ax_range.h"
#include "ui/accessibility/ax_text_utils.h"
// Set PLATFORM_HAS_NATIVE_ACCESSIBILITY_IMPL if this platform has
@@ -353,10 +355,19 @@ class CONTENT_EXPORT BrowserAccessibility {
// to compute a name from its descendants.
std::string ComputeAccessibleNameFromDescendants();
+ // Creates a position rooted at this object.
+ // This is a text position on all platforms except IA2 and ATK, where tree
+ // positions are created for non-text objects representing hypertext offsets.
+ virtual AXPlatformPosition::AXPositionInstance CreatePositionAt(
+ int offset) const;
+
// Gets the text offsets where new lines start.
std::vector<int> GetLineStartOffsets() const;
protected:
+ using AXPlatformPositionInstance = AXPlatformPosition::AXPositionInstance;
+ using AXPlatformRange = ui::AXRange<AXPlatformPositionInstance::element_type>;
+
BrowserAccessibility();
// The manager of this tree of accessibility objects.
« 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