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

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

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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "modules/imagecapture/PhotoCapabilities.h"
6
7 namespace blink {
8
9 // static
10 PhotoCapabilities* PhotoCapabilities::create()
11 {
12 return new PhotoCapabilities();
13 }
14
15 MediaSettingsRange* PhotoCapabilities::zoom() const { return m_zoom; }
16
17 void PhotoCapabilities::setZoom(MediaSettingsRange* value) { m_zoom = value; }
18
19 String PhotoCapabilities::focusMode() const
20 {
21 switch (m_focusMode) {
22 case media::mojom::blink::FocusMode::UNAVAILABLE:
23 return "unavailable";
24 case media::mojom::blink::FocusMode::AUTO:
25 return "auto";
26 case media::mojom::blink::FocusMode::MANUAL:
27 return "manual";
28 default:
29 NOTREACHED();
30 }
31 return emptyString();
32 }
33
34 void PhotoCapabilities::setFocusMode(media::mojom::blink::FocusMode focusMode)
35 {
36 m_focusMode = focusMode;
37 }
38
39 DEFINE_TRACE(PhotoCapabilities)
40 {
41 visitor->trace(m_zoom);
42 }
43
44 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698