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

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

Issue 2787933002: ImageCapture: separate fillLightMode, redEyeReduction and Torch (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
« no previous file with comments | « third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72b1a367582c4eb830b1c080b5ce56f8f7b64441..1e9d5555959e31ff7d59340308dbdc1d90281cbb 100644
--- a/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
+++ b/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
@@ -32,7 +32,17 @@ Vector<String> PhotoCapabilities::fillLightMode() const {
}
String PhotoCapabilities::redEyeReduction() const {
- return m_redEyeReduction ? "controllable" : "never";
+ switch (m_redEyeReduction) {
+ case media::mojom::blink::RedEyeReduction::NEVER:
+ return "never";
+ case media::mojom::blink::RedEyeReduction::ALWAYS:
+ return "always";
+ case media::mojom::blink::RedEyeReduction::CONTROLLABLE:
+ return "controllable";
+ default:
+ NOTREACHED();
+ }
+ return "";
}
DEFINE_TRACE(PhotoCapabilities) {
« no previous file with comments | « third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698