feat: add support for preventing the system context menu (#25795)
This commit is contained in:
parent
042d25e926
commit
6d5cf02abd
7 changed files with 36 additions and 0 deletions
|
@ -579,6 +579,13 @@ void NativeWindow::NotifyNewWindowForTab() {
|
|||
observer.OnNewWindowForTab();
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowSystemContextMenu(int x,
|
||||
int y,
|
||||
bool* prevent_default) {
|
||||
for (NativeWindowObserver& observer : observers_)
|
||||
observer.OnSystemContextMenu(x, y, prevent_default);
|
||||
}
|
||||
|
||||
#if defined(OS_WIN)
|
||||
void NativeWindow::NotifyWindowMessage(UINT message,
|
||||
WPARAM w_param,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue