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

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

Issue 596393004: Add AX attribute for input type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move TextInputType to AXNodeObject Created 6 years, 2 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 // Properties of interactive elements. 416 // Properties of interactive elements.
417 virtual String actionVerb() const; 417 virtual String actionVerb() const;
418 virtual AccessibilityButtonState checkboxOrRadioValue() const; 418 virtual AccessibilityButtonState checkboxOrRadioValue() const;
419 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; } 419 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; }
420 virtual String valueDescription() const { return String(); } 420 virtual String valueDescription() const { return String(); }
421 virtual float valueForRange() const { return 0.0f; } 421 virtual float valueForRange() const { return 0.0f; }
422 virtual float maxValueForRange() const { return 0.0f; } 422 virtual float maxValueForRange() const { return 0.0f; }
423 virtual float minValueForRange() const { return 0.0f; } 423 virtual float minValueForRange() const { return 0.0f; }
424 virtual String stringValue() const { return String(); } 424 virtual String stringValue() const { return String(); }
425 virtual const AtomicString& textInputType() const { return nullAtom; }
425 426
426 // ARIA attributes. 427 // ARIA attributes.
427 virtual AXObject* activeDescendant() const { return 0; } 428 virtual AXObject* activeDescendant() const { return 0; }
428 virtual String ariaDescribedByAttribute() const { return String(); } 429 virtual String ariaDescribedByAttribute() const { return String(); }
429 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { } 430 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { }
430 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { } 431 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { }
431 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb y) const { }; 432 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb y) const { };
432 virtual void ariaLabelledbyElements(AccessibilityChildrenVector& labelledby) const { }; 433 virtual void ariaLabelledbyElements(AccessibilityChildrenVector& labelledby) const { };
433 virtual void ariaOwnsElements(AccessibilityChildrenVector& owns) const { }; 434 virtual void ariaOwnsElements(AccessibilityChildrenVector& owns) const { };
434 virtual bool ariaHasPopup() const { return false; } 435 virtual bool ariaHasPopup() const { return false; }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 579
579 bool m_detached; 580 bool m_detached;
580 }; 581 };
581 582
582 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 583 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
583 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 584 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
584 585
585 } // namespace blink 586 } // namespace blink
586 587
587 #endif // AXObject_h 588 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698