feat: add support for preventing the system context menu (#25795)

This commit is contained in:
Samuel Attard 2020-10-08 15:45:05 -07:00 committed by GitHub
parent 042d25e926
commit 6d5cf02abd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 0 deletions

View file

@ -92,6 +92,7 @@ class NativeWindowObserver : public base::CheckedObserver {
virtual void OnTouchBarItemResult(const std::string& item_id,
const base::DictionaryValue& details) {}
virtual void OnNewWindowForTab() {}
virtual void OnSystemContextMenu(int x, int y, bool* prevent_default) {}
// Called when window message received
#if defined(OS_WIN)