fix: ensure BrowserView
bounds are always relative to window (#39605)
fix: ensure BrowserView bounds are always relative to window
This commit is contained in:
parent
522bba3dc6
commit
a8999bc529
4 changed files with 70 additions and 12 deletions
|
@ -66,6 +66,9 @@ class BrowserView : public gin::Wrappable<BrowserView>,
|
|||
BrowserView(const BrowserView&) = delete;
|
||||
BrowserView& operator=(const BrowserView&) = delete;
|
||||
|
||||
gfx::Rect GetBounds();
|
||||
void SetBounds(const gfx::Rect& bounds);
|
||||
|
||||
protected:
|
||||
BrowserView(gin::Arguments* args, const gin_helper::Dictionary& options);
|
||||
~BrowserView() override;
|
||||
|
@ -78,8 +81,6 @@ class BrowserView : public gin::Wrappable<BrowserView>,
|
|||
|
||||
private:
|
||||
void SetAutoResize(AutoResizeFlags flags);
|
||||
void SetBounds(const gfx::Rect& bounds);
|
||||
gfx::Rect GetBounds();
|
||||
void SetBackgroundColor(const std::string& color_name);
|
||||
v8::Local<v8::Value> GetWebContents(v8::Isolate*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue