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

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

Issue 813473004: Introducing new API placeHolder() to expose placeholder attribute on MAC (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporating comments Created 6 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
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 virtual String actionVerb() const; 439 virtual String actionVerb() const;
440 virtual AccessibilityButtonState checkboxOrRadioValue() const; 440 virtual AccessibilityButtonState checkboxOrRadioValue() const;
441 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; } 441 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; }
442 virtual InvalidState invalidState() const { return InvalidStateUndefined; } 442 virtual InvalidState invalidState() const { return InvalidStateUndefined; }
443 // Only used when invalidState() returns InvalidStateOther. 443 // Only used when invalidState() returns InvalidStateOther.
444 virtual String ariaInvalidValue() const { return String(); } 444 virtual String ariaInvalidValue() const { return String(); }
445 virtual String valueDescription() const { return String(); } 445 virtual String valueDescription() const { return String(); }
446 virtual float valueForRange() const { return 0.0f; } 446 virtual float valueForRange() const { return 0.0f; }
447 virtual float maxValueForRange() const { return 0.0f; } 447 virtual float maxValueForRange() const { return 0.0f; }
448 virtual float minValueForRange() const { return 0.0f; } 448 virtual float minValueForRange() const { return 0.0f; }
449 virtual String placeholder() const { return String(); }
449 virtual String stringValue() const { return String(); } 450 virtual String stringValue() const { return String(); }
450 virtual const AtomicString& textInputType() const { return nullAtom; } 451 virtual const AtomicString& textInputType() const { return nullAtom; }
451 452
452 // ARIA attributes. 453 // ARIA attributes.
453 virtual AXObject* activeDescendant() const { return 0; } 454 virtual AXObject* activeDescendant() const { return 0; }
454 virtual String ariaAutoComplete() const { return String(); } 455 virtual String ariaAutoComplete() const { return String(); }
455 virtual String ariaDescribedByAttribute() const { return String(); } 456 virtual String ariaDescribedByAttribute() const { return String(); }
456 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { } 457 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { }
457 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { } 458 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { }
458 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb y) const { }; 459 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb y) const { };
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 // functions called here may only search up the tree (ancestors), not down. 631 // functions called here may only search up the tree (ancestors), not down.
631 void updateCachedAttributeValuesIfNeeded() const; 632 void updateCachedAttributeValuesIfNeeded() const;
632 }; 633 };
633 634
634 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 635 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
635 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 636 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
636 637
637 } // namespace blink 638 } // namespace blink
638 639
639 #endif // AXObject_h 640 #endif // AXObject_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698