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

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

Issue 2199913003: media: Remove unneeded RegisterNatives() call (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: rebase 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
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 #include "media/capture/video/android/photo_capabilities.h" 5 #include "media/capture/video/android/photo_capabilities.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "jni/PhotoCapabilities_jni.h" 10 #include "jni/PhotoCapabilities_jni.h"
11 11
12 using base::android::AttachCurrentThread; 12 using base::android::AttachCurrentThread;
13 13
14 namespace media { 14 namespace media {
15 15
16 PhotoCapabilities::PhotoCapabilities( 16 PhotoCapabilities::PhotoCapabilities(
17 base::android::ScopedJavaLocalRef<jobject> object) 17 base::android::ScopedJavaLocalRef<jobject> object)
18 : object_(object) {} 18 : object_(object) {}
19 19
20 PhotoCapabilities::~PhotoCapabilities() {} 20 PhotoCapabilities::~PhotoCapabilities() {}
21 21
22 // static
23 bool PhotoCapabilities::RegisterPhotoCapabilities(JNIEnv* env) {
24 return RegisterNativesImpl(env);
25 }
26
27 int PhotoCapabilities::getMinIso() const { 22 int PhotoCapabilities::getMinIso() const {
28 DCHECK(!object_.is_null()); 23 DCHECK(!object_.is_null());
29 return Java_PhotoCapabilities_getMinIso(AttachCurrentThread(), object_.obj()); 24 return Java_PhotoCapabilities_getMinIso(AttachCurrentThread(), object_.obj());
30 } 25 }
31 26
32 int PhotoCapabilities::getMaxIso() const { 27 int PhotoCapabilities::getMaxIso() const {
33 DCHECK(!object_.is_null()); 28 DCHECK(!object_.is_null());
34 return Java_PhotoCapabilities_getMaxIso(AttachCurrentThread(), object_.obj()); 29 return Java_PhotoCapabilities_getMaxIso(AttachCurrentThread(), object_.obj());
35 } 30 }
36 31
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 object_.obj()); 89 object_.obj());
95 } 90 }
96 91
97 bool PhotoCapabilities::getAutoFocusInUse() const { 92 bool PhotoCapabilities::getAutoFocusInUse() const {
98 DCHECK(!object_.is_null()); 93 DCHECK(!object_.is_null());
99 return Java_PhotoCapabilities_getAutoFocusInUse(AttachCurrentThread(), 94 return Java_PhotoCapabilities_getAutoFocusInUse(AttachCurrentThread(),
100 object_.obj()); 95 object_.obj());
101 } 96 }
102 97
103 } // namespace media 98 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/android/photo_capabilities.h ('k') | media/capture/video/android/video_capture_device_factory_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698