15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include <jni.h>
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/android/jni_android.h"
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/android/scoped_java_ref.h"
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)class Shell;
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)namespace blink {
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)class WebLayer;
175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace content {
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Creates an Android specific shell view, which is our version of a shell
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// window.  This view holds the controls and content views necessary to
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// render a shell window.  Returns the java object representing the shell view.
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// object.
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)jobject CreateShellView(Shell* shell);
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Removes a previously created shell view.
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)void RemoveShellView(jobject shell_view);
2990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Registers the ShellManager native methods.
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)bool RegisterShellManager(JNIEnv* env);
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
33f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)void ShellAttachLayer(blink::WebLayer* layer);
34f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)void ShellRemoveLayer(blink::WebLayer* layer);
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace content
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_
38