osx: Make draggable region work for window with hidden titlebar
This commit is contained in:
parent
6f944ad49b
commit
7884a2319c
3 changed files with 20 additions and 2 deletions
|
@ -219,6 +219,13 @@ class NativeWindow : public content::WebContentsObserver,
|
|||
bool enable_larger_than_screen() const { return enable_larger_than_screen_; }
|
||||
gfx::ImageSkia icon() const { return icon_; }
|
||||
|
||||
bool force_using_draggable_region() const {
|
||||
return force_using_draggable_region_;
|
||||
}
|
||||
void set_force_using_draggable_region(bool force) {
|
||||
force_using_draggable_region_ = true;
|
||||
}
|
||||
|
||||
void set_has_dialog_attached(bool has_dialog_attached) {
|
||||
has_dialog_attached_ = has_dialog_attached;
|
||||
}
|
||||
|
@ -257,6 +264,9 @@ class NativeWindow : public content::WebContentsObserver,
|
|||
// Whether window has standard frame.
|
||||
bool has_frame_;
|
||||
|
||||
// Force the window to be aware of draggable regions.
|
||||
bool force_using_draggable_region_;
|
||||
|
||||
// Whether window is transparent.
|
||||
bool transparent_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue