| 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_
|
|
|