New issue
Advanced search Search tips

Issue 921156 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug

Blocked on:
issue 921272

Blocking:
issue 918537



Sign in to add a comment

[SingleProcessMash] Can't drag PIP window.

Project Member Reported by osh...@chromium.org, Jan 11

Issue description

ToT(commit position 622104)

I can drag the window using frame, but can't resize the window.
No resize shadow when mouse hovers at the edge.

Window dragging (in addition to resizing) is broken for PIP window,
probably for the same reason.
 
Blocking: 918537
device: PixelSlate. 
Cc: mukai@chromium.org
what's the easiest way to get a pip window?
I wonder if Mukai's patch @ https://chromium-review.googlesource.com/c/chromium/src/+/1405458 fixes this.
mukai's patch landed at 622061, oshima is at 622104.

Possibly related to fractional scale factor?

To test PIP
1) play youtube video
2) On video element, click right button twice. I'll open the native menu (not custom one created by youtube)
3) Select "picture-in-picture"
Cc: -mukai@chromium.org
Owner: mukai@chromium.org
Status: Assigned (was: Available)
It was working a couple of days ago. It may be easier to just run bisect.
> It was working a couple of days ago. It may be easier to just run bisect.

presumably because we just enabled single process mash by default.
It was with SPM (at least the label was there)
At least it's not draggable/resizable at r620241 in Monday.
Note: my patch r622061 was reverted for an unrelated reason, but the resize shadow might appear with that revert. Still can't resize/drag.
Status: Started (was: Assigned)
The thing is:
- Several window properties are not properly transferred, so ash can't say about the resizing
- the dragging behavior is implemented here: https://cs.chromium.org/chromium/src/chrome/browser/ui/views/overlay/overlay_window_views.cc?q=chrome/browser/ui/views/overlay/overlay_window_views.cc&sq=package:chromium&g=0&l=103

It seems the picture-in-picture hasn't been well recognized by us and so has been broken in Mash actually. The point in #c10 would indicate the regression caused by my patch.
Blockedon: 921272
It seems resizing hasn't been working well because some features are not supported in Mash. Filed issue 921272 for that.
Summary: [SingleProcessMash] Can't drag PIP window. (was: [SingleProcessMash] Window resize is broken. Can't drag PIP window.)
editing the title since the window resizing was fixed. I'll take care of PIP windows.
Project Member

Comment 16 by bugdroid1@chromium.org, Jan 14

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/521aea0cbc7fcc5921d3ffe56c27b8232acdcdc6

commit 521aea0cbc7fcc5921d3ffe56c27b8232acdcdc6
Author: Jun Mukai <mukai@chromium.org>
Date: Mon Jan 14 21:29:58 2019

Allow PipWindowKey for SingleProcessMash

This window property is used to indicate a window is picture-in-
picture mode; without this property, incorrect window resizer
will be used.

Bug: 921156
Test: manually
Change-Id: I31e8f11378ee2ab862f4c3217f5ad94acd1dc9dc
Reviewed-on: https://chromium-review.googlesource.com/c/1409690
Commit-Queue: Jun Mukai <mukai@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: James Cook <jamescook@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622609}
[modify] https://crrev.com/521aea0cbc7fcc5921d3ffe56c27b8232acdcdc6/ash/public/cpp/mus_property_mirror_ash.cc
[modify] https://crrev.com/521aea0cbc7fcc5921d3ffe56c27b8232acdcdc6/ash/public/cpp/window_properties.cc
[modify] https://crrev.com/521aea0cbc7fcc5921d3ffe56c27b8232acdcdc6/ash/public/interfaces/window_properties.mojom

Sign in to add a comment