| OLD | NEW |
| (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 #ifndef MEDIA_VIDEO_CAPTURE_ANDROID_PHOTO_CAPABILITIES_H_ | |
| 6 #define MEDIA_VIDEO_CAPTURE_ANDROID_PHOTO_CAPABILITIES_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "base/android/scoped_java_ref.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 class PhotoCapabilities { | |
| 16 public: | |
| 17 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object); | |
| 18 ~PhotoCapabilities(); | |
| 19 | |
| 20 static bool RegisterPhotoCapabilities(JNIEnv* env); | |
| 21 | |
| 22 int getMinZoom() const; | |
| 23 int getMaxZoom() const; | |
| 24 int getCurrentZoom() const; | |
| 25 | |
| 26 private: | |
| 27 const base::android::ScopedJavaLocalRef<jobject> object_; | |
| 28 }; | |
| 29 | |
| 30 } // namespace media | |
| 31 | |
| 32 #endif // MEDIA_VIDEO_CAPTURE_ANDROID_PHOTO_CAPABILITIES_H_ | |
| OLD | NEW |