add getter for ignoreDoubleClickEvents field

This commit is contained in:
mikeykhalil 2018-05-03 00:43:46 -07:00
parent 208374afa4
commit 94ffd4bfc0
6 changed files with 27 additions and 7 deletions

View file

@ -51,9 +51,12 @@ class TrayIcon {
};
virtual void SetHighlightMode(HighlightMode mode);
// Sets the flag which determines whether to ignore double click events. This
// only works on macOS.
virtual void SetIgnoreDoubleClickEvents(bool ignore);
// Setter and getter for the flag which determines whether to ignore double
// click events. These only work on macOS.
#if defined(OS_MACOSX)
virtual void SetIgnoreDoubleClickEvents(bool ignore) = 0;
virtual bool GetIgnoreDoubleClickEvents() = 0;
#endif
// Displays a notification balloon with the specified contents.
// Depending on the platform it might not appear by the icon tray.