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

Unified Diff: media/screen_capture/android/screen_capture_factory_android.h

Issue 1140113002: Implement screen capture for android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/screen_capture/android/screen_capture_factory_android.h
diff --git a/media/screen_capture/android/screen_capture_factory_android.h b/media/screen_capture/android/screen_capture_factory_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..b0f6eef310d82ee35373c52de1a1c412d35a3e52
--- /dev/null
+++ b/media/screen_capture/android/screen_capture_factory_android.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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.
+
+#ifndef MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_
+#define MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_
+
+#include <jni.h>
+
+#include "base/android/scoped_java_ref.h"
+#include "media/screen_capture/android/screen_capturer_android.h"
+
+namespace media {
+
+class ScreenCaptureFactoryAndroid {
+ public:
+ static bool RegisterScreenCaptureFactory(JNIEnv* env);
+ static base::android::ScopedJavaLocalRef<jobject> createScreenCaptureAndroid(
+ jlong nativeScreenCaptureDeviceAndroid);
+
+ ScreenCaptureFactoryAndroid() {}
+ ~ScreenCaptureFactoryAndroid() {}
+
+ private:
+
+ DISALLOW_COPY_AND_ASSIGN(ScreenCaptureFactoryAndroid);};
+} // namespace media
miu 2015/05/20 03:33:27 nit: Add an extra empty line above this line.
+
+#endif // MEDIA_SCREEN_CAPTURE_ANDROID_SCREEN_CAPTURE_FACTORY_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698