Chromium Code Reviews| 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 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ |
| 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ | 6 #define MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 | 12 |
| 13 namespace media { | 13 namespace media { |
| 14 | 14 |
| 15 class PhotoCapabilities { | 15 class PhotoCapabilities { |
| 16 public: | 16 public: |
| 17 // Blabla? | |
|
Reilly Grant (use Gerrit)
2016/08/15 20:28:18
?
mcasas
2016/08/15 21:08:54
Oops, done.
| |
| 18 // A Java counterpart will be generated for this enum. | |
| 19 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.media | |
| 20 enum AndroidFocusMode { | |
| 21 ANDROID_FOCUS_MODE_UNAVAILABLE, | |
| 22 ANDROID_FOCUS_MODE_FIXED, | |
| 23 ANDROID_FOCUS_MODE_SINGLE_SHOT, | |
| 24 ANDROID_FOCUS_MODE_CONTINUOUS, | |
| 25 }; | |
| 26 | |
| 17 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object); | 27 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object); |
| 18 ~PhotoCapabilities(); | 28 ~PhotoCapabilities(); |
| 19 | 29 |
| 20 int getMinIso() const; | 30 int getMinIso() const; |
| 21 int getMaxIso() const; | 31 int getMaxIso() const; |
| 22 int getCurrentIso() const; | 32 int getCurrentIso() const; |
| 23 int getMinHeight() const; | 33 int getMinHeight() const; |
| 24 int getMaxHeight() const; | 34 int getMaxHeight() const; |
| 25 int getCurrentHeight() const; | 35 int getCurrentHeight() const; |
| 26 int getMinWidth() const; | 36 int getMinWidth() const; |
| 27 int getMaxWidth() const; | 37 int getMaxWidth() const; |
| 28 int getCurrentWidth() const; | 38 int getCurrentWidth() const; |
| 29 int getMinZoom() const; | 39 int getMinZoom() const; |
| 30 int getMaxZoom() const; | 40 int getMaxZoom() const; |
| 31 int getCurrentZoom() const; | 41 int getCurrentZoom() const; |
| 32 bool getAutoFocusInUse() const; | 42 AndroidFocusMode getFocusMode() const; |
| 33 | 43 |
| 34 private: | 44 private: |
| 35 const base::android::ScopedJavaLocalRef<jobject> object_; | 45 const base::android::ScopedJavaLocalRef<jobject> object_; |
| 36 }; | 46 }; |
| 37 | 47 |
| 38 } // namespace media | 48 } // namespace media |
| 39 | 49 |
| 40 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ | 50 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ |
| OLD | NEW |