| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 bool IsSelected() const; | 44 bool IsSelected() const; |
| 45 bool IsSlider() const; | 45 bool IsSlider() const; |
| 46 bool IsVisibleToUser() const; | 46 bool IsVisibleToUser() const; |
| 47 | 47 |
| 48 bool CanOpenPopup() const; | 48 bool CanOpenPopup() const; |
| 49 | 49 |
| 50 bool HasFocusableChild() const; | 50 bool HasFocusableChild() const; |
| 51 | 51 |
| 52 const char* GetClassName() const; | 52 const char* GetClassName() const; |
| 53 base::string16 GetText() const override; | 53 base::string16 GetText() const override; |
| 54 base::string16 GetDescription() const; |
| 54 | 55 |
| 55 base::string16 GetRoleDescription() const; | 56 base::string16 GetRoleDescription() const; |
| 56 | 57 |
| 57 int GetItemIndex() const; | 58 int GetItemIndex() const; |
| 58 int GetItemCount() const; | 59 int GetItemCount() const; |
| 59 | 60 |
| 60 bool CanScrollForward() const; | 61 bool CanScrollForward() const; |
| 61 bool CanScrollBackward() const; | 62 bool CanScrollBackward() const; |
| 62 bool CanScrollUp() const; | 63 bool CanScrollUp() const; |
| 63 bool CanScrollDown() const; | 64 bool CanScrollDown() const; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 119 |
| 119 private: | 120 private: |
| 120 // This gives BrowserAccessibility::Create access to the class constructor. | 121 // This gives BrowserAccessibility::Create access to the class constructor. |
| 121 friend class BrowserAccessibility; | 122 friend class BrowserAccessibility; |
| 122 | 123 |
| 123 BrowserAccessibilityAndroid(); | 124 BrowserAccessibilityAndroid(); |
| 124 | 125 |
| 125 bool HasOnlyStaticTextChildren() const; | 126 bool HasOnlyStaticTextChildren() const; |
| 126 bool HasOnlyTextAndImageChildren() const; | 127 bool HasOnlyTextAndImageChildren() const; |
| 127 bool IsIframe() const; | 128 bool IsIframe() const; |
| 129 bool ShouldExposeValueAsName() const; |
| 128 | 130 |
| 129 void NotifyLiveRegionUpdate(base::string16& aria_live); | 131 void NotifyLiveRegionUpdate(base::string16& aria_live); |
| 130 | 132 |
| 131 int CountChildrenWithRole(ui::AXRole role) const; | 133 int CountChildrenWithRole(ui::AXRole role) const; |
| 132 | 134 |
| 133 static size_t CommonPrefixLength(const base::string16 a, | 135 static size_t CommonPrefixLength(const base::string16 a, |
| 134 const base::string16 b); | 136 const base::string16 b); |
| 135 static size_t CommonSuffixLength(const base::string16 a, | 137 static size_t CommonSuffixLength(const base::string16 a, |
| 136 const base::string16 b); | 138 const base::string16 b); |
| 137 static size_t CommonEndLengths(const base::string16 a, | 139 static size_t CommonEndLengths(const base::string16 a, |
| 138 const base::string16 b); | 140 const base::string16 b); |
| 139 | 141 |
| 140 base::string16 cached_text_; | 142 base::string16 cached_text_; |
| 141 bool first_time_; | 143 bool first_time_; |
| 142 base::string16 old_value_; | 144 base::string16 old_value_; |
| 143 base::string16 new_value_; | 145 base::string16 new_value_; |
| 144 | 146 |
| 145 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); | 147 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace content | 150 } // namespace content |
| 149 | 151 |
| 150 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ | 152 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ |
| OLD | NEW |