Changeset 169986 in webkit


Ignore:
Timestamp:
Jun 14, 2014, 5:07:42 PM (11 years ago)
Author:
mitz@apple.com
Message:

Additional iOS build fix.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView _define:]):
(selectionChangedWithGesture):
(selectionChangedWithTouch):
(-[WKContentView changeSelectionWithGestureAt:withGesture:withState:]):
(-[WKContentView changeSelectionWithTouchAt:withSelectionTouch:baseIsStart:]):
(-[WKContentView changeSelectionWithTouchesFrom:to:withGesture:withState:]):
(-[WKContentView applyAutocorrection:toString:withCompletionHandler:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r169985 r169986  
     12014-06-14  Dan Bernstein  <mitz@apple.com>
     2
     3        Additional iOS build fix.
     4
     5        * UIProcess/ios/WKContentViewInteraction.mm:
     6        (-[WKContentView _define:]):
     7        (selectionChangedWithGesture):
     8        (selectionChangedWithTouch):
     9        (-[WKContentView changeSelectionWithGestureAt:withGesture:withState:]):
     10        (-[WKContentView changeSelectionWithTouchAt:withSelectionTouch:baseIsStart:]):
     11        (-[WKContentView changeSelectionWithTouchesFrom:to:withGesture:withState:]):
     12        (-[WKContentView applyAutocorrection:toString:withCompletionHandler:]):
     13
    1142014-06-14  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r169962 r169986  
    12111211- (void)_define:(id)sender
    12121212{
    1213     _page->getSelectionOrContentsAsString(StringCallback::create([self](bool error, StringImpl* string) {
    1214         if (error)
     1213    _page->getSelectionOrContentsAsString(StringCallback::create([self](StringImpl* string, CallbackBase::Error error) {
     1214        if (error != CallbackBase::Error::None)
    12151215            return;
    12161216        if (!string)
     
    13971397}
    13981398
    1399 static void selectionChangedWithGesture(bool error, WKContentView *view, const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t flags)
    1400 {
    1401     if (error) {
     1399static void selectionChangedWithGesture(WKContentView *view, const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, CallbackBase::Error error)
     1400{
     1401    if (error != CallbackBase::Error::None) {
    14021402        ASSERT_NOT_REACHED();
    14031403        return;
     
    14091409}
    14101410
    1411 static void selectionChangedWithTouch(bool error, WKContentView *view, const WebCore::IntPoint& point, uint32_t touch)
    1412 {
    1413     if (error) {
     1411static void selectionChangedWithTouch(WKContentView *view, const WebCore::IntPoint& point, uint32_t touch, CallbackBase::Error error)
     1412{
     1413    if (error != CallbackBase::Error::None) {
    14141414        ASSERT_NOT_REACHED();
    14151415        return;
     
    14311431{
    14321432    _usingGestureForSelection = YES;
    1433     _page->selectWithGesture(WebCore::IntPoint(point), CharacterGranularity, static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(state)), GestureCallback::create([self, state](bool error, const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t flags) {
    1434         selectionChangedWithGesture(error, self, point, gestureType, gestureState, flags);
     1433    _page->selectWithGesture(WebCore::IntPoint(point), CharacterGranularity, static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(state)), GestureCallback::create([self, state](const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, CallbackBase::Error error) {
     1434        selectionChangedWithGesture(self, point, gestureType, gestureState, flags, error);
    14351435        if (state == UIGestureRecognizerStateEnded || state == UIGestureRecognizerStateCancelled)
    14361436            _usingGestureForSelection = NO;
     
    14411441{
    14421442    _usingGestureForSelection = YES;
    1443     _page->updateSelectionWithTouches(WebCore::IntPoint(point), static_cast<uint32_t>(toSelectionTouch(touch)), baseIsStart, TouchesCallback::create([self, touch](bool error, const WebCore::IntPoint& point, uint32_t touch) {
    1444         selectionChangedWithTouch(error, self, point, touch);
     1443    _page->updateSelectionWithTouches(WebCore::IntPoint(point), static_cast<uint32_t>(toSelectionTouch(touch)), baseIsStart, TouchesCallback::create([self, touch](const WebCore::IntPoint& point, uint32_t touch, CallbackBase::Error error) {
     1444        selectionChangedWithTouch(self, point, touch, error);
    14451445        if (touch != UIWKSelectionTouchStarted && touch != UIWKSelectionTouchMoved)
    14461446            _usingGestureForSelection = NO;
     
    14511451{
    14521452    _usingGestureForSelection = YES;
    1453     _page->selectWithTwoTouches(WebCore::IntPoint(from), WebCore::IntPoint(to), static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(gestureState)), GestureCallback::create([self, gestureState](bool error, const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t flags) {
    1454         selectionChangedWithGesture(error, self, point, gestureType, gestureState, flags);
     1453    _page->selectWithTwoTouches(WebCore::IntPoint(from), WebCore::IntPoint(to), static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(gestureState)), GestureCallback::create([self, gestureState](const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, CallbackBase::Error error) {
     1454        selectionChangedWithGesture(self, point, gestureType, gestureState, flags, error);
    14551455        if (gestureState == UIGestureRecognizerStateEnded || gestureState == UIGestureRecognizerStateCancelled)
    14561456            _usingGestureForSelection = NO;
     
    15581558    }
    15591559    _autocorrectionData.autocorrectionHandler = [completionHandler copy];
    1560     _page->applyAutocorrection(correction, input, StringCallback::create([self](bool /*error*/, StringImpl* string) {
     1560    _page->applyAutocorrection(correction, input, StringCallback::create([self](StringImpl* string, CallbackBase::Error error) {
    15611561        _autocorrectionData.autocorrectionHandler(string ? [WKAutocorrectionRects autocorrectionRectsWithRects:_autocorrectionData.textFirstRect lastRect:_autocorrectionData.textLastRect] : nil);
    15621562        [_autocorrectionData.autocorrectionHandler release];
Note: See TracChangeset for help on using the changeset viewer.