Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(235)

Side by Side Diff: content/browser/accessibility/browser_accessibility_android.h

Issue 2120523002: The children of non-editable combo boxes, search boxes and text fields should not be hidden (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Windows browser test. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void GetWordBoundaries(std::vector<int32_t>* word_starts, 116 void GetWordBoundaries(std::vector<int32_t>* word_starts,
117 std::vector<int32_t>* word_ends, 117 std::vector<int32_t>* word_ends,
118 int offset); 118 int offset);
119 119
120 private: 120 private:
121 // This gives BrowserAccessibility::Create access to the class constructor. 121 // This gives BrowserAccessibility::Create access to the class constructor.
122 friend class BrowserAccessibility; 122 friend class BrowserAccessibility;
123 123
124 BrowserAccessibilityAndroid(); 124 BrowserAccessibilityAndroid();
125 125
126 bool HasOnlyStaticTextChildren() const; 126 bool HasOnlyTextChildren() const;
127 bool HasOnlyTextAndImageChildren() const; 127 bool HasOnlyTextAndImageChildren() const;
128 bool IsIframe() const; 128 bool IsIframe() const;
129 129
130 void NotifyLiveRegionUpdate(base::string16& aria_live); 130 void NotifyLiveRegionUpdate(base::string16& aria_live);
131 131
132 int CountChildrenWithRole(ui::AXRole role) const; 132 int CountChildrenWithRole(ui::AXRole role) const;
133 133
134 static size_t CommonPrefixLength(const base::string16 a, 134 static size_t CommonPrefixLength(const base::string16 a,
135 const base::string16 b); 135 const base::string16 b);
136 static size_t CommonSuffixLength(const base::string16 a, 136 static size_t CommonSuffixLength(const base::string16 a,
137 const base::string16 b); 137 const base::string16 b);
138 static size_t CommonEndLengths(const base::string16 a, 138 static size_t CommonEndLengths(const base::string16 a,
139 const base::string16 b); 139 const base::string16 b);
140 140
141 base::string16 cached_text_; 141 base::string16 cached_text_;
142 bool first_time_; 142 bool first_time_;
143 base::string16 old_value_; 143 base::string16 old_value_;
144 base::string16 new_value_; 144 base::string16 new_value_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid); 146 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityAndroid);
147 }; 147 };
148 148
149 } // namespace content 149 } // namespace content
150 150
151 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_ 151 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | content/browser/accessibility/browser_accessibility_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698