Commit 3510f83d authored by xdai's avatar xdai Committed by Commit bot

Allow tray_event_filter to handle popup notifications from message center.

BUG=369617

Review URL: https://codereview.chromium.org/661423004

Cr-Commit-Position: refs/heads/master@{#301145}
parent 7accfac4
...@@ -62,6 +62,13 @@ bool TrayEventFilter::ProcessLocatedEvent(ui::LocatedEvent* event) { ...@@ -62,6 +62,13 @@ bool TrayEventFilter::ProcessLocatedEvent(ui::LocatedEvent* event) {
->Contains(target)) { ->Contains(target)) {
return false; return false;
} }
// Don't process events that occurred inside the status area widget and
// a popup notification from message center.
if (root_controller &&
root_controller->GetContainer(kShellWindowId_StatusContainer)
->Contains(target)) {
return false;
}
} }
// Check the boundary for all wrappers, and do not handle the event if it // Check the boundary for all wrappers, and do not handle the event if it
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment