1// Copyright 2014 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef CHROMECAST_SHELL_BROWSER_ANDROID_CAST_WINDOW_MANAGER_H_ 6#define CHROMECAST_SHELL_BROWSER_ANDROID_CAST_WINDOW_MANAGER_H_ 7 8#include <jni.h> 9 10#include "base/android/jni_android.h" 11#include "base/android/scoped_java_ref.h" 12 13class CastWindowAndroid; 14 15namespace content { 16class BrowserContext; 17} 18 19namespace chromecast { 20namespace shell { 21 22// Given a CastWindowAndroid instance, creates and returns a Java wrapper. 23base::android::ScopedJavaLocalRef<jobject> 24CreateCastWindowView(CastWindowAndroid* shell); 25 26// Closes a previously created Java wrapper. 27void CloseCastWindowView(jobject shell_wrapper); 28 29// Registers the CastWindowManager native methods. 30bool RegisterCastWindowManager(JNIEnv* env); 31 32} // namespace shell 33} // namespace chromecast 34 35#endif // CHROMECAST_SHELL_BROWSER_ANDROID_CAST_WINDOW_MANAGER_H_ 36