--- a/dom/camera/DOMCameraControl.cpp
+++ b/dom/camera/DOMCameraControl.cpp
@@ -487,16 +487,29 @@ nsDOMCameraControl::GetPictureQuality(Er
}
void
nsDOMCameraControl::SetPictureQuality(double aQuality, ErrorResult& aRv)
{
THROW_IF_NO_CAMERACONTROL();
aRv = mCameraControl->Set(CAMERA_PARAM_PICTURE_QUALITY, aQuality);
}
+void
+nsDOMCameraControl::GetMeteringMode(nsString& aMode, ErrorResult& aRv)
+{
+ THROW_IF_NO_CAMERACONTROL();
+ aRv = mCameraControl->Get(CAMERA_PARAM_METERINGMODE, aMode);
+}
+void
+nsDOMCameraControl::SetMeteringMode(const nsAString& aMode, ErrorResult& aRv)
+{
+ THROW_IF_NO_CAMERACONTROL();
+ aRv = mCameraControl->Set(CAMERA_PARAM_METERINGMODE, aMode);
+}
+
double
nsDOMCameraControl::GetZoom(ErrorResult& aRv)
{
THROW_IF_NO_CAMERACONTROL(1.0);
double zoom = 1.0;
aRv = mCameraControl->Get(CAMERA_PARAM_ZOOM, zoom);
return zoom;