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

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

Issue 2795693004: Image Capture: add |points_of_interest| to mojo and wire it to IDL layer (Closed)
Patch Set: reillyg@ comments: Added a MediaSettingsRange::create() to avoid Clone() 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/ImageCapture.cpp ('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/MediaSettingsRange.h
diff --git a/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h b/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h
index 3809800d45bf341d57e949b51c72691db0f1eab3..f82a5475e9c9b4e4f6bd563e235a9fdff1505796 100644
--- a/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h
+++ b/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h
@@ -25,6 +25,10 @@ class MediaSettingsRange final : public GarbageCollected<MediaSettingsRange>,
return MediaSettingsRange::create(range->max, range->min, range->current,
Reilly Grant (use Gerrit) 2017/04/04 00:48:45 return MediaSettingsRange::create(*range); (The .
mcasas 2017/04/04 01:42:38 Done.
range->step);
}
+ static MediaSettingsRange* create(const media::mojom::blink::Range& range) {
+ return MediaSettingsRange::create(range.max, range.min, range.current,
+ range.step);
+ }
double max() const { return m_max; }
double min() const { return m_min; }
« no previous file with comments | « third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698