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

Issue 2821413002: views: support dialog width snapping once and for all (Closed)

Created:
3 years, 8 months ago by Elly Fong-Jones
Modified:
3 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, msw+watch_chromium.org, tfarina, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, chromium-apps-reviews_chromium.org, rouslan+bubble_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

views: support dialog width snapping once and for all This change: 1) Adds LayoutProvider::GetSnappedDialogWidth() to implement the snapping; 2) Adds a unit test BubbleFrameViewTest.WidthSnaps to ensure snapping actually works. BUG=635173 Review-Url: https://codereview.chromium.org/2821413002 Cr-Commit-Position: refs/heads/master@{#467031} Committed: https://chromium.googlesource.com/chromium/src/+/ce9d455e92cf41f171d31093cee055e41d634ea9

Patch Set 1 #

Total comments: 43

Patch Set 2 : first round of fixes #

Total comments: 2

Patch Set 3 : DialogDelegateView -> BubbleDialogDelegateView #

Total comments: 2

Patch Set 4 : remove DialogWidth #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : fix failing unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -51 lines) Patch
M chrome/browser/ui/views/collected_cookies_views.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/collected_cookies_views.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/device_chooser_content_view.cc View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/ui/views/harmony/chrome_layout_provider.h View 1 2 3 3 chunks +1 line, -11 lines 0 comments Download
M chrome/browser/ui/views/harmony/chrome_layout_provider.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_provider.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_provider.cc View 1 1 chunk +7 lines, -10 lines 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/bubble/bubble_frame_view_unittest.cc View 1 2 3 4 5 2 chunks +80 lines, -0 lines 0 comments Download
M ui/views/layout/layout_provider.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/layout/layout_provider.cc View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 35 (18 generated)
Elly Fong-Jones
pkasting, tapted: ptal? :)
3 years, 8 months ago (2017-04-19 14:18:42 UTC) #3
Peter Kasting
How come you didn't upload this to https://codereview.chromium.org/2750063002/ ? https://codereview.chromium.org/2821413002/diff/1/chrome/browser/ui/views/harmony/chrome_layout_provider.cc File chrome/browser/ui/views/harmony/chrome_layout_provider.cc (right): https://codereview.chromium.org/2821413002/diff/1/chrome/browser/ui/views/harmony/chrome_layout_provider.cc#newcode87 chrome/browser/ui/views/harmony/chrome_layout_provider.cc:87: ...
3 years, 8 months ago (2017-04-19 19:26:13 UTC) #4
tapted
https://codereview.chromium.org/2821413002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2821413002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc#newcode502 ui/views/bubble/bubble_frame_view_unittest.cc:502: void SetAnchorView(View* anchor_view) { `using BubbleDialogDelegateView::SetAnchorView;` (that's a clearer ...
3 years, 8 months ago (2017-04-20 01:12:56 UTC) #5
Elly Fong-Jones
pkasting: I didn't upload this as part of my previous CL because I forgot to ...
3 years, 8 months ago (2017-04-20 19:54:00 UTC) #6
tapted
lgtm with an updated CL description (still mentions GetSnappedDialogWidth()) https://codereview.chromium.org/2821413002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2821413002/diff/1/ui/views/bubble/bubble_frame_view_unittest.cc#newcode568 ui/views/bubble/bubble_frame_view_unittest.cc:568: ...
3 years, 8 months ago (2017-04-21 00:20:31 UTC) #7
Elly Fong-Jones
description updated :) https://codereview.chromium.org/2821413002/diff/20001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2821413002/diff/20001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode503 ui/views/bubble/bubble_frame_view_unittest.cc:503: // DialogDelegateView: On 2017/04/21 00:20:31, tapted ...
3 years, 8 months ago (2017-04-21 15:47:54 UTC) #9
kylix_rd
Please excuse the drive-by :)... https://codereview.chromium.org/2821413002/diff/40001/chrome/browser/ui/views/harmony/chrome_layout_provider.h File chrome/browser/ui/views/harmony/chrome_layout_provider.h (right): https://codereview.chromium.org/2821413002/diff/40001/chrome/browser/ui/views/harmony/chrome_layout_provider.h#newcode53 chrome/browser/ui/views/harmony/chrome_layout_provider.h:53: enum class DialogWidth { ...
3 years, 8 months ago (2017-04-21 17:45:24 UTC) #11
Elly Fong-Jones
kylixrd: thanks :) https://codereview.chromium.org/2821413002/diff/40001/chrome/browser/ui/views/harmony/chrome_layout_provider.h File chrome/browser/ui/views/harmony/chrome_layout_provider.h (right): https://codereview.chromium.org/2821413002/diff/40001/chrome/browser/ui/views/harmony/chrome_layout_provider.h#newcode53 chrome/browser/ui/views/harmony/chrome_layout_provider.h:53: enum class DialogWidth { On 2017/04/21 ...
3 years, 8 months ago (2017-04-21 18:25:19 UTC) #12
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/2821413002/60001
3 years, 7 months ago (2017-04-24 13:27:59 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/253852) android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-04-24 13:32:25 UTC) #17
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/2821413002/80001
3 years, 7 months ago (2017-04-24 16:16:28 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/418654)
3 years, 7 months ago (2017-04-24 16:25:05 UTC) #22
Elly Fong-Jones
On 2017/04/24 16:25:05, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 7 months ago (2017-04-24 17:30:42 UTC) #23
Peter Kasting
LGTM, nice https://codereview.chromium.org/2821413002/diff/80001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2821413002/diff/80001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode545 ui/views/bubble/bubble_frame_view_unittest.cc:545: constexpr int kTestWidth = 300; Nit: Declare ...
3 years, 7 months ago (2017-04-24 23:06:31 UTC) #24
Elly Fong-Jones
https://codereview.chromium.org/2821413002/diff/80001/ui/views/bubble/bubble_frame_view_unittest.cc File ui/views/bubble/bubble_frame_view_unittest.cc (right): https://codereview.chromium.org/2821413002/diff/80001/ui/views/bubble/bubble_frame_view_unittest.cc#newcode545 ui/views/bubble/bubble_frame_view_unittest.cc:545: constexpr int kTestWidth = 300; On 2017/04/24 23:06:31, Peter ...
3 years, 7 months ago (2017-04-25 13:03:52 UTC) #25
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/2821413002/100001
3 years, 7 months ago (2017-04-25 17:14:43 UTC) #32
commit-bot: I haz the power
3 years, 7 months ago (2017-04-25 17:20:34 UTC) #35
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ce9d455e92cf41f171d31093cee0...

Powered by Google App Engine
This is Rietveld 408576698