Commit fb83de09 authored by Tommy Steimel's avatar Tommy Steimel Committed by Commit Bot

Revert "[Picture in Picture] Call parent function in OnGestureEvent."

This reverts commit e60d9aef.

Reason for revert: Causes the close button to receive gesture events even when it's not the target of the tap. This causes the PiP window to unexpectedly close.

Bug: 895773

Original change's description:
> [Picture in Picture] Call parent function in OnGestureEvent.
>
> Change-Id: I854654be22abd217c3f8ed557bc3fb9118c557c6
> Reviewed-on: https://chromium-review.googlesource.com/1192326
> Reviewed-by: CJ DiMeglio <lethalantidote@chromium.org>
> Commit-Queue: apacible <apacible@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#586820}

# Not skipping CQ checks because original CL landed > 1 day ago.

Change-Id: I2f36d78713f0b811a0a2681e09284c394e146a5c
Reviewed-on: https://chromium-review.googlesource.com/c/1318397
Commit-Queue: Tommy Steimel <steimel@chromium.org>
Reviewed-by: default avatarCJ DiMeglio <lethalantidote@chromium.org>
Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
Cr-Commit-Position: refs/heads/master@{#607039}
parent e55425a7
...@@ -788,8 +788,6 @@ void OverlayWindowViews::OnGestureEvent(ui::GestureEvent* event) { ...@@ -788,8 +788,6 @@ void OverlayWindowViews::OnGestureEvent(ui::GestureEvent* event) {
TogglePlayPause(); TogglePlayPause();
event->SetHandled(); event->SetHandled();
} }
views::Widget::OnGestureEvent(event);
} }
void OverlayWindowViews::ButtonPressed(views::Button* sender, void OverlayWindowViews::ButtonPressed(views::Button* sender,
......
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