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

Issue 2148963002: BubbleFrameView: add top padding even when close button is hidden (Closed)

Created:
4 years, 5 months ago by Elly Fong-Jones
Modified:
4 years, 5 months ago
Reviewers:
msw
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 top padding even when close button is hidden If there's no title or close button present, BubbleFrameView still needs some top padding to avoid the content being hard up against the top edge. Always pad as though the close button was visible, even if it's not, unless there's a title. BUG=622859 Committed: https://crrev.com/f06ef4ac6ac3dd2f3a76486d2efde9ec35583ae6 Cr-Commit-Position: refs/heads/master@{#406856}

Patch Set 1 #

Total comments: 2

Patch Set 2 : use min_height #

Patch Set 3 : fix unit tests #

Patch Set 4 : Add some more asserts :) #

Patch Set 5 : testing button image height #

Patch Set 6 : LabelButton -> ImageButton #

Patch Set 7 : fix CrOS build #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -15 lines) Patch
M chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/bubble/bubble_dialog_delegate_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.h View 1 2 3 4 5 4 chunks +4 lines, -3 lines 2 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 4 5 2 chunks +8 lines, -6 lines 1 comment Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 5 4 chunks +9 lines, -2 lines 2 comments Download

Messages

Total messages: 39 (30 generated)
Elly Fong-Jones
msw: ptal? :)
4 years, 5 months ago (2016-07-13 18:56:37 UTC) #3
msw
https://codereview.chromium.org/2148963002/diff/1/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/2148963002/diff/1/ui/views/bubble/bubble_frame_view.cc#newcode248 ui/views/bubble/bubble_frame_view.cc:248: close_->visible() || !has_title ? close_->height() : 0; Consider leaving ...
4 years, 5 months ago (2016-07-13 19:23:44 UTC) #4
Elly Fong-Jones
msw: ptal? :) https://codereview.chromium.org/2148963002/diff/1/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/2148963002/diff/1/ui/views/bubble/bubble_frame_view.cc#newcode248 ui/views/bubble/bubble_frame_view.cc:248: close_->visible() || !has_title ? close_->height() : ...
4 years, 5 months ago (2016-07-13 20:18:22 UTC) #5
msw
hmm, it's still not ideal/obvious, but lgtm.
4 years, 5 months ago (2016-07-13 21:16:25 UTC) #8
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/2148963002/120001
4 years, 5 months ago (2016-07-21 15:23:36 UTC) #33
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-21 15:26:59 UTC) #35
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f06ef4ac6ac3dd2f3a76486d2efde9ec35583ae6 Cr-Commit-Position: refs/heads/master@{#406856}
4 years, 5 months ago (2016-07-21 15:30:02 UTC) #37
msw
some nits for optional followup; generally still lgtm https://codereview.chromium.org/2148963002/diff/120001/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/2148963002/diff/120001/ui/views/bubble/bubble_frame_view.cc#newcode26 ui/views/bubble/bubble_frame_view.cc:26: #include ...
4 years, 5 months ago (2016-07-21 19:07:18 UTC) #38
Elly Fong-Jones
4 years, 5 months ago (2016-07-22 15:05:14 UTC) #39
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2177533002/ by ellyjones@chromium.org.

The reason for reverting is: Caused https://crbug.com/630539.

Powered by Google App Engine
This is Rietveld 408576698