| Index: android_webview/browser/renderer_host/aw_render_view_host_ext.h
|
| diff --git a/android_webview/browser/renderer_host/aw_render_view_host_ext.h b/android_webview/browser/renderer_host/aw_render_view_host_ext.h
|
| index 3007f15556effb5195a1534f2e49d577d52ff25b..371451d72f4a7316fae5372542ba73c6d45e9432 100644
|
| --- a/android_webview/browser/renderer_host/aw_render_view_host_ext.h
|
| +++ b/android_webview/browser/renderer_host/aw_render_view_host_ext.h
|
| @@ -11,6 +11,7 @@
|
| #include "base/callback_forward.h"
|
| #include "base/threading/non_thread_safe.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| +#include "ui/gfx/size.h"
|
|
|
| class GURL;
|
|
|
| @@ -25,6 +26,8 @@ class AwRenderViewHostExtClient {
|
| public:
|
| // Called when the RenderView page scale changes.
|
| virtual void OnWebLayoutPageScaleFactorChanged(float page_scale_factor) = 0;
|
| + virtual void OnWebLayoutContentsSizeChanged(
|
| + const gfx::Size& contents_size) = 0;
|
|
|
| protected:
|
| virtual ~AwRenderViewHostExtClient() {}
|
| @@ -74,6 +77,8 @@ class AwRenderViewHostExt : public content::WebContentsObserver,
|
| void SetBackgroundColor(SkColor c);
|
| void SetJsOnlineProperty(bool network_up);
|
|
|
| + void EnableContentsSizeNotifications();
|
| +
|
| private:
|
| // content::WebContentsObserver implementation.
|
| virtual void RenderViewCreated(content::RenderViewHost* view_host) OVERRIDE;
|
| @@ -86,6 +91,7 @@ class AwRenderViewHostExt : public content::WebContentsObserver,
|
| void OnDocumentHasImagesResponse(int msg_id, bool has_images);
|
| void OnUpdateHitTestData(const AwHitTestData& hit_test_data);
|
| void OnPageScaleFactorChanged(float page_scale_factor);
|
| + void OnContentsSizeChanged(const gfx::Size& contents_size);
|
|
|
| bool IsRenderViewReady() const;
|
|
|
|
|