OLD | NEW |
---|---|
(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 namespace ui { | |
9 | |
10 // A range of ax positions. | |
11 template <class AXPositionType> | |
12 struct AXRange { | |
dmazzoni
2016/10/12 20:45:41
I suggest you delete it from this change since you
| |
13 AXRange() | |
14 : anchor(AXPositionType::CreateNullPosition()), | |
15 focus(AXPositionType::CreateNullPosition()) {} | |
16 | |
17 AXRange(AXPositionType* anchor, AXPositionType* focus) | |
18 : anchor(anchor), focus(focus) {} | |
19 | |
20 virtual ~AXRange() {} | |
21 | |
22 bool IsNull() const { | |
23 return !anchor || !focus || anchor->IsNullPosition() || | |
24 focus->IsNullPosition(); | |
25 } | |
26 | |
27 AXPositionType* anchor; | |
28 AXPositionType* focus; | |
29 }; | |
30 | |
31 } // namespace ui | |
32 | |
33 #endif // UI_ACCESSIBILITY_AX_RANGE_H_ | |
OLD | NEW |