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

Issue 2519313002: MacViews: For "NO_ASSET" MD bubbles, just use the border drawn by the window server. (Closed)

Created:
4 years, 1 month ago by tapted
Modified:
4 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, groby+bubble_chromium.org, rouslan+bubble_chromium.org, msw+watch_chromium.org, hcarmona+bubble_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: For "NO_ASSET" MD bubbles, just use the border drawn by the window server. BubbleBorder::PaintMd() currently ignores BubbleBorder::shadow_. That's fine for everything except BubbleBorder::NO_ASSETS which should never draw borders or shadows. On Mac, it allows the WindowServer to provide the shadow instead. Add BubbleBorder::PaintNoAssets() which just paints transparent pixels around the edge of the bubble. This ensures that subviews painting over the bubble corners (such as the signin promo on the bookmark bubble) get rounded (again). BubbleBorder::NO_ASSETS is also used by the fullscreen bubble and shelf tooltips on ChromeOS. This approach keeps those bubbles to spec with --secondary-ui-md (e.g. per http://crbug.com/595011 ). BUG=667623, 660018 Committed: https://crrev.com/bf9bf4f69ef97afe4554e489704940db643dac35 Cr-Commit-Position: refs/heads/master@{#434069}

Patch Set 1 #

Patch Set 2 : fix insets too #

Total comments: 4

Patch Set 3 : respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -14 lines) Patch
M ui/views/bubble/bubble_border.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 chunks +27 lines, -14 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
tapted
Hi Mike, please take a look
4 years, 1 month ago (2016-11-22 11:46:09 UTC) #14
msw
lgtm with nits https://codereview.chromium.org/2519313002/diff/20001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/2519313002/diff/20001/ui/views/bubble/bubble_border.cc#newcode512 ui/views/bubble/bubble_border.cc:512: // Clip out a round rect ...
4 years, 1 month ago (2016-11-22 18:27:22 UTC) #15
tapted
Thanks Mike! https://codereview.chromium.org/2519313002/diff/20001/ui/views/bubble/bubble_border.cc File ui/views/bubble/bubble_border.cc (right): https://codereview.chromium.org/2519313002/diff/20001/ui/views/bubble/bubble_border.cc#newcode512 ui/views/bubble/bubble_border.cc:512: // Clip out a round rect so ...
4 years, 1 month ago (2016-11-22 23:38:09 UTC) #16
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/2519313002/40001
4 years, 1 month ago (2016-11-22 23:38:58 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-23 01:22:55 UTC) #22
commit-bot: I haz the power
4 years, 1 month ago (2016-11-23 01:25:26 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bf9bf4f69ef97afe4554e489704940db643dac35
Cr-Commit-Position: refs/heads/master@{#434069}

Powered by Google App Engine
This is Rietveld 408576698