Changeset 88703 in webkit
- Timestamp:
- Jun 13, 2011 3:00:13 PM (13 years ago)
- Location:
- trunk/Source/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/chromium/ChangeLog
r88682 r88703 1 2011-06-13 Dominic Mazzoni <dmazzoni@google.com> 2 3 Reviewed by Dimitri Glazkov. 4 5 Add accessors for selectionStart and selectionEnd. 6 https://bugs.webkit.org/show_bug.cgi?id=62596 7 8 * public/WebAccessibilityObject.h: 9 * src/WebAccessibilityObject.cpp: 10 (WebKit::WebAccessibilityObject::selectionEnd): 11 (WebKit::WebAccessibilityObject::selectionStart): 12 1 13 2011-06-13 Adam Barth <abarth@webkit.org> 2 14 -
trunk/Source/WebKit/chromium/public/WebAccessibilityObject.h
r88351 r88703 111 111 WEBKIT_API bool performDefaultAction() const; 112 112 WEBKIT_API WebAccessibilityRole roleValue() const; 113 WEBKIT_API unsigned selectionEnd() const; 114 WEBKIT_API unsigned selectionStart() const; 113 115 WEBKIT_API void setFocused(bool) const; 114 116 WEBKIT_API WebString stringValue() const; -
trunk/Source/WebKit/chromium/src/WebAccessibilityObject.cpp
r88351 r88703 447 447 } 448 448 449 unsigned WebAccessibilityObject::selectionEnd() const 450 { 451 if (!m_private) 452 return 0; 453 454 m_private->updateBackingStore(); 455 return m_private->selectedTextRange().start + m_private->selectedTextRange().length; 456 } 457 458 unsigned WebAccessibilityObject::selectionStart() const 459 { 460 if (!m_private) 461 return 0; 462 463 m_private->updateBackingStore(); 464 return m_private->selectedTextRange().start; 465 } 466 449 467 void WebAccessibilityObject::setFocused(bool on) const 450 468 {
Note: See TracChangeset
for help on using the changeset viewer.