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

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

Issue 2271893002: Creates AXPosition to uniquely identify a position in the accessibility tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some compilation errors on the Mac. Created 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/accessibility/ax_platform_position.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_
7
8 #include <stdint.h>
9
10 #include "content/browser/accessibility/ax_tree_id_registry.h"
11 #include "content/browser/accessibility/browser_accessibility.h"
12 #include "ui/accessibility/ax_position.h"
13
14 namespace content {
15
16 using AXTreeID = content::AXTreeIDRegistry::AXTreeID;
17
18 class AXPlatformPosition
19 : public ui::AXPosition<AXPlatformPosition, BrowserAccessibility> {
20 public:
21 AXPlatformPosition();
22 ~AXPlatformPosition() override;
23
24 protected:
25 void AnchorChild(int child_index,
26 AXTreeID* tree_id,
27 int32_t* child_id) const override;
28 int AnchorChildCount() const override;
29 int AnchorIndexInParent() const override;
30 void AnchorParent(AXTreeID* tree_id, int32_t* parent_id) const override;
31 BrowserAccessibility* GetNodeInTree(AXTreeID tree_id,
32 int32_t node_id) const override;
33 int MaxTextOffset() const override;
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_ACCESSIBILITY_AX_PLATFORM_POSITION_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/accessibility/ax_platform_position.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698