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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 float RangeMax() const; | 79 float RangeMax() const; |
80 float RangeCurrentValue() const; | 80 float RangeCurrentValue() const; |
81 | 81 |
82 private: | 82 private: |
83 // This gives BrowserAccessibility::Create access to the class constructor. | 83 // This gives BrowserAccessibility::Create access to the class constructor. |
84 friend class BrowserAccessibility; | 84 friend class BrowserAccessibility; |
85 | 85 |
86 BrowserAccessibilityAndroid(); | 86 BrowserAccessibilityAndroid(); |
87 | 87 |
88 bool HasOnlyStaticTextChildren() const; | 88 bool HasOnlyStaticTextChildren() const; |
| 89 bool HasOnlyTextAndImageChildren() const; |
89 bool IsIframe() const; | 90 bool IsIframe() const; |
90 | 91 |
91 void NotifyLiveRegionUpdate(base::string16& aria_live); | 92 void NotifyLiveRegionUpdate(base::string16& aria_live); |
92 | 93 |
93 int CountChildrenWithRole(ui::AXRole role) const; | 94 int CountChildrenWithRole(ui::AXRole role) const; |
94 | 95 |
95 base::string16 cached_text_; | 96 base::string16 cached_text_; |
96 bool first_time_; | 97 bool first_time_; |
97 base::string16 old_value_; | 98 base::string16 old_value_; |
98 base::string16 new_value_; | 99 base::string16 new_value_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); | 101 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace content | 104 } // namespace content |
104 | 105 |
105 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ | 106 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ |
OLD | NEW |