feat: include resize edge with will-resize event (#29199)
* feat: emit resize edge with will-resize event fix: wparam type fix: private member usage on mac docs: will-resize event edge option refactor: 'info' -> 'details' for better type gen * Update docs/api/browser-window.md Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com> * Update docs/api/browser-window.md Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
This commit is contained in:
parent
750a762bf0
commit
f9d2a7077e
11 changed files with 104 additions and 4 deletions
|
@ -8,6 +8,7 @@
|
|||
#include <Quartz/Quartz.h>
|
||||
|
||||
#include "components/remote_cocoa/app_shim/views_nswindow_delegate.h"
|
||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
|
||||
namespace electron {
|
||||
class NativeWindowMac;
|
||||
|
@ -20,6 +21,11 @@ class NativeWindowMac;
|
|||
bool is_zooming_;
|
||||
int level_;
|
||||
bool is_resizable_;
|
||||
|
||||
// Only valid during a live resize.
|
||||
// Used to keep track of whether a resize is happening horizontally or
|
||||
// vertically, even if physically the user is resizing in both directions.
|
||||
absl::optional<bool> resizingHorizontally_;
|
||||
}
|
||||
- (id)initWithShell:(electron::NativeWindowMac*)shell;
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue