tray_icon_observer.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. namespace gfx {
  9. class Rect;
  10. class Point;
  11. } // namespace gfx
  12. namespace atom {
  13. class TrayIconObserver {
  14. public:
  15. virtual void OnClicked(const gfx::Rect& bounds,
  16. const gfx::Point& location,
  17. int modifiers) {}
  18. virtual void OnDoubleClicked(const gfx::Rect& bounds, int modifiers) {}
  19. virtual void OnBalloonShow() {}
  20. virtual void OnBalloonClicked() {}
  21. virtual void OnBalloonClosed() {}
  22. virtual void OnRightClicked(const gfx::Rect& bounds, int modifiers) {}
  23. virtual void OnDrop() {}
  24. virtual void OnDropFiles(const std::vector<std::string>& files) {}
  25. virtual void OnDropText(const std::string& text) {}
  26. virtual void OnDragEntered() {}
  27. virtual void OnDragExited() {}
  28. virtual void OnDragEnded() {}
  29. virtual void OnMouseEntered(const gfx::Point& location, int modifiers) {}
  30. virtual void OnMouseExited(const gfx::Point& location, int modifiers) {}
  31. virtual void OnMouseMoved(const gfx::Point& location, int modifiers) {}
  32. protected:
  33. virtual ~TrayIconObserver() {}
  34. };
  35. } // namespace atom
  36. #endif // ATOM_BROWSER_UI_TRAY_ICON_OBSERVER_H_