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

Side by Side Diff: media/capture/video/android/photo_capabilities.cc

Issue 2214533002: move //media/capture to //device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 "media/capture/video/android/photo_capabilities.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h"
10 #include "jni/PhotoCapabilities_jni.h"
11
12 using base::android::AttachCurrentThread;
13
14 namespace media {
15
16 PhotoCapabilities::PhotoCapabilities(
17 base::android::ScopedJavaLocalRef<jobject> object)
18 : object_(object) {}
19
20 PhotoCapabilities::~PhotoCapabilities() {}
21
22 int PhotoCapabilities::getMinIso() const {
23 DCHECK(!object_.is_null());
24 return Java_PhotoCapabilities_getMinIso(AttachCurrentThread(), object_.obj());
25 }
26
27 int PhotoCapabilities::getMaxIso() const {
28 DCHECK(!object_.is_null());
29 return Java_PhotoCapabilities_getMaxIso(AttachCurrentThread(), object_.obj());
30 }
31
32 int PhotoCapabilities::getCurrentIso() const {
33 DCHECK(!object_.is_null());
34 return Java_PhotoCapabilities_getCurrentIso(AttachCurrentThread(),
35 object_.obj());
36 }
37
38 int PhotoCapabilities::getMinHeight() const {
39 DCHECK(!object_.is_null());
40 return Java_PhotoCapabilities_getMinHeight(AttachCurrentThread(),
41 object_.obj());
42 }
43
44 int PhotoCapabilities::getMaxHeight() const {
45 DCHECK(!object_.is_null());
46 return Java_PhotoCapabilities_getMaxHeight(AttachCurrentThread(),
47 object_.obj());
48 }
49
50 int PhotoCapabilities::getCurrentHeight() const {
51 DCHECK(!object_.is_null());
52 return Java_PhotoCapabilities_getCurrentHeight(AttachCurrentThread(),
53 object_.obj());
54 }
55
56 int PhotoCapabilities::getMinWidth() const {
57 DCHECK(!object_.is_null());
58 return Java_PhotoCapabilities_getMinWidth(AttachCurrentThread(),
59 object_.obj());
60 }
61
62 int PhotoCapabilities::getMaxWidth() const {
63 DCHECK(!object_.is_null());
64 return Java_PhotoCapabilities_getMaxWidth(AttachCurrentThread(),
65 object_.obj());
66 }
67
68 int PhotoCapabilities::getCurrentWidth() const {
69 DCHECK(!object_.is_null());
70 return Java_PhotoCapabilities_getCurrentWidth(AttachCurrentThread(),
71 object_.obj());
72 }
73
74 int PhotoCapabilities::getMinZoom() const {
75 DCHECK(!object_.is_null());
76 return Java_PhotoCapabilities_getMinZoom(AttachCurrentThread(),
77 object_.obj());
78 }
79
80 int PhotoCapabilities::getMaxZoom() const {
81 DCHECK(!object_.is_null());
82 return Java_PhotoCapabilities_getMaxZoom(AttachCurrentThread(),
83 object_.obj());
84 }
85
86 int PhotoCapabilities::getCurrentZoom() const {
87 DCHECK(!object_.is_null());
88 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(),
89 object_.obj());
90 }
91
92 bool PhotoCapabilities::getAutoFocusInUse() const {
93 DCHECK(!object_.is_null());
94 return Java_PhotoCapabilities_getAutoFocusInUse(AttachCurrentThread(),
95 object_.obj());
96 }
97
98 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/android/photo_capabilities.h ('k') | media/capture/video/android/video_capture_device_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698