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.
5 #ifndef CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_
6 #define CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_
10 #include "base/android/jni_android.h"
11 #include "base/android/scoped_java_ref.h"
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.
25 base::android::ScopedJavaLocalRef
<jobject
> CreateShellView(Shell
* shell
);
27 // Removes a previously created shell view.
28 void RemoveShellView(jobject shell_view
);
30 // Registers the ShellManager native methods.
31 bool RegisterShellManager(JNIEnv
* env
);
33 void ShellAttachLayer(blink::WebLayer
* layer
);
34 void ShellRemoveLayer(blink::WebLayer
* layer
);
35 } // namespace content
37 #endif // CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_