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

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

Issue 252253002: Implement initial support for nesting one ax tree in another. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 // Returns true if the bit corresponding to the given state enum is 1. 239 // Returns true if the bit corresponding to the given state enum is 1.
240 bool HasState(ui::AXState state_enum) const; 240 bool HasState(ui::AXState state_enum) const;
241 241
242 // Returns true if this node is an editable text field of any kind. 242 // Returns true if this node is an editable text field of any kind.
243 bool IsEditableText() const; 243 bool IsEditableText() const;
244 244
245 // Append the text from this node and its children. 245 // Append the text from this node and its children.
246 std::string GetTextRecursive() const; 246 std::string GetTextRecursive() const;
247 247
248 // For an iframe element
David Tseng 2014/05/01 18:07:54 nit: period and perhaps "if this element is an ifr
dmazzoni 2014/05/05 07:17:57 Done.
249 void SetChildFrameId(int child_frame_id);
David Tseng 2014/05/01 18:07:54 nit: perhaps ID? Also, on a higher level, child f
dmazzoni 2014/05/05 07:17:57 Id is consistent with the rest of this file; I hav
250
248 protected: 251 protected:
249 BrowserAccessibility(); 252 BrowserAccessibility();
250 253
251 // The manager of this tree of accessibility objects. 254 // The manager of this tree of accessibility objects.
252 BrowserAccessibilityManager* manager_; 255 BrowserAccessibilityManager* manager_;
253 256
254 // The underlying node. 257 // The underlying node.
255 ui::AXNode* node_; 258 ui::AXNode* node_;
256 259
257 private: 260 private:
258 // Return the sum of the lengths of all static text descendants, 261 // Return the sum of the lengths of all static text descendants,
259 // including this object if it's static text. 262 // including this object if it's static text.
260 int GetStaticTextLenRecursive() const; 263 int GetStaticTextLenRecursive() const;
261 264
262 std::string name_; 265 std::string name_;
263 std::string value_; 266 std::string value_;
264 267
268 int child_frame_id_;
David Tseng 2014/05/01 18:07:54 nit: did you want these sorted?
dmazzoni 2014/05/05 07:17:57 I don't want to sort unrelated fields.
269
265 private: 270 private:
David Tseng 2014/05/01 18:07:54 nit: I think the above private: specifier suffices
dmazzoni 2014/05/05 07:17:57 Done.
266 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 271 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
267 }; 272 };
268 273
269 } // namespace content 274 } // namespace content
270 275
271 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 276 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698