| Index: blimp/client/core/contents/blimp_contents_impl.h
|
| diff --git a/blimp/client/core/contents/blimp_contents_impl.h b/blimp/client/core/contents/blimp_contents_impl.h
|
| index 1110ccde6761bcdddd12dd9fc5bad20774843d16..6108014be959c04e39d99015bcd20abc0537cb68 100644
|
| --- a/blimp/client/core/contents/blimp_contents_impl.h
|
| +++ b/blimp/client/core/contents/blimp_contents_impl.h
|
| @@ -10,6 +10,7 @@
|
| #include "blimp/client/core/contents/blimp_navigation_controller_delegate.h"
|
| #include "blimp/client/core/contents/blimp_navigation_controller_impl.h"
|
| #include "blimp/client/public/contents/blimp_contents.h"
|
| +#include "ui/gfx/geometry/size.h"
|
| #include "url/gurl.h"
|
|
|
| #if defined(OS_ANDROID)
|
| @@ -25,11 +26,12 @@ class BlimpContentsImplAndroid;
|
|
|
| class BlimpContentsObserver;
|
| class BlimpNavigationController;
|
| +class TabControlFeature;
|
|
|
| class BlimpContentsImpl : public BlimpContents,
|
| public BlimpNavigationControllerDelegate {
|
| public:
|
| - explicit BlimpContentsImpl(int id);
|
| + explicit BlimpContentsImpl(int id, TabControlFeature* tab_control_feature);
|
| ~BlimpContentsImpl() override;
|
|
|
| #if defined(OS_ANDROID)
|
| @@ -48,6 +50,13 @@ class BlimpContentsImpl : public BlimpContents,
|
| // BlimpNavigationControllerDelegate implementation.
|
| void OnNavigationStateChanged() override;
|
|
|
| + // Pushes the size and scale information to the engine, which will affect the
|
| + // web content display area for all tabs.
|
| + void SetSizeAndScale(const gfx::Size& size, float device_pixel_ratio);
|
| +
|
| + // This method is added for testing purpose.
|
| + TabControlFeature* tab_control_feature() { return tab_control_feature_; }
|
| +
|
| int id() { return id_; }
|
|
|
| private:
|
| @@ -61,6 +70,10 @@ class BlimpContentsImpl : public BlimpContents,
|
| // BlimpContentsManager to control the life time of the its observer.
|
| int id_;
|
|
|
| + // The tab control feature through which the BlimpContentsImpl is able to
|
| + // set size and scale.
|
| + TabControlFeature* tab_control_feature_ = nullptr;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl);
|
| };
|
|
|
|
|