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

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

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 #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 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object); 17 explicit PhotoCapabilities(base::android::ScopedJavaLocalRef<jobject> object);
18 ~PhotoCapabilities(); 18 ~PhotoCapabilities();
19 19
20 static bool RegisterPhotoCapabilities(JNIEnv* env);
21
22 int getMinIso() const; 20 int getMinIso() const;
23 int getMaxIso() const; 21 int getMaxIso() const;
24 int getCurrentIso() const; 22 int getCurrentIso() const;
25 int getMinHeight() const; 23 int getMinHeight() const;
26 int getMaxHeight() const; 24 int getMaxHeight() const;
27 int getCurrentHeight() const; 25 int getCurrentHeight() const;
28 int getMinWidth() const; 26 int getMinWidth() const;
29 int getMaxWidth() const; 27 int getMaxWidth() const;
30 int getCurrentWidth() const; 28 int getCurrentWidth() const;
31 int getMinZoom() const; 29 int getMinZoom() const;
32 int getMaxZoom() const; 30 int getMaxZoom() const;
33 int getCurrentZoom() const; 31 int getCurrentZoom() const;
34 bool getAutoFocusInUse() const; 32 bool getAutoFocusInUse() const;
35 33
36 private: 34 private:
37 const base::android::ScopedJavaLocalRef<jobject> object_; 35 const base::android::ScopedJavaLocalRef<jobject> object_;
38 }; 36 };
39 37
40 } // namespace media 38 } // namespace media
41 39
42 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_ 40 #endif // MEDIA_CAPTURE_VIDEO_ANDROID_PHOTO_CAPABILITIES_H_
OLDNEW
« no previous file with comments | « media/capture/video/android/capture_jni_registrar.cc ('k') | media/capture/video/android/photo_capabilities.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698