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

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

Issue 2124363003: ImageCapture: Implement focus mode for Android and Fake Video Capture Devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@s nit, dcheng@ comment and updated webexposed/global-interface-listing-expected.txt Created 4 years, 5 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 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 PhotoCapabilities_h 5 #ifndef PhotoCapabilities_h
6 #define PhotoCapabilities_h 6 #define PhotoCapabilities_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "media/mojo/interfaces/image_capture.mojom-blink.h"
9 #include "modules/imagecapture/MediaSettingsRange.h" 10 #include "modules/imagecapture/MediaSettingsRange.h"
10 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class PhotoCapabilities final 15 class PhotoCapabilities final
15 : public GarbageCollectedFinalized<PhotoCapabilities> 16 : public GarbageCollectedFinalized<PhotoCapabilities>
16 , public ScriptWrappable { 17 , public ScriptWrappable {
17 DEFINE_WRAPPERTYPEINFO(); 18 DEFINE_WRAPPERTYPEINFO();
18 public: 19 public:
19 static PhotoCapabilities* create() 20 static PhotoCapabilities* create();
20 {
21 return new PhotoCapabilities();
22 }
23 virtual ~PhotoCapabilities() = default; 21 virtual ~PhotoCapabilities() = default;
24 22
25 MediaSettingsRange* zoom() const { return m_zoom; } 23 MediaSettingsRange* zoom() const;
26 void setZoom(MediaSettingsRange* value) { m_zoom = value; } 24 void setZoom(MediaSettingsRange* value);
27 25
28 DEFINE_INLINE_TRACE() 26 String focusMode() const;
29 { 27 void setFocusMode(media::mojom::blink::FocusMode);
30 visitor->trace(m_zoom); 28
31 } 29 DECLARE_VIRTUAL_TRACE();
32 30
33 private: 31 private:
34 PhotoCapabilities() = default; 32 PhotoCapabilities() = default;
35 33
36 Member<MediaSettingsRange> m_zoom; 34 Member<MediaSettingsRange> m_zoom;
35 media::mojom::blink::FocusMode m_focusMode = media::mojom::blink::FocusMode: :UNAVAILABLE;
37 }; 36 };
38 37
39 } // namespace blink 38 } // namespace blink
40 39
41 #endif // PhotoCapabilities_h 40 #endif // PhotoCapabilities_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698