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

Issue 2189123002: BubbleFrameView: add padding if platform dislikes close buttons (Closed)

Created:
4 years, 4 months ago by Elly Fong-Jones
Modified:
4 years, 4 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, tfarina, msw+watch_chromium.org, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, rouslan+bubble_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

BubbleFrameView: add padding if platform dislikes close buttons On Mac, the close button is always hidden, which means that dialogs that expect the height of the close button to be included in their insets have too little top inset. This change causes dialogs to always include the close button size in the top inset if the platform doesn't show close buttons. BUG=622859 Committed: https://crrev.com/be7bb00e00a42a5d69c831758b4e24513d666f3a Cr-Commit-Position: refs/heads/master@{#409322}

Patch Set 1 #

Total comments: 1

Patch Set 2 : just never show close button on Mac #

Total comments: 1

Patch Set 3 : !ShouldShowCloseButton in tests #

Patch Set 4 : add test coverage! #

Total comments: 6

Patch Set 5 : OnThemeChanged -> ResetWindowControls #

Patch Set 6 : final fixups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -5 lines) Patch
M ui/views/bubble/bubble_frame_view.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 5 4 chunks +29 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 43 (26 generated)
Elly Fong-Jones
msw: ptal? :)
4 years, 4 months ago (2016-07-28 18:31:52 UTC) #4
msw
https://codereview.chromium.org/2189123002/diff/1/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/2189123002/diff/1/ui/views/bubble/bubble_frame_view.cc#newcode249 ui/views/bubble/bubble_frame_view.cc:249: !GetWidget()->widget_delegate()->ShouldShowCloseButton() This is wrong, numerous cross-platform bubbles and dialogs ...
4 years, 4 months ago (2016-07-28 18:49:32 UTC) #6
msw
This seems correct, at least for bubble dialogs... https://codereview.chromium.org/2189123002/diff/20001/ui/views/widget/widget_delegate.cc File ui/views/widget/widget_delegate.cc (left): https://codereview.chromium.org/2189123002/diff/20001/ui/views/widget/widget_delegate.cc#oldcode83 ui/views/widget/widget_delegate.cc:83: return ...
4 years, 4 months ago (2016-07-28 19:18:47 UTC) #9
Elly Fong-Jones
On 2016/07/28 19:18:47, msw wrote: > This seems correct, at least for bubble dialogs... > ...
4 years, 4 months ago (2016-07-28 19:24:44 UTC) #10
msw
lgtm
4 years, 4 months ago (2016-07-28 19:25:36 UTC) #11
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/2189123002/60001
4 years, 4 months ago (2016-07-29 19:32:12 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/227967)
4 years, 4 months ago (2016-07-29 19:38:08 UTC) #22
msw
https://codereview.chromium.org/2189123002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2189123002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode66 ui/views/bubble/bubble_frame_view_unittest.cc:66: bool should_show_close_ = false; Make this private and add ...
4 years, 4 months ago (2016-07-29 19:38:39 UTC) #23
msw
https://codereview.chromium.org/2189123002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2189123002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode139 ui/views/bubble/bubble_frame_view_unittest.cc:139: (void)frame.GetWidget(); On 2016/07/29 19:38:39, msw wrote: > I think ...
4 years, 4 months ago (2016-07-29 19:40:59 UTC) #24
Elly Fong-Jones
https://codereview.chromium.org/2189123002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2189123002/diff/60001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode66 ui/views/bubble/bubble_frame_view_unittest.cc:66: bool should_show_close_ = false; On 2016/07/29 19:38:39, msw wrote: ...
4 years, 4 months ago (2016-08-02 17:49:30 UTC) #29
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/2189123002/100001
4 years, 4 months ago (2016-08-02 17:50:20 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/229400)
4 years, 4 months ago (2016-08-02 17:57:34 UTC) #34
Elly Fong-Jones
sky: ptal for ui/views/widget owner review :)
4 years, 4 months ago (2016-08-02 18:09:44 UTC) #36
sky
LGTM
4 years, 4 months ago (2016-08-02 20:34:10 UTC) #37
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/2189123002/100001
4 years, 4 months ago (2016-08-02 21:01:12 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-02 21:25:16 UTC) #41
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 21:26:41 UTC) #43
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/be7bb00e00a42a5d69c831758b4e24513d666f3a
Cr-Commit-Position: refs/heads/master@{#409322}

Powered by Google App Engine
This is Rietveld 408576698