summaryrefslogtreecommitdiffstats
path: root/content/shell/shell.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell.h')
-rw-r--r--content/shell/shell.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/shell/shell.h b/content/shell/shell.h
index e8d504c..bc43553 100644
--- a/content/shell/shell.h
+++ b/content/shell/shell.h
@@ -25,6 +25,9 @@
typedef struct _GtkToolItem GtkToolItem;
#elif defined(OS_ANDROID)
#include "base/android/scoped_java_ref.h"
+namespace content {
+class ContentViewLayerRenderer;
+}
#elif defined(USE_AURA)
namespace views {
class Widget;
@@ -95,6 +98,11 @@ class Shell : public WebContentsDelegate,
#elif defined(OS_ANDROID)
// Registers the Android Java to native methods.
static bool Register(JNIEnv* env);
+ // Called by the ShellManager to specify the object that should be notified of
+ // layer changes.
+ // Note that |content_view_layer_renderer| is owned by the ShellManager.
+ void SetContentViewLayerRenderer(
+ ContentViewLayerRenderer* content_view_layer_renderer);
#endif
// WebContentsDelegate
@@ -220,6 +228,9 @@ class Shell : public WebContentsDelegate,
int content_height_;
#elif defined(OS_ANDROID)
base::android::ScopedJavaGlobalRef<jobject> java_object_;
+ // The ContentViewLayerRenderer that should be notified of compositing layer
+ // changes. Global so guaranteed to outlive shell.
+ ContentViewLayerRenderer* content_view_layer_renderer_;
#elif defined(USE_AURA)
static aura::client::StackingClient* stacking_client_;
static views::ViewsDelegate* views_delegate_;