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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user