Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: ui/arc/notification/arc_custom_notification_view.cc

Issue 2939673002: Update the button visibility when mouse enters or exits from notification surface window (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_custom_notification_view.cc
diff --git a/ui/arc/notification/arc_custom_notification_view.cc b/ui/arc/notification/arc_custom_notification_view.cc
index 6f145f732325bb3e899bfad4c27c609e6302f36c..2ea6ffef8f6abb476e9845e13c4bb5a582968c62 100644
--- a/ui/arc/notification/arc_custom_notification_view.cc
+++ b/ui/arc/notification/arc_custom_notification_view.cc
@@ -85,6 +85,12 @@ class ArcCustomNotificationView::EventForwarder : public ui::EventHandler {
ui::LocatedEvent* located_event = event->AsLocatedEvent();
located_event->target()->ConvertEventToTarget(widget->GetNativeWindow(),
located_event);
+ if (located_event->type() == ui::ET_MOUSE_ENTERED ||
+ located_event->type() == ui::ET_MOUSE_EXITED) {
+ owner_->UpdateControlButtonsVisibility();
+ return;
+ }
+
if (located_event->type() == ui::ET_MOUSE_MOVED) {
widget->OnMouseEvent(located_event->AsMouseEvent());
} else if (located_event->IsScrollEvent()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698