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

Issue 2807243004: Fix layout of BubbleFrameView when there's only a close button in the (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 8 months ago
Reviewers:
tapted, Bret, Peter Kasting
CC:
chromium-reviews, msw+watch_chromium.org, groby+bubble_chromium.org, rouslan+bubble_chromium.org, hcarmona+bubble_chromium.org, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix layout of BubbleFrameView when there's only a close button in the title row. Push the client area down slightly so it doesn't overlap close. This is a bandaid until bug 702196 is fixed. BUG=709380, 702196

Patch Set 1 #

Total comments: 2

Patch Set 2 : spacing above #

Patch Set 3 : fix tests #

Total comments: 9

Patch Set 4 : upload #

Total comments: 3

Patch Set 5 : actually done #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -30 lines) Patch
M ui/views/bubble/bubble_frame_view.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M ui/views/window/dialog_delegate_unittest.cc View 1 2 3 4 8 chunks +56 lines, -23 lines 0 comments Download

Messages

Total messages: 45 (23 generated)
Evan Stade
One alternative would be to allow the frame view and client view to overlap but ...
3 years, 8 months ago (2017-04-11 17:10:46 UTC) #2
Peter Kasting
Is it possible to test this? https://codereview.chromium.org/2807243004/diff/1/ui/views/bubble/bubble_frame_view.cc File ui/views/bubble/bubble_frame_view.cc (right): https://codereview.chromium.org/2807243004/diff/1/ui/views/bubble/bubble_frame_view.cc#newcode262 ui/views/bubble/bubble_frame_view.cc:262: DistanceMetric::CLOSE_BUTTON_MARGIN) I'm wondering ...
3 years, 8 months ago (2017-04-11 20:12:59 UTC) #3
Evan Stade
On 2017/04/11 20:12:59, Peter Kasting wrote: > Is it possible to test this? Good idea. ...
3 years, 8 months ago (2017-04-11 20:20:16 UTC) #4
Peter Kasting
+bsep -- seems like this might overlap with https://bugs.chromium.org/p/chromium/issues/detail?id=702196 . Bret, can you read through ...
3 years, 8 months ago (2017-04-11 20:23:25 UTC) #6
Bret
On 2017/04/11 20:23:25, Peter Kasting wrote: > +bsep -- seems like this might overlap with ...
3 years, 8 months ago (2017-04-11 20:38:02 UTC) #7
Peter Kasting
Cool. Let's land the 1x change as a quick fix then, and whether there should ...
3 years, 8 months ago (2017-04-11 20:58:09 UTC) #8
Evan Stade
On 2017/04/11 20:58:09, Peter Kasting wrote: > Cool. Let's land the 1x change as a ...
3 years, 8 months ago (2017-04-12 15:40:29 UTC) #10
Peter Kasting
LGTM
3 years, 8 months ago (2017-04-12 15:43:44 UTC) #13
tapted
lgtm
3 years, 8 months ago (2017-04-13 01:19:37 UTC) #16
Evan Stade
On 2017/04/13 01:19:37, tapted wrote: > lgtm had to update tests. ptal
3 years, 8 months ago (2017-04-13 21:57:03 UTC) #21
Peter Kasting
LGTM https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc File ui/views/window/dialog_delegate_unittest.cc (right): https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc#newcode47 ui/views/window/dialog_delegate_unittest.cc:47: bool ShouldShowCloseButton() const override { return show_close_button_; } ...
3 years, 8 months ago (2017-04-13 22:36:29 UTC) #22
Evan Stade
https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc File ui/views/window/dialog_delegate_unittest.cc (right): https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc#newcode47 ui/views/window/dialog_delegate_unittest.cc:47: bool ShouldShowCloseButton() const override { return show_close_button_; } On ...
3 years, 8 months ago (2017-04-13 23:39:18 UTC) #23
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/2807243004/40001
3 years, 8 months ago (2017-04-13 23:39:55 UTC) #26
Peter Kasting
https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc File ui/views/window/dialog_delegate_unittest.cc (right): https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc#newcode226 ui/views/window/dialog_delegate_unittest.cc:226: dialog->set_show_close_button(false); On 2017/04/13 23:39:18, Evan Stade wrote: > On ...
3 years, 8 months ago (2017-04-13 23:41:29 UTC) #27
Evan Stade
On 2017/04/13 23:41:29, Peter Kasting wrote: > https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc > File ui/views/window/dialog_delegate_unittest.cc (right): > > https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc#newcode226 ...
3 years, 8 months ago (2017-04-13 23:42:43 UTC) #28
Peter Kasting
https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc File ui/views/window/dialog_delegate_unittest.cc (right): https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc#newcode47 ui/views/window/dialog_delegate_unittest.cc:47: bool ShouldShowCloseButton() const override { return show_close_button_; } On ...
3 years, 8 months ago (2017-04-13 23:47:35 UTC) #31
Evan Stade
https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc File ui/views/window/dialog_delegate_unittest.cc (right): https://codereview.chromium.org/2807243004/diff/40001/ui/views/window/dialog_delegate_unittest.cc#newcode47 ui/views/window/dialog_delegate_unittest.cc:47: bool ShouldShowCloseButton() const override { return show_close_button_; } On ...
3 years, 8 months ago (2017-04-13 23:51:24 UTC) #32
Peter Kasting
https://codereview.chromium.org/2807243004/diff/60001/ui/views/window/dialog_delegate_unittest.cc File ui/views/window/dialog_delegate_unittest.cc (right): https://codereview.chromium.org/2807243004/diff/60001/ui/views/window/dialog_delegate_unittest.cc#newcode238 ui/views/window/dialog_delegate_unittest.cc:238: ShowDialog(); On 2017/04/13 23:51:24, Evan Stade wrote: > On ...
3 years, 8 months ago (2017-04-13 23:53:35 UTC) #35
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/2807243004/40002
3 years, 8 months ago (2017-04-14 15:55:17 UTC) #40
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 8 months ago (2017-04-14 16:02:30 UTC) #43
findit-for-me
Findit(https://goo.gl/kROfz5) identified this CL at revision 464731 as the culprit for failures in the build ...
3 years, 8 months ago (2017-04-14 17:10:34 UTC) #44
alexmos
3 years, 8 months ago (2017-04-14 18:21:40 UTC) #45
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:40002) has been created in
https://codereview.chromium.org/2821463004/ by alexmos@chromium.org.

The reason for reverting is: Breaks DialogTest.AcceptAndCancel on a couple of
bots
(https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2...
and
https://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%....

Powered by Google App Engine
This is Rietveld 408576698