feat: add BrowserWindow.set/getWindowButtonPosition APIs (#37094)
This commit is contained in:
parent
0a5e634736
commit
0de1012280
11 changed files with 188 additions and 26 deletions
|
@ -1474,7 +1474,7 @@ bool NativeWindowMac::GetWindowButtonVisibility() const {
|
|||
![window_ standardWindowButton:NSWindowCloseButton].hidden;
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetTrafficLightPosition(
|
||||
void NativeWindowMac::SetWindowButtonPosition(
|
||||
absl::optional<gfx::Point> position) {
|
||||
traffic_light_position_ = std::move(position);
|
||||
if (buttons_proxy_) {
|
||||
|
@ -1483,7 +1483,7 @@ void NativeWindowMac::SetTrafficLightPosition(
|
|||
}
|
||||
}
|
||||
|
||||
absl::optional<gfx::Point> NativeWindowMac::GetTrafficLightPosition() const {
|
||||
absl::optional<gfx::Point> NativeWindowMac::GetWindowButtonPosition() const {
|
||||
return traffic_light_position_;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue