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

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

Issue 2833843005: Handling of different types of empty alt (Closed)
Patch Set: One more try to do Linux the right way 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) 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 virtual void AddObjectVectorAttribute(AXObjectVectorAttribute, 355 virtual void AddObjectVectorAttribute(AXObjectVectorAttribute,
356 HeapVector<Member<AXObject>>&) = 0; 356 HeapVector<Member<AXObject>>&) = 0;
357 }; 357 };
358 358
359 // The source of the accessible name of an element. This is needed 359 // The source of the accessible name of an element. This is needed
360 // because on some platforms this determines how the accessible name 360 // because on some platforms this determines how the accessible name
361 // is exposed. 361 // is exposed.
362 enum AXNameFrom { 362 enum AXNameFrom {
363 kAXNameFromUninitialized = -1, 363 kAXNameFromUninitialized = -1,
364 kAXNameFromAttribute = 0, 364 kAXNameFromAttribute = 0,
365 kAXNameFromExplicitlyEmptyAttribute,
dmazzoni 2017/05/01 17:49:23 Sort
aleventhal 2017/05/17 17:45:47 I changed enum names to AttributeExplicitly empty,
aleventhal 2017/05/17 17:45:47 Done.
365 kAXNameFromCaption, 366 kAXNameFromCaption,
366 kAXNameFromContents, 367 kAXNameFromContents,
367 kAXNameFromPlaceholder, 368 kAXNameFromPlaceholder,
368 kAXNameFromRelatedElement, 369 kAXNameFromRelatedElement,
369 kAXNameFromValue, 370 kAXNameFromValue,
370 kAXNameFromTitle, 371 kAXNameFromTitle,
371 }; 372 };
372 373
373 // The potential native HTML-based text (name, description or placeholder) 374 // The potential native HTML-based text (name, description or placeholder)
374 // sources for an element. See 375 // sources for an element. See
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 static unsigned number_of_live_ax_objects_; 1128 static unsigned number_of_live_ax_objects_;
1128 }; 1129 };
1129 1130
1130 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1131 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1131 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ 1132 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \
1132 object.predicate) 1133 object.predicate)
1133 1134
1134 } // namespace blink 1135 } // namespace blink
1135 1136
1136 #endif // AXObject_h 1137 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698