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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXARIAGrid.h

Issue 2886243002: Multiselectable touchups for ARIA widgets (Closed)
Patch Set: Address review Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 AccessibilityRole RoleValue() const final { 51 AccessibilityRole RoleValue() const final {
52 return AXLayoutObject::RoleValue(); 52 return AXLayoutObject::RoleValue();
53 } // Use ARIA role 53 } // Use ARIA role
54 54
55 void AddChildren() override; 55 void AddChildren() override;
56 56
57 private: 57 private:
58 // ARIA treegrids and grids support selected rows. 58 // ARIA treegrids and grids support selected rows.
59 bool SupportsSelectedRows() override { return true; } 59 bool SupportsSelectedRows() override { return true; }
60 bool IsMultiSelectable() const override { return true; }
61 bool IsTableExposableThroughAccessibility() const override { return true; } 60 bool IsTableExposableThroughAccessibility() const override { return true; }
62 61
63 bool AddTableRowChild(AXObjectImpl*, 62 bool AddTableRowChild(AXObjectImpl*,
64 HeapHashSet<Member<AXObjectImpl>>& appended_rows, 63 HeapHashSet<Member<AXObjectImpl>>& appended_rows,
65 unsigned& column_count); 64 unsigned& column_count);
66 }; 65 };
67 66
68 } // namespace blink 67 } // namespace blink
69 68
70 #endif // AXARIAGrid_h 69 #endif // AXARIAGrid_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698