Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp

Issue 2785503003: Image Capture: update PhotoCapabilities.idl to latest Spec changes (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
diff --git a/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp b/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
index 83323bc0f05a88fbcc89997c5410c8de27429d3e..72b1a367582c4eb830b1c080b5ce56f8f7b64441 100644
--- a/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
+++ b/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
@@ -11,22 +11,28 @@ PhotoCapabilities* PhotoCapabilities::create() {
return new PhotoCapabilities();
}
-String PhotoCapabilities::fillLightMode() const {
- switch (m_fillLightMode) {
- case media::mojom::blink::FillLightMode::NONE:
- return "none";
- case media::mojom::blink::FillLightMode::OFF:
- return "off";
- case media::mojom::blink::FillLightMode::AUTO:
- return "auto";
- case media::mojom::blink::FillLightMode::FLASH:
- return "flash";
- case media::mojom::blink::FillLightMode::TORCH:
- return "torch";
- default:
- NOTREACHED();
+Vector<String> PhotoCapabilities::fillLightMode() const {
+ Vector<String> fillLightModes;
+ for (const auto& mode : m_fillLightModes) {
+ switch (mode) {
+ case media::mojom::blink::FillLightMode::OFF:
+ fillLightModes.push_back("off");
+ break;
+ case media::mojom::blink::FillLightMode::AUTO:
+ fillLightModes.push_back("auto");
+ break;
+ case media::mojom::blink::FillLightMode::FLASH:
+ fillLightModes.push_back("flash");
+ break;
+ default:
+ NOTREACHED();
+ }
}
- return emptyString;
+ return fillLightModes;
+}
+
+String PhotoCapabilities::redEyeReduction() const {
+ return m_redEyeReduction ? "controllable" : "never";
}
DEFINE_TRACE(PhotoCapabilities) {

Powered by Google App Engine
This is Rietveld 408576698