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

Side by Side Diff: third_party/WebKit/Source/modules/imagecapture/MediaSettingsRange.h

Issue 2482983002: MediaSettingsRange: s/long/double/ in MediaSettingsRange.idl and PhotoCapabilities.idl (Closed)
Patch Set: reillyg@s comments 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaSettingsRange_h 5 #ifndef MediaSettingsRange_h
6 #define MediaSettingsRange_h 6 #define MediaSettingsRange_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class MediaSettingsRange final : public GarbageCollected<MediaSettingsRange>, 12 class MediaSettingsRange final : public GarbageCollected<MediaSettingsRange>,
13 public ScriptWrappable { 13 public ScriptWrappable {
14 DEFINE_WRAPPERTYPEINFO(); 14 DEFINE_WRAPPERTYPEINFO();
15 15
16 public: 16 public:
17 static MediaSettingsRange* create(long max, 17 static MediaSettingsRange* create(double max,
18 long min, 18 double min,
19 long current, 19 double current,
20 long step) { 20 double step) {
21 return new MediaSettingsRange(max, min, current, step); 21 return new MediaSettingsRange(max, min, current, step);
22 } 22 }
23 23
24 long max() const { return m_max; } 24 double max() const { return m_max; }
25 long min() const { return m_min; } 25 double min() const { return m_min; }
26 long current() const { return m_current; } 26 double current() const { return m_current; }
27 long step() const { return m_step; } 27 double step() const { return m_step; }
28 28
29 DEFINE_INLINE_TRACE() {} 29 DEFINE_INLINE_TRACE() {}
30 30
31 private: 31 private:
32 MediaSettingsRange(long max, long min, long current, long step) 32 MediaSettingsRange(double max, double min, double current, double step)
33 : m_max(max), m_min(min), m_current(current), m_step(step) {} 33 : m_max(max), m_min(min), m_current(current), m_step(step) {}
34 34
35 long m_max; 35 double m_max;
36 long m_min; 36 double m_min;
37 long m_current; 37 double m_current;
38 long m_step; 38 double m_step;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // MediaSettingsRange_h 43 #endif // MediaSettingsRange_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698