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

Issue 602013002: [Ash] ShapedAppWindowTargeter treats empty shapes as empty hit test masks. (Closed)

Created:
6 years, 2 months ago by jackhou1
Modified:
6 years, 2 months ago
Reviewers:
tapted, Wez
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Ash] ShapedAppWindowTargeter treats empty shapes as empty hit test masks. Previously, setShape({'rects': []}) or setShape({'rects': [{left:0, width:0, top:0, height:1}]}) would make the window completely transparent, but still capture input. This was because ShapedAppWindowTargeter::GetHitTestMask returned false if the shape was empty. It now returns false only if the shape is NULL. BUG=417014 Committed: https://crrev.com/c0c8e095397d530fd31f7a77d6e39f39bd72b436 Cr-Commit-Position: refs/heads/master@{#296975}

Patch Set 1 #

Patch Set 2 : |had_shape| should use the same logic #

Patch Set 3 : Update GetWidgetHitTestMask. #

Patch Set 4 : Treat empty shapes the same as normal shapes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M chrome/browser/ui/views/apps/shaped_app_window_targeter.cc View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 20 (6 generated)
jackhou1
6 years, 2 months ago (2014-09-25 03:00:25 UTC) #2
tapted
Are there any security concerns to consider? I haven't really looked much into the shape ...
6 years, 2 months ago (2014-09-25 04:39:14 UTC) #3
jackhou1
On 2014/09/25 04:39:14, tapted wrote: > Are there any security concerns to consider? I haven't ...
6 years, 2 months ago (2014-09-25 08:28:52 UTC) #5
jackhou1
wez, could you take a look at this?
6 years, 2 months ago (2014-09-25 08:29:04 UTC) #7
Wez
The behaviour as described in this CL does not match the API design. setShape() with ...
6 years, 2 months ago (2014-09-25 23:36:50 UTC) #8
jackhou1
wez, PTAL
6 years, 2 months ago (2014-09-26 04:41:24 UTC) #9
Wez
lgtm
6 years, 2 months ago (2014-09-26 05:04:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602013002/80001
6 years, 2 months ago (2014-09-26 05:05:00 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/13716)
6 years, 2 months ago (2014-09-26 05:12:12 UTC) #14
jackhou1
tapted, PTAL for OWNERS
6 years, 2 months ago (2014-09-26 07:14:28 UTC) #15
tapted
lgtm
6 years, 2 months ago (2014-09-26 11:08:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/602013002/80001
6 years, 2 months ago (2014-09-26 17:56:03 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:80001) as 7321d0b37a5860c7619b6e790e2112a24d0e7dd2
6 years, 2 months ago (2014-09-26 18:00:21 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 18:00:58 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c0c8e095397d530fd31f7a77d6e39f39bd72b436
Cr-Commit-Position: refs/heads/master@{#296975}

Powered by Google App Engine
This is Rietveld 408576698