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

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

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove platform differences from inline-text-textarea output Created 7 years, 3 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 | Annotate | Revision Log
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 GroupRole, 94 GroupRole,
95 GrowAreaRole, 95 GrowAreaRole,
96 HeadingRole, 96 HeadingRole,
97 HelpTagRole, 97 HelpTagRole,
98 HorizontalRuleRole, 98 HorizontalRuleRole,
99 IgnoredRole, 99 IgnoredRole,
100 ImageMapLinkRole, 100 ImageMapLinkRole,
101 ImageMapRole, 101 ImageMapRole,
102 ImageRole, 102 ImageRole,
103 IncrementorRole, 103 IncrementorRole,
104 InlineTextBoxRole,
104 LabelRole, 105 LabelRole,
105 LegendRole, 106 LegendRole,
106 LinkRole, 107 LinkRole,
107 ListBoxOptionRole, 108 ListBoxOptionRole,
108 ListBoxRole, 109 ListBoxRole,
109 ListItemRole, 110 ListItemRole,
110 ListMarkerRole, 111 ListMarkerRole,
111 ListRole, 112 ListRole,
112 LogRole, 113 LogRole,
113 MainRole, 114 MainRole,
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 virtual int headingLevel() const { return 0; } 403 virtual int headingLevel() const { return 0; }
403 // 1-based, to match the aria-level spec. 404 // 1-based, to match the aria-level spec.
404 virtual unsigned hierarchicalLevel() const { return 0; } 405 virtual unsigned hierarchicalLevel() const { return 0; }
405 virtual AccessibilityOrientation orientation() const; 406 virtual AccessibilityOrientation orientation() const;
406 virtual int tableLevel() const { return 0; } 407 virtual int tableLevel() const { return 0; }
407 virtual String text() const { return String(); } 408 virtual String text() const { return String(); }
408 virtual int textLength() const { return 0; } 409 virtual int textLength() const { return 0; }
409 virtual AccessibilityObject* titleUIElement() const { return 0; } 410 virtual AccessibilityObject* titleUIElement() const { return 0; }
410 virtual KURL url() const { return KURL(); } 411 virtual KURL url() const { return KURL(); }
411 412
413 // For an inline text box.
414 // The integer horizontal pixel offset of each character in the string; nega tive values for RTL.
415 virtual void textCharacterOffsets(Vector<int>&) const { }
416 // The start and end character offset of each word in the inline text box.
417 virtual void wordBoundaries(Vector<int>& starts, Vector<int>& ends) const { }
418
412 // Properties of interactive elements. 419 // Properties of interactive elements.
413 virtual String actionVerb() const; 420 virtual String actionVerb() const;
414 virtual AccessibilityButtonState checkboxOrRadioValue() const; 421 virtual AccessibilityButtonState checkboxOrRadioValue() const;
415 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; } 422 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0; }
416 virtual String valueDescription() const { return String(); } 423 virtual String valueDescription() const { return String(); }
417 virtual float valueForRange() const { return 0.0f; } 424 virtual float valueForRange() const { return 0.0f; }
418 virtual float maxValueForRange() const { return 0.0f; } 425 virtual float maxValueForRange() const { return 0.0f; }
419 virtual float minValueForRange() const { return 0.0f; } 426 virtual float minValueForRange() const { return 0.0f; }
420 const AtomicString& placeholderValue() const; 427 const AtomicString& placeholderValue() const;
421 virtual void selectedChildren(AccessibilityChildrenVector&) { } 428 virtual void selectedChildren(AccessibilityChildrenVector&) { }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 #if !HAVE(ACCESSIBILITY) 592 #if !HAVE(ACCESSIBILITY)
586 inline const AccessibilityObject::AccessibilityChildrenVector& AccessibilityObje ct::children() { return m_children; } 593 inline const AccessibilityObject::AccessibilityChildrenVector& AccessibilityObje ct::children() { return m_children; }
587 inline String AccessibilityObject::actionVerb() const { return emptyString(); } 594 inline String AccessibilityObject::actionVerb() const { return emptyString(); }
588 inline int AccessibilityObject::lineForPosition(const VisiblePosition&) const { return -1; } 595 inline int AccessibilityObject::lineForPosition(const VisiblePosition&) const { return -1; }
589 inline void AccessibilityObject::updateBackingStore() { } 596 inline void AccessibilityObject::updateBackingStore() { }
590 #endif 597 #endif
591 598
592 } // namespace WebCore 599 } // namespace WebCore
593 600
594 #endif // AccessibilityObject_h 601 #endif // AccessibilityObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698