dom/camera/DOMCameraControl.cpp
changeset 219511 cf975e8c033d40aaac9c6bd0c09fac6e3cc305a6
parent 219510 220f9cd8097a7d7b395ab0419c6aa62ae25f7058
child 220237 ce9707a48002c8fd80f1c921b13e8f6e40d54f43
--- 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;