tray_icon_observer.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ATOM_BROWSER_UI_TRAY_ICON_OBSERVER_H_
  5. #define ATOM_BROWSER_UI_TRAY_ICON_OBSERVER_H_
  6. #include <string>
  7. #include <vector>
  8. #include "base/observer_list_types.h"
  9. namespace gfx {
  10. class Rect;
  11. class Point;
  12. } // namespace gfx
  13. namespace atom {
  14. class TrayIconObserver : public base::CheckedObserver {
  15. public:
  16. virtual void OnClicked(const gfx::Rect& bounds,
  17. const gfx::Point& location,
  18. int modifiers) {}
  19. virtual void OnDoubleClicked(const gfx::Rect& bounds, int modifiers) {}
  20. virtual void OnBalloonShow() {}
  21. virtual void OnBalloonClicked() {}
  22. virtual void OnBalloonClosed() {}
  23. virtual void OnRightClicked(const gfx::Rect& bounds, int modifiers) {}
  24. virtual void OnDrop() {}
  25. virtual void OnDropFiles(const std::vector<std::string>& files) {}
  26. virtual void OnDropText(const std::string& text) {}
  27. virtual void OnDragEntered() {}
  28. virtual void OnDragExited() {}
  29. virtual void OnDragEnded() {}
  30. virtual void OnMouseEntered(const gfx::Point& location, int modifiers) {}
  31. virtual void OnMouseExited(const gfx::Point& location, int modifiers) {}
  32. virtual void OnMouseMoved(const gfx::Point& location, int modifiers) {}
  33. protected:
  34. ~TrayIconObserver() override {}
  35. };
  36. } // namespace atom
  37. #endif // ATOM_BROWSER_UI_TRAY_ICON_OBSERVER_H_