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

Issue 2880433002: views: don't snap dialogs with no buttons (Closed)

Created:
3 years, 7 months ago by Elly Fong-Jones
Modified:
3 years, 7 months ago
Reviewers:
palmer, Peter Kasting, sky
CC:
chromium-reviews, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, rouslan+bubble_chromium.org, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

views: don't snap dialogs with no buttons These are mostly bubbles/infobars/etc that do not need to be snapped. BUG=719274 Review-Url: https://codereview.chromium.org/2880433002 Cr-Commit-Position: refs/heads/master@{#471471} Committed: https://chromium.googlesource.com/chromium/src/+/3dbe6a55d833fb5bc63fb36a4e055988fb1d1482

Patch Set 1 #

Total comments: 2

Patch Set 2 : move override up #

Patch Set 3 : add unittest #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M chrome/browser/ui/views/page_info/page_info_bubble_view.cc View 1 2 chunks +0 lines, -5 lines 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 1 chunk +1 line, -1 line 1 comment Download
M ui/views/window/dialog_delegate_unittest.cc View 1 2 4 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
Elly Fong-Jones
pkasting: ptal? :)
3 years, 7 months ago (2017-05-10 20:03:22 UTC) #3
Peter Kasting
Seems like this would let us remove the InternalPageInfoBubbleView::ShouldSnapFrameWidth() override. Seems like we should also ...
3 years, 7 months ago (2017-05-10 20:41:24 UTC) #4
Elly Fong-Jones
We can remove that override (& I just did). I thought about unit-testing a bit, ...
3 years, 7 months ago (2017-05-10 21:06:49 UTC) #5
Peter Kasting
On 2017/05/10 21:06:49, Elly Fong-Jones wrote: > We can remove that override (& I just ...
3 years, 7 months ago (2017-05-10 21:46:04 UTC) #6
Elly Fong-Jones
On 2017/05/10 21:46:04, Peter Kasting wrote: > On 2017/05/10 21:06:49, Elly Fong-Jones wrote: > > ...
3 years, 7 months ago (2017-05-11 15:06:53 UTC) #7
Elly Fong-Jones
palmer: ptal as c/b/ui/views/page_info OWNER? :)
3 years, 7 months ago (2017-05-11 15:07:34 UTC) #9
palmer
lgtm
3 years, 7 months ago (2017-05-11 19:32:47 UTC) #10
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/2880433002/40001
3 years, 7 months ago (2017-05-11 21:26:29 UTC) #13
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/434587)
3 years, 7 months ago (2017-05-11 21:44:25 UTC) #15
Elly Fong-Jones
sky: ptal as ui/views owner? :)
3 years, 7 months ago (2017-05-12 15:18:15 UTC) #17
sky
https://codereview.chromium.org/2880433002/diff/40001/ui/views/window/dialog_delegate.cc File ui/views/window/dialog_delegate.cc (right): https://codereview.chromium.org/2880433002/diff/40001/ui/views/window/dialog_delegate.cc#newcode136 ui/views/window/dialog_delegate.cc:136: return GetDialogButtons() != ui::DIALOG_BUTTON_NONE; Would a better fix be ...
3 years, 7 months ago (2017-05-12 17:28:07 UTC) #18
Elly Fong-Jones
On 2017/05/12 17:28:07, sky wrote: > https://codereview.chromium.org/2880433002/diff/40001/ui/views/window/dialog_delegate.cc > File ui/views/window/dialog_delegate.cc (right): > > https://codereview.chromium.org/2880433002/diff/40001/ui/views/window/dialog_delegate.cc#newcode136 > ...
3 years, 7 months ago (2017-05-12 17:31:13 UTC) #19
sky
Ok, LGTM
3 years, 7 months ago (2017-05-12 19:47:02 UTC) #20
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/2880433002/40001
3 years, 7 months ago (2017-05-12 19:53:23 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/443425)
3 years, 7 months ago (2017-05-12 19:57:00 UTC) #24
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/2880433002/40001
3 years, 7 months ago (2017-05-12 20:15:59 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 22:46:44 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3dbe6a55d833fb5bc63fb36a4e05...

Powered by Google App Engine
This is Rietveld 408576698