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

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

Issue 2387303002: Image Capture Linux/CrOs, implement brightness, contrast, saturation and sharpness (Closed)
Patch Set: Explicitly initialize to empty the new fields in the Android implementation and rebase Created 4 years, 2 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.h
diff --git a/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h b/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h
index 3531df969ce8437288f73dbf0f25c4dc38e1cdbb..9f9d739ef987a2cd3f5c6e4e128e0daf93128ba1 100644
--- a/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h
+++ b/third_party/WebKit/Source/modules/imagecapture/PhotoCapabilities.h
@@ -70,6 +70,18 @@ class PhotoCapabilities final
m_colorTemperature = value;
}
+ MediaSettingsRange* brightness() const { return m_brightness; }
+ void setBrightness(MediaSettingsRange* value) { m_brightness = value; }
+
+ MediaSettingsRange* contrast() const { return m_contrast; }
+ void setContrast(MediaSettingsRange* value) { m_contrast = value; }
+
+ MediaSettingsRange* saturation() const { return m_saturation; }
+ void setSaturation(MediaSettingsRange* value) { m_saturation = value; }
+
+ MediaSettingsRange* sharpness() const { return m_sharpness; }
+ void setSharpness(MediaSettingsRange* value) { m_sharpness = value; }
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -89,8 +101,11 @@ class PhotoCapabilities final
media::mojom::blink::FillLightMode m_fillLightMode =
media::mojom::blink::FillLightMode::NONE;
bool m_redEyeReduction;
-
Member<MediaSettingsRange> m_colorTemperature;
+ Member<MediaSettingsRange> m_brightness;
+ Member<MediaSettingsRange> m_contrast;
+ Member<MediaSettingsRange> m_saturation;
+ Member<MediaSettingsRange> m_sharpness;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698