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

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

Issue 2482983002: MediaSettingsRange: s/long/double/ in MediaSettingsRange.idl and PhotoCapabilities.idl (Closed)
Patch Set: s/float/double/ in fake_video_capture_device.* Created 4 years, 1 month 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/MediaSettingsRange.h
diff --git a/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h b/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h
index 453d758f4737081e8211f8a1c581c3710c50f764..fc5d71f19100f623f9659bb8d6993f4c426f09c5 100644
--- a/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h
+++ b/third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h
@@ -14,28 +14,28 @@ class MediaSettingsRange final : public GarbageCollected<MediaSettingsRange>,
DEFINE_WRAPPERTYPEINFO();
public:
- static MediaSettingsRange* create(long max,
- long min,
- long current,
- long step) {
+ static MediaSettingsRange* create(double max,
+ double min,
+ double current,
+ double step) {
return new MediaSettingsRange(max, min, current, step);
}
- long max() const { return m_max; }
- long min() const { return m_min; }
- long current() const { return m_current; }
- long step() const { return m_step; }
+ double max() const { return m_max; }
+ double min() const { return m_min; }
+ double current() const { return m_current; }
+ double step() const { return m_step; }
DEFINE_INLINE_TRACE() {}
private:
- MediaSettingsRange(long max, long min, long current, long step)
+ MediaSettingsRange(double max, double min, double current, double step)
: m_max(max), m_min(min), m_current(current), m_step(step) {}
- long m_max;
- long m_min;
- long m_current;
- long m_step;
+ double m_max;
+ double m_min;
+ double m_current;
+ double m_step;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698