OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... | |
41 bool IsHierarchical() const; | 41 bool IsHierarchical() const; |
42 bool IsLink() const; | 42 bool IsLink() const; |
43 bool IsMultiLine() const; | 43 bool IsMultiLine() const; |
44 bool IsPassword() const; | 44 bool IsPassword() const; |
45 bool IsRangeType() const; | 45 bool IsRangeType() const; |
46 bool IsScrollable() const; | 46 bool IsScrollable() const; |
47 bool IsSelected() const; | 47 bool IsSelected() const; |
48 bool IsSlider() const; | 48 bool IsSlider() const; |
49 bool IsVisibleToUser() const; | 49 bool IsVisibleToUser() const; |
50 | 50 |
51 // This returns true for all nodes that we should navigate to. | |
52 // Nodes that have a generic role, no accessible name, and aren't | |
53 // focusable or clickable aren't interesting. | |
54 bool IsInterestingOnAndroid() const; | |
55 | |
56 // If this node isn't interesting, recursively checks all of the | |
aboxhall
2016/10/18 22:17:28
This comment is missing a critical point, especial
dmazzoni
2016/10/19 23:00:45
Ah, good point.
Renamed and reworded, take a look
| |
57 // platform children of this node, and if just a single one is | |
58 // interesting, returns that one. | |
59 const BrowserAccessibilityAndroid* GetSoleInterestingDescendant() const; | |
60 | |
51 bool CanOpenPopup() const; | 61 bool CanOpenPopup() const; |
52 | 62 |
53 bool HasFocusableChild() const; | 63 bool HasFocusableChild() const; |
54 bool HasNonEmptyValue() const; | 64 bool HasNonEmptyValue() const; |
55 | 65 |
56 const char* GetClassName() const; | 66 const char* GetClassName() const; |
57 base::string16 GetText() const override; | 67 base::string16 GetText() const override; |
58 | 68 |
59 base::string16 GetRoleDescription() const; | 69 base::string16 GetRoleDescription() const; |
60 | 70 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 bool first_time_; | 155 bool first_time_; |
146 base::string16 old_value_; | 156 base::string16 old_value_; |
147 base::string16 new_value_; | 157 base::string16 new_value_; |
148 | 158 |
149 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); | 159 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); |
150 }; | 160 }; |
151 | 161 |
152 } // namespace content | 162 } // namespace content |
153 | 163 |
154 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ | 164 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ |
OLD | NEW |