• enrica@apple.com's avatar
    Support WebSelections in WK2 on iOS. · 043ef674
    enrica@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=127015
    <rdar://problem/15211964>
    
    Reviewed by Benjamin Poulain.
    
    This change adds support for text only (non block mode)
    selections in non editable content.
    The main changes consist in hooking up the new gesture type
    and touches to handle selection creation and interaction.
    It also includes changes to the way first responder is handled
    which includes the implementation of the isEditable method
    to allow iOS to know when to show the keyboard.
    
    * Shared/ios/WKGestureTypes.h:
    * UIProcess/API/ios/WKInteractionView.mm:
    (-[WKInteractionView isEditable]):
    (-[WKInteractionView canBecomeFirstResponder]):
    (-[WKInteractionView webSelectionRects]):
    (-[WKInteractionView _highlightLongPressRecognized:]):
    (-[WKInteractionView _singleTapRecognized:]):
    (-[WKInteractionView inputAccessoryView]):
    (-[WKInteractionView canPerformAction:withSender:]):
    (-[WKInteractionView _showDictionary:]):
    (toWKGestureType):
    (toUIWKGestureType):
    (selectionChangedWithGesture):
    (selectionChangedWithTouch):
    (-[WKInteractionView selectedTextRange]):
    (-[WKInteractionView webSelectionAssistant]):
    (-[WKInteractionView _startAssistingNode]):
    (-[WKInteractionView _stopAssistingNode]):
    (-[WKInteractionView _selectionChanged]):
    * WebProcess/WebPage/ios/WebPageIOS.mm:
    (WebKit::WebPage::selectWithGesture):
    (WebKit::WebPage::updateSelectionWithTouches):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    043ef674
Name
Last commit
Last update
Examples Loading commit data...
LayoutTests Loading commit data...
ManualTests Loading commit data...
PerformanceTests Loading commit data...
Source Loading commit data...
Tools Loading commit data...
WebKit.xcworkspace Loading commit data...
WebKitLibraries Loading commit data...
Websites Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
CMakeLists.txt Loading commit data...
ChangeLog Loading commit data...
ChangeLog-2012-05-22 Loading commit data...
GNUmakefile.am Loading commit data...
Makefile Loading commit data...
Makefile.shared Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...