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

Issue 2336983002: MacViews: Trigger shadow invalidation when a translucent window is shown. (Closed)

Created:
4 years, 3 months ago by karandeepb
Modified:
4 years, 3 months ago
Reviewers:
tapted, Elly Fong-Jones
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Trigger shadow invalidation when a translucent window is shown. Currently, invalidate_shadow_on_frame_swap_ is not set when a MacViews window is shown. It is only set when the layer is created, changed or the window resized. This causes translucent windows like the "Restore Pages" bubble and Find-In-Page window to not have a shadow, when they are shown after being hidden. This CL modifies BridgedNativeWidget::OnVisibilityChanged() to trigger shadow invalidation while showing translucent windows. This fixes the shadow for the "Restore Pages" bubble and also of the Find-In-Page window on tab switching. A unit test is also added which demonstrates the problem. Note that this does not fix the shadow for the Find-In-Page window when it is displayed initially on pressing Cmd+F. BUG=636707, 646734 Committed: https://crrev.com/e5cbef5ab4cea989839c24925113f5a062a2fb9a Cr-Commit-Position: refs/heads/master@{#418803}

Patch Set 1 #

Patch Set 2 : Typo. #

Patch Set 3 : Remove patch dependency. #

Total comments: 3

Patch Set 4 : Address review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac_unittest.mm View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
karandeepb
PTAL avi@. Can you please review this since tapted@ is OOO.
4 years, 3 months ago (2016-09-13 06:07:02 UTC) #6
Avi (use Gerrit)
This seems reasonable, but I'm not up-to-speed on MacViews. Maybe Elly?
4 years, 3 months ago (2016-09-13 15:37:04 UTC) #9
karandeepb
On 2016/09/13 15:37:04, Avi wrote: > This seems reasonable, but I'm not up-to-speed on MacViews. ...
4 years, 3 months ago (2016-09-14 01:22:31 UTC) #10
karandeepb
On 2016/09/14 01:22:31, karandeepb wrote: > On 2016/09/13 15:37:04, Avi wrote: > > This seems ...
4 years, 3 months ago (2016-09-14 01:24:44 UTC) #11
Elly Fong-Jones
lgtm Looks legit.
4 years, 3 months ago (2016-09-14 14:55:04 UTC) #14
karandeepb
Since Trent is back, adding him for owner's review.
4 years, 3 months ago (2016-09-14 23:42:06 UTC) #16
tapted
https://codereview.chromium.org/2336983002/diff/60001/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): https://codereview.chromium.org/2336983002/diff/60001/ui/views/cocoa/bridged_native_widget.mm#newcode844 ui/views/cocoa/bridged_native_widget.mm:844: // For translucent windows which are made visible, recalculate ...
4 years, 3 months ago (2016-09-15 04:12:26 UTC) #17
karandeepb
PTAL Trent. https://codereview.chromium.org/2336983002/diff/60001/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): https://codereview.chromium.org/2336983002/diff/60001/ui/views/cocoa/bridged_native_widget.mm#newcode844 ui/views/cocoa/bridged_native_widget.mm:844: // For translucent windows which are made ...
4 years, 3 months ago (2016-09-15 06:30:10 UTC) #18
tapted
lgtm - thanks! https://codereview.chromium.org/2336983002/diff/60001/ui/views/cocoa/bridged_native_widget.mm File ui/views/cocoa/bridged_native_widget.mm (right): https://codereview.chromium.org/2336983002/diff/60001/ui/views/cocoa/bridged_native_widget.mm#newcode844 ui/views/cocoa/bridged_native_widget.mm:844: // For translucent windows which are ...
4 years, 3 months ago (2016-09-15 06:37:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2336983002/80001
4 years, 3 months ago (2016-09-15 07:31:47 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 3 months ago (2016-09-15 08:06:24 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 08:07:53 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e5cbef5ab4cea989839c24925113f5a062a2fb9a
Cr-Commit-Position: refs/heads/master@{#418803}

Powered by Google App Engine
This is Rietveld 408576698