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

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

Issue 1547643002: ARIA 1.1: implementation for aria-col-* and aria-row-*. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds MODULES_EXPORT Created 5 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // aria-expanded (expandable) 281 // aria-expanded (expandable)
282 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state 282 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state
283 // aria-checked (checkable) -- supports 4th "mixed state" 283 // aria-checked (checkable) -- supports 4th "mixed state"
284 bool GetAriaTristate(const char* attr_name, 284 bool GetAriaTristate(const char* attr_name,
285 bool* is_defined, 285 bool* is_defined,
286 bool* is_mixed) const; 286 bool* is_mixed) const;
287 287
288 // Returns true if the bit corresponding to the given state enum is 1. 288 // Returns true if the bit corresponding to the given state enum is 1.
289 bool HasState(ui::AXState state_enum) const; 289 bool HasState(ui::AXState state_enum) const;
290 290
291 // Returns true if this node is an cell or an table header. 291 // Returns true if this node is a cell or a table header.
292 bool IsCellOrTableHeaderRole() const; 292 bool IsCellOrTableHeaderRole() const;
293 293
294 // Returns true if this node is a table, a grid or a treegrid.
295 bool IsTableOrGridOrTreeGridRole() const;
296
294 // Returns true if the caret is active on this object. 297 // Returns true if the caret is active on this object.
295 bool HasCaret() const; 298 bool HasCaret() const;
296 299
297 // Returns true if this node is an editable text field of any kind. 300 // Returns true if this node is an editable text field of any kind.
298 bool IsEditableText() const; 301 bool IsEditableText() const;
299 302
300 // True if this is a web area, and its grandparent is a presentational iframe. 303 // True if this is a web area, and its grandparent is a presentational iframe.
301 bool IsWebAreaForPresentationalIframe() const; 304 bool IsWebAreaForPresentationalIframe() const;
302 305
303 bool IsControl() const; 306 bool IsControl() const;
(...skipping 28 matching lines...) Expand all
332 // its nearest scrollable ancestor) to local bounds (which are relative 335 // its nearest scrollable ancestor) to local bounds (which are relative
333 // to the top of the web accessibility tree). 336 // to the top of the web accessibility tree).
334 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const; 337 gfx::Rect ElementBoundsToLocalBounds(gfx::Rect bounds) const;
335 338
336 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 339 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
337 }; 340 };
338 341
339 } // namespace content 342 } // namespace content
340 343
341 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 344 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698