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

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

Issue 2653063002: Add 4 ARIA 1.1 attributes using new sparse attribute interface. (Closed)
Patch Set: Rebase Created 3 years, 10 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) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 }; 321 };
322 322
323 enum TextUnderElementMode { 323 enum TextUnderElementMode {
324 TextUnderElementAll, 324 TextUnderElementAll,
325 TextUnderElementAny // If the text is unimportant, just whether or not it's 325 TextUnderElementAny // If the text is unimportant, just whether or not it's
326 // present 326 // present
327 }; 327 };
328 328
329 enum class AXBoolAttribute {}; 329 enum class AXBoolAttribute {};
330 330
331 enum class AXStringAttribute {}; 331 enum class AXStringAttribute {
332 AriaKeyShortcuts,
333 AriaRoleDescription,
334 };
332 335
333 enum class AXObjectAttribute { 336 enum class AXObjectAttribute {
334 AriaActiveDescendant, 337 AriaActiveDescendant,
338 AriaErrorMessage,
335 }; 339 };
336 340
337 enum class AXObjectVectorAttribute { 341 enum class AXObjectVectorAttribute {
338 AriaControls, 342 AriaControls,
343 AriaDetails,
339 AriaFlowTo, 344 AriaFlowTo,
340 }; 345 };
341 346
342 class AXSparseAttributeClient { 347 class AXSparseAttributeClient {
343 public: 348 public:
344 virtual void addBoolAttribute(AXBoolAttribute, bool) = 0; 349 virtual void addBoolAttribute(AXBoolAttribute, bool) = 0;
345 virtual void addStringAttribute(AXStringAttribute, const String&) = 0; 350 virtual void addStringAttribute(AXStringAttribute, const String&) = 0;
346 virtual void addObjectAttribute(AXObjectAttribute, AXObject&) = 0; 351 virtual void addObjectAttribute(AXObjectAttribute, AXObject&) = 0;
347 virtual void addObjectVectorAttribute(AXObjectVectorAttribute, 352 virtual void addObjectVectorAttribute(AXObjectVectorAttribute,
348 HeapVector<Member<AXObject>>&) = 0; 353 HeapVector<Member<AXObject>>&) = 0;
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 static unsigned s_numberOfLiveAXObjects; 1105 static unsigned s_numberOfLiveAXObjects;
1101 }; 1106 };
1102 1107
1103 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1108 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1104 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ 1109 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \
1105 object.predicate) 1110 object.predicate)
1106 1111
1107 } // namespace blink 1112 } // namespace blink
1108 1113
1109 #endif // AXObject_h 1114 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698