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

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

Issue 2825803002: Expose internal treegrid role, do some cleanup for table/grid/treegrid handling (Closed)
Patch Set: Fix mac tests Created 3 years, 8 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 (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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 355
356 virtual base::string16 GetText() const; 356 virtual base::string16 GetText() const;
357 357
358 // Returns true if the bit corresponding to the given state enum is 1. 358 // Returns true if the bit corresponding to the given state enum is 1.
359 bool HasState(ui::AXState state_enum) const; 359 bool HasState(ui::AXState state_enum) const;
360 360
361 // Returns true if this node is a cell or a table header. 361 // Returns true if this node is a cell or a table header.
362 bool IsCellOrTableHeaderRole() const; 362 bool IsCellOrTableHeaderRole() const;
363 363
364 // Returns true if this node is a table, a grid or a treegrid. 364 // Returns true if this node is a table, a grid or a treegrid.
365 bool IsTableOrGridOrTreeGridRole() const; 365 bool IsTableLikeRole() const;
366 366
367 // Returns true if the caret is active on this object. 367 // Returns true if the caret is active on this object.
368 bool HasCaret() const; 368 bool HasCaret() const;
369 369
370 // True if this is a web area, and its grandparent is a presentational iframe. 370 // True if this is a web area, and its grandparent is a presentational iframe.
371 bool IsWebAreaForPresentationalIframe() const; 371 bool IsWebAreaForPresentationalIframe() const;
372 372
373 virtual bool IsClickable() const; 373 virtual bool IsClickable() const;
374 bool IsControl() const; 374 bool IsControl() const;
375 bool IsMenuRelated() const; 375 bool IsMenuRelated() const;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 // bounds, but "virtual" elements in the accessibility tree that don't 436 // bounds, but "virtual" elements in the accessibility tree that don't
437 // correspond to a layed-out element sometimes don't have bounds. 437 // correspond to a layed-out element sometimes don't have bounds.
438 void FixEmptyBounds(gfx::RectF* bounds) const; 438 void FixEmptyBounds(gfx::RectF* bounds) const;
439 439
440 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 440 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
441 }; 441 };
442 442
443 } // namespace content 443 } // namespace content
444 444
445 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 445 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698