electron/shell/browser/ui/tray_icon_observer.h

47 lines
1.4 KiB
C
Raw Normal View History

// Copyright (c) 2014 GitHub, Inc.
2014-06-02 11:08:29 +08:00
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
2019-06-19 13:56:58 -07:00
#ifndef SHELL_BROWSER_UI_TRAY_ICON_OBSERVER_H_
#define SHELL_BROWSER_UI_TRAY_ICON_OBSERVER_H_
2014-06-02 11:08:29 +08:00
#include <string>
#include <vector>
#include "base/observer_list_types.h"
namespace gfx {
2015-05-04 11:43:05 +08:00
class Rect;
class Point;
2018-04-17 21:44:10 -04:00
} // namespace gfx
namespace electron {
2014-06-02 11:08:29 +08:00
class TrayIconObserver : public base::CheckedObserver {
2014-06-02 11:08:29 +08:00
public:
2017-10-05 11:49:26 +09:00
virtual void OnClicked(const gfx::Rect& bounds,
const gfx::Point& location,
int modifiers) {}
virtual void OnDoubleClicked(const gfx::Rect& bounds, int modifiers) {}
virtual void OnBalloonShow() {}
virtual void OnBalloonClicked() {}
virtual void OnBalloonClosed() {}
virtual void OnRightClicked(const gfx::Rect& bounds, int modifiers) {}
2015-11-10 10:02:50 -06:00
virtual void OnDrop() {}
virtual void OnDropFiles(const std::vector<std::string>& files) {}
2016-07-14 18:21:39 +01:00
virtual void OnDropText(const std::string& text) {}
virtual void OnDragEntered() {}
virtual void OnDragExited() {}
2015-11-10 10:02:50 -06:00
virtual void OnDragEnded() {}
virtual void OnMouseEntered(const gfx::Point& location, int modifiers) {}
virtual void OnMouseExited(const gfx::Point& location, int modifiers) {}
virtual void OnMouseMoved(const gfx::Point& location, int modifiers) {}
2014-06-02 11:08:29 +08:00
protected:
~TrayIconObserver() override {}
2014-06-02 11:08:29 +08:00
};
} // namespace electron
2014-06-02 11:08:29 +08:00
2019-06-19 13:56:58 -07:00
#endif // SHELL_BROWSER_UI_TRAY_ICON_OBSERVER_H_