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

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

Issue 755173004: Support presentational iframes and make use of them in the uber frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address test failures Created 6 years 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 (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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 bool GetAriaTristate(const char* attr_name, 237 bool GetAriaTristate(const char* attr_name,
238 bool* is_defined, 238 bool* is_defined,
239 bool* is_mixed) const; 239 bool* is_mixed) const;
240 240
241 // Returns true if the bit corresponding to the given state enum is 1. 241 // Returns true if the bit corresponding to the given state enum is 1.
242 bool HasState(ui::AXState state_enum) const; 242 bool HasState(ui::AXState state_enum) const;
243 243
244 // Returns true if this node is an editable text field of any kind. 244 // Returns true if this node is an editable text field of any kind.
245 bool IsEditableText() const; 245 bool IsEditableText() const;
246 246
247 // True if this is a web area, and its grandparent is a presentational iframe.
248 bool IsWebAreaForPresentationalIframe() const;
249
247 // Append the text from this node and its children. 250 // Append the text from this node and its children.
248 std::string GetTextRecursive() const; 251 std::string GetTextRecursive() const;
249 252
250 protected: 253 protected:
251 BrowserAccessibility(); 254 BrowserAccessibility();
252 255
253 // The manager of this tree of accessibility objects. 256 // The manager of this tree of accessibility objects.
254 BrowserAccessibilityManager* manager_; 257 BrowserAccessibilityManager* manager_;
255 258
256 // The underlying node. 259 // The underlying node.
257 ui::AXNode* node_; 260 ui::AXNode* node_;
258 261
259 private: 262 private:
260 // Return the sum of the lengths of all static text descendants, 263 // Return the sum of the lengths of all static text descendants,
261 // including this object if it's static text. 264 // including this object if it's static text.
262 int GetStaticTextLenRecursive() const; 265 int GetStaticTextLenRecursive() const;
263 266
264 std::string name_; 267 std::string name_;
265 std::string value_; 268 std::string value_;
266 269
267 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 270 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
268 }; 271 };
269 272
270 } // namespace content 273 } // namespace content
271 274
272 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 275 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698