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

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

Issue 2877273002: Image Capture: reject setOptions()/applyConstraints() if any argument is unsupported (Closed)
Patch Set: reverted renaming bc it breaks patching Created 3 years, 7 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 750f909a1d01faf1a9501d0698396cc257e72f1f..8bdc7fa72fa465351c7d7683758620b78fbcb78a 100644
--- a/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
+++ b/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.cpp
@@ -45,6 +45,11 @@ String PhotoCapabilities::redEyeReduction() const {
return "";
}
+bool PhotoCapabilities::IsRedEyeReductionControllable() const {
+ return red_eye_reduction_ ==
+ media::mojom::blink::RedEyeReduction::CONTROLLABLE;
+}
+
DEFINE_TRACE(PhotoCapabilities) {
visitor->Trace(image_height_);
visitor->Trace(image_width_);
« 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