1 // Copyright (c) 2012 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 CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ 6 #define CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ 7 8 #include <jni.h> 9 10 #include "base/android/jni_android.h" 11 #include "base/android/scoped_java_ref.h" 12 13 class Shell; 14 15 namespace WebKit { 16 class WebLayer; 17 } 18 19 namespace content { 20 21 // Creates an Android specific shell view, which is our version of a shell 22 // window. This view holds the controls and content views necessary to 23 // render a shell window. Returns the java object representing the shell view. 24 // object. 25 jobject CreateShellView(Shell* shell); 26 27 // Closes a previously created shell view. 28 void CloseShellView(jobject shell_view); 29 30 // Registers the ShellManager native methods. 31 bool RegisterShellManager(JNIEnv* env); 32 33 void ShellAttachLayer(WebKit::WebLayer* layer); 34 void ShellRemoveLayer(WebKit::WebLayer* layer); 35 } // namespace content 36 37 #endif // CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ 38