Add support for BrowserView autoresizing

This commit is contained in:
Birunthan Mohanathas 2017-04-12 14:40:31 +03:00
parent 638eae1080
commit 06fcf2c19d
9 changed files with 121 additions and 4 deletions

View file

@ -22,6 +22,11 @@ namespace api {
class WebContents;
}
enum AutoResizeFlags {
kAutoResizeWidth = 0x1,
kAutoResizeHeight = 0x2,
};
class NativeBrowserView {
public:
virtual ~NativeBrowserView();
@ -33,6 +38,7 @@ class NativeBrowserView {
return web_contents_view_;
}
virtual void SetAutoResizeFlags(uint8_t flags) = 0;
virtual void SetBounds(const gfx::Rect& bounds) = 0;
virtual void SetBackgroundColor(SkColor color) = 0;