Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm

We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
This commit is contained in:
Kan-Ru Chen
2016-11-15 04:26:00 +01:00
parent b4659e9e83
commit 1b9dd22e2d
404 changed files with 7108 additions and 6579 deletions

View File

@@ -220,7 +220,7 @@ void APZCTreeManagerChild::TransformEventRefPoint(
SendTransformEventRefPoint(*aRefPoint, aRefPoint, aOutTargetGuid);
}
bool
mozilla::ipc::IPCResult
APZCTreeManagerChild::RecvHandleTap(const TapType& aType,
const LayoutDevicePoint& aPoint,
const Modifiers& aModifiers,
@@ -233,16 +233,16 @@ APZCTreeManagerChild::RecvHandleTap(const TapType& aType,
mCompositorSession->GetContentController()) {
mCompositorSession->GetContentController()->HandleTap(aType, aPoint,
aModifiers, aGuid, aInputBlockId);
return true;
return IPC_OK();
}
dom::TabParent* tab = dom::TabParent::GetTabParentFromLayersId(aGuid.mLayersId);
if (tab) {
tab->SendHandleTap(aType, aPoint, aModifiers, aGuid, aInputBlockId);
}
return true;
return IPC_OK();
}
bool
mozilla::ipc::IPCResult
APZCTreeManagerChild::RecvNotifyPinchGesture(const PinchGestureType& aType,
const ScrollableLayerGuid& aGuid,
const LayoutDeviceCoord& aSpanChange,
@@ -259,7 +259,7 @@ APZCTreeManagerChild::RecvNotifyPinchGesture(const PinchGestureType& aType,
mCompositorSession->GetWidget()) {
APZCCallbackHelper::NotifyPinchGesture(aType, aSpanChange, aModifiers, mCompositorSession->GetWidget());
}
return true;
return IPC_OK();
}
} // namespace layers