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

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

Issue 2962453002: Move AX Role predicates into ax_role_properties.h. (Closed)
Patch Set: Android Created 3 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // If inside a table or ARIA grid, returns the number of physical rows that 336 // If inside a table or ARIA grid, returns the number of physical rows that
337 // this cell spans. If not a cell, returns 0. 337 // this cell spans. If not a cell, returns 0.
338 int GetTableRowSpan() const; 338 int GetTableRowSpan() const;
339 339
340 virtual base::string16 GetText() const; 340 virtual base::string16 GetText() const;
341 341
342 // Returns true if the bit corresponding to the given enum is 1. 342 // Returns true if the bit corresponding to the given enum is 1.
343 bool HasState(ui::AXState state_enum) const; 343 bool HasState(ui::AXState state_enum) const;
344 bool HasAction(ui::AXAction action_enum) const; 344 bool HasAction(ui::AXAction action_enum) const;
345 345
346 // Returns true if this node is a cell or a table header.
347 bool IsCellOrTableHeaderRole() const;
348
349 // Returns true if this node is a table, a grid or a treegrid.
350 bool IsTableLikeRole() const;
351
352 // Returns true if the caret is active on this object. 346 // Returns true if the caret is active on this object.
353 bool HasCaret() const; 347 bool HasCaret() const;
354 348
355 // True if this is a web area, and its grandparent is a presentational iframe. 349 // True if this is a web area, and its grandparent is a presentational iframe.
356 bool IsWebAreaForPresentationalIframe() const; 350 bool IsWebAreaForPresentationalIframe() const;
357 351
358 virtual bool IsClickable() const; 352 virtual bool IsClickable() const;
359 bool IsControl() const; 353 bool IsControl() const;
360 bool IsMenuRelated() const; 354 bool IsMenuRelated() const;
361 bool IsNativeTextControl() const; 355 bool IsNativeTextControl() const;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 // special character in the place of every embedded object instead of its 408 // special character in the place of every embedded object instead of its
415 // text, depending on the platform. 409 // text, depending on the platform.
416 base::string16 GetInnerText() const; 410 base::string16 GetInnerText() const;
417 411
418 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 412 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
419 }; 413 };
420 414
421 } // namespace content 415 } // namespace content
422 416
423 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 417 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698