Changeset 169986 in webkit
- Timestamp:
- Jun 14, 2014, 5:07:42 PM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r169985 r169986 1 2014-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 1 14 2014-06-14 Dan Bernstein <mitz@apple.com> 2 15 -
trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm
r169962 r169986 1211 1211 - (void)_define:(id)sender 1212 1212 { 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) 1215 1215 return; 1216 1216 if (!string) … … 1397 1397 } 1398 1398 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 ) {1399 static 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) { 1402 1402 ASSERT_NOT_REACHED(); 1403 1403 return; … … 1409 1409 } 1410 1410 1411 static void selectionChangedWithTouch( bool error, WKContentView *view, const WebCore::IntPoint& point, uint32_t touch)1412 { 1413 if (error ) {1411 static void selectionChangedWithTouch(WKContentView *view, const WebCore::IntPoint& point, uint32_t touch, CallbackBase::Error error) 1412 { 1413 if (error != CallbackBase::Error::None) { 1414 1414 ASSERT_NOT_REACHED(); 1415 1415 return; … … 1431 1431 { 1432 1432 _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); 1435 1435 if (state == UIGestureRecognizerStateEnded || state == UIGestureRecognizerStateCancelled) 1436 1436 _usingGestureForSelection = NO; … … 1441 1441 { 1442 1442 _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); 1445 1445 if (touch != UIWKSelectionTouchStarted && touch != UIWKSelectionTouchMoved) 1446 1446 _usingGestureForSelection = NO; … … 1451 1451 { 1452 1452 _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); 1455 1455 if (gestureState == UIGestureRecognizerStateEnded || gestureState == UIGestureRecognizerStateCancelled) 1456 1456 _usingGestureForSelection = NO; … … 1558 1558 } 1559 1559 _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) { 1561 1561 _autocorrectionData.autocorrectionHandler(string ? [WKAutocorrectionRects autocorrectionRectsWithRects:_autocorrectionData.textFirstRect lastRect:_autocorrectionData.textLastRect] : nil); 1562 1562 [_autocorrectionData.autocorrectionHandler release];
Note:
See TracChangeset
for help on using the changeset viewer.