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

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

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try Created 3 years, 6 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 ui::AXStringAttribute attribute) const; 276 ui::AXStringAttribute attribute) const;
277 bool GetString16Attribute(ui::AXStringAttribute attribute, 277 bool GetString16Attribute(ui::AXStringAttribute attribute,
278 base::string16* value) const; 278 base::string16* value) const;
279 279
280 bool HasIntListAttribute(ui::AXIntListAttribute attribute) const; 280 bool HasIntListAttribute(ui::AXIntListAttribute attribute) const;
281 const std::vector<int32_t>& GetIntListAttribute( 281 const std::vector<int32_t>& GetIntListAttribute(
282 ui::AXIntListAttribute attribute) const; 282 ui::AXIntListAttribute attribute) const;
283 bool GetIntListAttribute(ui::AXIntListAttribute attribute, 283 bool GetIntListAttribute(ui::AXIntListAttribute attribute,
284 std::vector<int32_t>* value) const; 284 std::vector<int32_t>* value) const;
285 285
286 // Retrieve the value of a html attribute from the attribute map and
287 // returns true if found.
288 bool GetHtmlAttribute(const char* attr, base::string16* value) const;
289 bool GetHtmlAttribute(const char* attr, std::string* value) const;
290
291 // Utility method to handle special cases for ARIA booleans, tristates and
292 // booleans which have a "mixed" state.
293 //
294 // Warning: the term "Tristate" is used loosely by the spec and here,
295 // as some attributes support a 4th state.
296 //
297 // The following attributes are appropriate to use with this method:
298 // aria-selected (selectable)
299 // aria-grabbed (grabbable)
300 // aria-expanded (expandable)
301 // aria-pressed (toggleable/pressable) -- supports 4th "mixed" state
302 // aria-checked (checkable) -- supports 4th "mixed state"
303 bool GetAriaTristate(const char* attr_name,
304 bool* is_defined,
305 bool* is_mixed) const;
306
307 base::string16 GetFontFamily() const; 286 base::string16 GetFontFamily() const;
308 base::string16 GetLanguage() const; 287 base::string16 GetLanguage() const;
309 288
310 // Returns the table or ARIA grid if inside one. 289 // Returns the table or ARIA grid if inside one.
311 BrowserAccessibility* GetTable() const; 290 BrowserAccessibility* GetTable() const;
312 291
313 // If inside a table or ARIA grid, returns the cell found at the given index. 292 // If inside a table or ARIA grid, returns the cell found at the given index.
314 // Indices are in row major order and each cell is counted once regardless of 293 // Indices are in row major order and each cell is counted once regardless of
315 // its span. 294 // its span.
316 BrowserAccessibility* GetTableCell(int index) const; 295 BrowserAccessibility* GetTableCell(int index) const;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 // bounds, but "virtual" elements in the accessibility tree that don't 421 // bounds, but "virtual" elements in the accessibility tree that don't
443 // correspond to a layed-out element sometimes don't have bounds. 422 // correspond to a layed-out element sometimes don't have bounds.
444 void FixEmptyBounds(gfx::RectF* bounds) const; 423 void FixEmptyBounds(gfx::RectF* bounds) const;
445 424
446 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 425 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
447 }; 426 };
448 427
449 } // namespace content 428 } // namespace content
450 429
451 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 430 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698