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

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: Using isTextField() 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
« no previous file with comments | « Source/core/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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 419
420 // Properties of interactive elements. 420 // Properties of interactive elements.
421 virtual String actionVerb() const; 421 virtual String actionVerb() const;
422 virtual AccessibilityButtonState checkboxOrRadioValue() const; 422 virtual AccessibilityButtonState checkboxOrRadioValue() const;
423 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; } 423 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; }
424 virtual String valueDescription() const { return String(); } 424 virtual String valueDescription() const { return String(); }
425 virtual float valueForRange() const { return 0.0f; } 425 virtual float valueForRange() const { return 0.0f; }
426 virtual float maxValueForRange() const { return 0.0f; } 426 virtual float maxValueForRange() const { return 0.0f; }
427 virtual float minValueForRange() const { return 0.0f; } 427 virtual float minValueForRange() const { return 0.0f; }
428 virtual String stringValue() const { return String(); } 428 virtual String stringValue() const { return String(); }
429 virtual const AtomicString& textInputType() const { return nullAtom; }
429 430
430 // ARIA attributes. 431 // ARIA attributes.
431 virtual AXObject* activeDescendant() const { return 0; } 432 virtual AXObject* activeDescendant() const { return 0; }
432 virtual String ariaDescribedByAttribute() const { return String(); } 433 virtual String ariaDescribedByAttribute() const { return String(); }
433 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { } 434 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { }
434 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { } 435 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { }
435 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb y) const { }; 436 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb y) const { };
436 virtual void ariaLabelledbyElements(AccessibilityChildrenVector& labelledby) const { }; 437 virtual void ariaLabelledbyElements(AccessibilityChildrenVector& labelledby) const { };
437 virtual void ariaOwnsElements(AccessibilityChildrenVector& owns) const { }; 438 virtual void ariaOwnsElements(AccessibilityChildrenVector& owns) const { };
438 virtual bool ariaHasPopup() const { return false; } 439 virtual bool ariaHasPopup() const { return false; }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 583
583 bool m_detached; 584 bool m_detached;
584 }; 585 };
585 586
586 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 587 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
587 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 588 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
588 589
589 } // namespace blink 590 } // namespace blink
590 591
591 #endif // AXObject_h 592 #endif // AXObject_h
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXNodeObject.cpp ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698