Chromium Code Reviews| Index: content/browser/android/content_view_core_impl.h |
| diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h |
| index 6b83da70b1c78d68412f74d33b839d21f87ab99e..a252fce9243b23a2c4704b6b9cd2868af0a62c9a 100644 |
| --- a/content/browser/android/content_view_core_impl.h |
| +++ b/content/browser/android/content_view_core_impl.h |
| @@ -32,6 +32,7 @@ class WindowAndroid; |
| namespace content { |
| class RenderWidgetHostViewAndroid; |
| +class Compositor; |
| struct MenuItem; |
| // TODO(jrg): this is a shell. Upstream the rest. |
| @@ -303,6 +304,8 @@ class ContentViewCoreImpl : public ContentViewCore, |
| void AddBeginFrameSubscriber(); |
| void RemoveBeginFrameSubscriber(); |
| void SetNeedsAnimate(); |
| + void SetCompositor(Compositor* compositor); |
|
no sievers
2013/10/16 23:34:23
We actually need a public content API for this to
powei
2013/10/19 00:05:18
Done.
|
| + Compositor* GetCompositor() const { return compositor_; } |
| private: |
| class ContentViewUserData; |
| @@ -383,6 +386,10 @@ class ContentViewCoreImpl : public ContentViewCore, |
| // will be sent to Renderer once it is ready. |
| int device_orientation_; |
| + // ContentViewCore does not own the compositor. This reference is kept to |
| + // allow for adding observers to the compositor. |
| + Compositor* compositor_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| }; |