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

Unified Diff: media/capture/video/android/photo_capabilities.cc

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: media/capture/video/android/photo_capabilities.cc
diff --git a/media/capture/video/android/photo_capabilities.cc b/media/capture/video/android/photo_capabilities.cc
deleted file mode 100644
index 2ce70f0dcaab98f936b8943220d74ef0acc5ae4d..0000000000000000000000000000000000000000
--- a/media/capture/video/android/photo_capabilities.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "media/capture/video/android/photo_capabilities.h"
-
-#include "base/android/jni_android.h"
-#include "base/android/jni_array.h"
-#include "base/android/jni_string.h"
-#include "jni/PhotoCapabilities_jni.h"
-
-using base::android::AttachCurrentThread;
-
-namespace media {
-
-PhotoCapabilities::PhotoCapabilities(
- base::android::ScopedJavaLocalRef<jobject> object)
- : object_(object) {}
-
-PhotoCapabilities::~PhotoCapabilities() {}
-
-// static
-bool PhotoCapabilities::RegisterPhotoCapabilities(JNIEnv* env) {
- return RegisterNativesImpl(env);
-}
-
-int PhotoCapabilities::getMinZoom() const {
- DCHECK(!object_.is_null());
- return Java_PhotoCapabilities_getMinZoom(AttachCurrentThread(),
- object_.obj());
-}
-
-int PhotoCapabilities::getMaxZoom() const {
- DCHECK(!object_.is_null());
- return Java_PhotoCapabilities_getMaxZoom(AttachCurrentThread(),
- object_.obj());
-}
-
-int PhotoCapabilities::getCurrentZoom() const {
- DCHECK(!object_.is_null());
- return Java_PhotoCapabilities_getCurrentZoom(AttachCurrentThread(),
- object_.obj());
-}
-
-} // namespace media
« no previous file with comments | « media/capture/video/android/photo_capabilities.h ('k') | media/capture/video/android/video_capture_device_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698