зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1015368 - add missing cases to OnUserError() switch, r=aosmond
This commit is contained in:
Родитель
c2c3e11bcf
Коммит
612c2ed5ec
|
@ -1309,6 +1309,24 @@ nsDOMCameraControl::OnUserError(CameraControlListener::UserContext aContext, nsr
|
|||
errorCb = mStartRecordingOnErrorCb.forget();
|
||||
break;
|
||||
|
||||
case CameraControlListener::kInStartFaceDetection:
|
||||
// This method doesn't have any callbacks, so all we can do is log the
|
||||
// failure. This only happens after the hardware has been released.
|
||||
NS_WARNING("Failed to start face detection");
|
||||
return;
|
||||
|
||||
case CameraControlListener::kInStopFaceDetection:
|
||||
// This method doesn't have any callbacks, so all we can do is log the
|
||||
// failure. This only happens after the hardware has been released.
|
||||
NS_WARNING("Failed to stop face detection");
|
||||
return;
|
||||
|
||||
case CameraControlListener::kInResumeContinuousFocus:
|
||||
// This method doesn't have any callbacks, so all we can do is log the
|
||||
// failure. This only happens after the hardware has been released.
|
||||
NS_WARNING("Failed to resume continuous focus");
|
||||
return;
|
||||
|
||||
case CameraControlListener::kInStopRecording:
|
||||
// This method doesn't have any callbacks, so all we can do is log the
|
||||
// failure. This only happens after the hardware has been released.
|
||||
|
|
Загрузка…
Ссылка в новой задаче