| 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 "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "content/browser/accessibility/browser_accessibility.h" | 9 #include "content/browser/accessibility/browser_accessibility.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 bool IsLink() const; | 33 bool IsLink() const; |
| 34 bool IsMultiLine() const; | 34 bool IsMultiLine() const; |
| 35 bool IsPassword() const; | 35 bool IsPassword() const; |
| 36 bool IsRangeType() const; | 36 bool IsRangeType() const; |
| 37 bool IsScrollable() const; | 37 bool IsScrollable() const; |
| 38 bool IsSelected() const; | 38 bool IsSelected() const; |
| 39 bool IsVisibleToUser() const; | 39 bool IsVisibleToUser() const; |
| 40 | 40 |
| 41 bool CanOpenPopup() const; | 41 bool CanOpenPopup() const; |
| 42 | 42 |
| 43 bool HasFocusableChild() const; |
| 44 |
| 43 const char* GetClassName() const; | 45 const char* GetClassName() const; |
| 44 base::string16 GetText() const; | 46 base::string16 GetText() const; |
| 45 | 47 |
| 46 int GetItemIndex() const; | 48 int GetItemIndex() const; |
| 47 int GetItemCount() const; | 49 int GetItemCount() const; |
| 48 | 50 |
| 49 int GetScrollX() const; | 51 int GetScrollX() const; |
| 50 int GetScrollY() const; | 52 int GetScrollY() const; |
| 51 int GetMaxScrollX() const; | 53 int GetMaxScrollX() const; |
| 52 int GetMaxScrollY() const; | 54 int GetMaxScrollY() const; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 75 float RangeMin() const; | 77 float RangeMin() const; |
| 76 float RangeMax() const; | 78 float RangeMax() const; |
| 77 float RangeCurrentValue() const; | 79 float RangeCurrentValue() const; |
| 78 | 80 |
| 79 private: | 81 private: |
| 80 // This gives BrowserAccessibility::Create access to the class constructor. | 82 // This gives BrowserAccessibility::Create access to the class constructor. |
| 81 friend class BrowserAccessibility; | 83 friend class BrowserAccessibility; |
| 82 | 84 |
| 83 BrowserAccessibilityAndroid(); | 85 BrowserAccessibilityAndroid(); |
| 84 | 86 |
| 85 bool HasFocusableChild() const; | |
| 86 bool HasOnlyStaticTextChildren() const; | 87 bool HasOnlyStaticTextChildren() const; |
| 87 bool IsIframe() const; | 88 bool IsIframe() const; |
| 88 | 89 |
| 89 void NotifyLiveRegionUpdate(base::string16& aria_live); | 90 void NotifyLiveRegionUpdate(base::string16& aria_live); |
| 90 | 91 |
| 91 int CountChildrenWithRole(ui::AXRole role) const; | 92 int CountChildrenWithRole(ui::AXRole role) const; |
| 92 | 93 |
| 93 base::string16 cached_text_; | 94 base::string16 cached_text_; |
| 94 bool first_time_; | 95 bool first_time_; |
| 95 base::string16 old_value_; | 96 base::string16 old_value_; |
| 96 base::string16 new_value_; | 97 base::string16 new_value_; |
| 97 | 98 |
| 98 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); | 99 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace content | 102 } // namespace content |
| 102 | 103 |
| 103 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ | 104 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ |
| OLD | NEW |