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

Unified Diff: media/capture/content/android/screen_capture_jni_registrar.cc

Issue 1917023003: ScreenCapture for Android phase1, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add dependency Created 4 years, 6 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/content/android/screen_capture_jni_registrar.cc
diff --git a/media/capture/content/android/screen_capture_jni_registrar.cc b/media/capture/content/android/screen_capture_jni_registrar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9220777ca95f16ce49828a81a793e679c0dc37a8
--- /dev/null
+++ b/media/capture/content/android/screen_capture_jni_registrar.cc
@@ -0,0 +1,24 @@
+// 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/content/android/screen_capture_jni_registrar.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_registrar.h"
+#include "base/macros.h"
+#include "media/capture/content/android/screen_capture_machine_android.h"
+
+namespace media {
+
+static const base::android::RegistrationMethod kCaptureRegisteredMethods[] = {
+ {"ScreenCaptureMachine",
+ ScreenCaptureMachineAndroid::RegisterScreenCaptureMachine},
+};
+
+bool RegisterScreenCaptureJni(JNIEnv* env) {
+ return base::android::RegisterNativeMethods(
+ env, kCaptureRegisteredMethods, arraysize(kCaptureRegisteredMethods));
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698