| OLD | NEW |
| 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 "device/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 device { |
| 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 int PhotoCapabilities::getMinIso() const { | 22 int PhotoCapabilities::getMinIso() const { |
| 23 DCHECK(!object_.is_null()); | 23 DCHECK(!object_.is_null()); |
| 24 return Java_PhotoCapabilities_getMinIso(AttachCurrentThread(), object_.obj()); | 24 return Java_PhotoCapabilities_getMinIso(AttachCurrentThread(), object_.obj()); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(), | 88 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(), |
| 89 object_.obj()); | 89 object_.obj()); |
| 90 } | 90 } |
| 91 | 91 |
| 92 bool PhotoCapabilities::getAutoFocusInUse() const { | 92 bool PhotoCapabilities::getAutoFocusInUse() const { |
| 93 DCHECK(!object_.is_null()); | 93 DCHECK(!object_.is_null()); |
| 94 return Java_PhotoCapabilities_getAutoFocusInUse(AttachCurrentThread(), | 94 return Java_PhotoCapabilities_getAutoFocusInUse(AttachCurrentThread(), |
| 95 object_.obj()); | 95 object_.obj()); |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace media | 98 } // namespace device |
| OLD | NEW |