Add location and keyboard modifiers to tray mouse events
This commit is contained in:
parent
2406d6c279
commit
70544440f9
7 changed files with 37 additions and 16 deletions
|
@ -122,12 +122,12 @@ void Tray::OnDropText(const std::string& text) {
|
|||
Emit("drop-text", text);
|
||||
}
|
||||
|
||||
void Tray::OnMouseEntered() {
|
||||
Emit("mouse-enter");
|
||||
void Tray::OnMouseEntered(const gfx::Point& location, int modifiers) {
|
||||
EmitWithFlags("mouse-enter", modifiers, location);
|
||||
}
|
||||
|
||||
void Tray::OnMouseExited() {
|
||||
Emit("mouse-leave");
|
||||
void Tray::OnMouseExited(const gfx::Point& location, int modifiers) {
|
||||
EmitWithFlags("mouse-leave", modifiers, location);
|
||||
}
|
||||
|
||||
void Tray::OnDragEntered() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue