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

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

Issue 2124363003: ImageCapture: Implement focus mode for Android and Fake Video Capture Devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@s nit, dcheng@ comment and updated webexposed/global-interface-listing-expected.txt Created 4 years, 5 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 #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 24 matching lines...) Expand all
35 return Java_PhotoCapabilities_getMaxZoom(AttachCurrentThread(), 35 return Java_PhotoCapabilities_getMaxZoom(AttachCurrentThread(),
36 object_.obj()); 36 object_.obj());
37 } 37 }
38 38
39 int PhotoCapabilities::getCurrentZoom() const { 39 int PhotoCapabilities::getCurrentZoom() const {
40 DCHECK(!object_.is_null()); 40 DCHECK(!object_.is_null());
41 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(), 41 return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(),
42 object_.obj()); 42 object_.obj());
43 } 43 }
44 44
45 bool PhotoCapabilities::getAutoFocusInUse() const {
46 DCHECK(!object_.is_null());
47 return Java_PhotoCapabilities_getAutoFocusInUse(AttachCurrentThread(),
48 object_.obj());
49 }
50
45 } // namespace media 51 } // namespace media
OLDNEW
« no previous file with comments | « media/capture/video/android/photo_capabilities.h ('k') | media/capture/video/android/video_capture_device_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698