Would it be possible to add methods and/or events to expose the visibility state of Menu instances? For example methods like `Menu#isVisible()` and `Menu#isHidden()` and events like "show" and "hide".
shell/browser/ui/tray_icon_cocoa.h
@class StatusItemView;
namespace electron {
class TrayIconCocoa : public TrayIcon {
 public:
  TrayIconCocoa();
  ~TrayIconCocoa() override;
  void SetImage(const gfx::Image& image) override;
  void SetPressedImage(const gfx::Image& image) override;
  void SetToolTip(const std::string& tool_tip) override;
  void SetTitle(const std::string& title) override;
  std::string GetTitle() override;
  void SetIgnoreDoubleClickEvents(bool ignore) override;
  bool GetIgnoreDoubleClickEvents() override;
  void PopUpOnUI(AtomMenuModel* menu_model);
  void PopUpContextMenu(const gfx::Point& pos,
                        AtomMenuModel* menu_model) override;
  void SetContextMenu(AtomMenuModel* menu_model) override;
  gfx::Rect GetBounds() override;
 private:
  
  base::scoped_nsobject<StatusItemView> status_item_view_;
  
  base::scoped_nsobject<AtomMenuController> menu_;
  base::WeakPtrFactory<TrayIconCocoa> weak_factory_;
  DISALLOW_COPY_AND_ASSIGN(TrayIconCocoa);
};
}  
#endif