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 "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" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int PhotoCapabilities::getMaxZoom() const { | 73 int PhotoCapabilities::getMaxZoom() const { |
74 DCHECK(!object_.is_null()); | 74 DCHECK(!object_.is_null()); |
75 return Java_PhotoCapabilities_getMaxZoom(AttachCurrentThread(), object_); | 75 return Java_PhotoCapabilities_getMaxZoom(AttachCurrentThread(), object_); |
76 } | 76 } |
77 | 77 |
78 int PhotoCapabilities::getCurrentZoom() const { | 78 int PhotoCapabilities::getCurrentZoom() const { |
79 DCHECK(!object_.is_null()); | 79 DCHECK(!object_.is_null()); |
80 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(), object_); | 80 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(), object_); |
81 } | 81 } |
82 | 82 |
83 PhotoCapabilities::AndroidFocusMode PhotoCapabilities::getFocusMode() const { | 83 PhotoCapabilities::AndroidMeteringMode PhotoCapabilities::getFocusMode() const { |
84 DCHECK(!object_.is_null()); | 84 DCHECK(!object_.is_null()); |
85 return static_cast<AndroidFocusMode>( | 85 return static_cast<AndroidMeteringMode>( |
86 Java_PhotoCapabilities_getFocusMode(AttachCurrentThread(), object_)); | 86 Java_PhotoCapabilities_getFocusMode(AttachCurrentThread(), object_)); |
87 } | 87 } |
88 | 88 |
| 89 PhotoCapabilities::AndroidMeteringMode PhotoCapabilities::getExposureMode() |
| 90 const { |
| 91 DCHECK(!object_.is_null()); |
| 92 return static_cast<AndroidMeteringMode>( |
| 93 Java_PhotoCapabilities_getExposureMode(AttachCurrentThread(), object_)); |
| 94 } |
89 } // namespace media | 95 } // namespace media |
OLD | NEW |