feat: add rotate gesture for macOS (#19294)

* feat: add rotate gesture for macOS

* docs: document change

* refactor: rename 'rotate' -> 'rotate-gesture'

* refactor: const float -> float

* forgot one 🤦‍♂️
This commit is contained in:
Erick Zhao 2019-07-23 12:42:26 -07:00 committed by Charles Kerr
parent 2e3d757f46
commit 2c383b51c1
7 changed files with 29 additions and 0 deletions

View file

@ -72,6 +72,10 @@ bool ScopedDisableResize::disable_resize_ = false;
}
}
- (void)rotateWithEvent:(NSEvent*)event {
shell_->NotifyWindowRotateGesture(event.rotation);
}
- (NSRect)contentRectForFrameRect:(NSRect)frameRect {
if (shell_->has_frame())
return [super contentRectForFrameRect:frameRect];