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

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

Issue 2922643002: Update the button visibility when mouse enters or exits from notification surface window (Closed)
Patch Set: early return 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_notification_content_view.cc
diff --git a/ui/arc/notification/arc_notification_content_view.cc b/ui/arc/notification/arc_notification_content_view.cc
index f7b23554c056e1e1c37848cefa783dbf0807ecf5..6ea6011d186870031f12aa1c3be791770fb74c76 100644
--- a/ui/arc/notification/arc_notification_content_view.cc
+++ b/ui/arc/notification/arc_notification_content_view.cc
@@ -84,6 +84,12 @@ class ArcNotificationContentView::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 ||
located_event->IsMouseWheelEvent()) {
widget->OnMouseEvent(located_event->AsMouseEvent());
« 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