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

Unified Diff: chromecast/shell/browser/android/cast_window_manager.h

Issue 490603002: Chromecast: initial checkin of Android-based cast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added android DEPS (git cl presubmit doesn't check Java DEPS?) Created 6 years, 3 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: chromecast/shell/browser/android/cast_window_manager.h
diff --git a/chromecast/shell/browser/android/cast_window_manager.h b/chromecast/shell/browser/android/cast_window_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a811a9167c5aa4fd849c15b8dc5eaba72c7a571
--- /dev/null
+++ b/chromecast/shell/browser/android/cast_window_manager.h
@@ -0,0 +1,39 @@
+// Copyright 2014 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 CHROMECAST_SHELL_BROWSER_ANDROID_CAST_WINDOW_MANAGER_H_
+#define CHROMECAST_SHELL_BROWSER_ANDROID_CAST_WINDOW_MANAGER_H_
+
+#include <jni.h>
+
+#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
+
+class CastWindowAndroid;
+
+namespace content {
+class BrowserContext;
+}
+
+namespace chromecast {
+namespace shell {
+
+// Sets the browser context to use for creating windows. Must be invoked before
+// a LaunchCastWindow call.
+void SetBrowserContextAndroid(content::BrowserContext* browser_context);
+
+// Given a CastWindowAndroid instance, creates and returns a Java wrapper.
+base::android::ScopedJavaLocalRef<jobject>
+CreateCastWindowView(CastWindowAndroid* shell);
+
+// Closes a previously created Java wrapper.
+void CloseCastWindowView(jobject shell_wrapper);
+
+// Registers the CastWindowManager native methods.
+bool RegisterCastWindowManager(JNIEnv* env);
+
+} // namespace shell
+} // namespace chromecast
+
+#endif // CHROMECAST_SHELL_BROWSER_ANDROID_CAST_WINDOW_MANAGER_H_
« no previous file with comments | « chromecast/shell/browser/android/cast_window_android.cc ('k') | chromecast/shell/browser/android/cast_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698