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

Side by Side Diff: ui/accessibility/ax_range.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: Created a factory. Created 4 years, 2 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
(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 UI_ACCESSIBILITY_AX_RANGE_H_
6 #define UI_ACCESSIBILITY_AX_RANGE_H_
7
8 #include "ui/accessibility/ax_position.h"
9
10 namespace ui {
11
12 // A range of ax positions.
13 struct AX_EXPORT AXRange {
14 AXRange()
15 : anchor(AXPosition::CreateNullPosition()),
dmazzoni 2016/10/04 20:08:24 I don't see AXPosition::CreateNullPosition(), I do
16 focus(AXPosition::CreateNullPosition()) {}
17
18 AXRange(AXPosition anchor, AXPosition focus) : anchor(anchor), focus(focus) {}
19
20 virtual ~AXRange() {}
21
22 bool IsNull() const {
23 return anchor.IsNullPosition() || focus.IsNullPosition();
24 }
25
26 AXPosition anchor;
27 AXPosition focus;
28 };
29
30 } // namespace ui
31
32 #endif // UI_ACCESSIBILITY_AX_RANGE_H_
OLDNEW
« content/browser/accessibility/ax_platform_position.h ('K') | « ui/accessibility/ax_position.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698