Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ | 5 #ifndef CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ |
| 6 #define CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ | 6 #define CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| 11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
| 12 | 12 |
| 13 namespace WebKit { | |
| 14 class WebLayer; | |
| 15 } | |
| 16 | |
| 13 namespace content { | 17 namespace content { |
| 14 | 18 |
| 15 // Creates an Android specific shell view, which is our version of a shell | 19 // Creates an Android specific shell view, which is our version of a shell |
| 16 // window. This view holds the controls and content views necessary to | 20 // window. This view holds the controls and content views necessary to |
| 17 // render a shell window. Returns the java object representing the shell view. | 21 // render a shell window. Returns the java object representing the shell view. |
| 18 // object. | 22 // object. |
| 19 jobject CreateShellView(); | 23 jobject CreateShellView(); |
| 20 | 24 |
| 21 // Registers the ShellManager native methods. | 25 // Registers the ShellManager native methods. |
| 22 bool RegisterShellManager(JNIEnv* env); | 26 bool RegisterShellManager(JNIEnv* env); |
| 23 | 27 |
| 28 void ShellAttachLayer(WebKit::WebLayer& layer); | |
|
klobag.chromium
2012/08/22 07:01:19
const WebLayer&
| |
| 29 void ShellRemoveLayer(WebKit::WebLayer& layer); | |
| 24 } // namespace content | 30 } // namespace content |
| 25 | 31 |
| 26 #endif // CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ | 32 #endif // CONTENT_SHELL_ANDROID_SHELL_MANAGER_H_ |
| OLD | NEW |