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

Issue 2859193004: Remove GridLayout::SetInsets in favor of an empty border on the host. (Closed)

Created:
3 years, 7 months ago by Bret
Modified:
3 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, extensions-reviews_chromium.org, msramek+watch_chromium.org, sadrul, ios-reviews_chromium.org, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, raymes+watch_chromium.org, sync-reviews_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, markusheintz_, davemoore+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove GridLayout::SetInsets in favor of an empty border on the host. GridLayout::SetInsets is a way of introducing whitespace around the edges of a view. However we normally accomplish that by setting an empty border on the view instead. This patch changes all usages of the former to the latter, and then deletes the method. BUG=716222 Review-Url: https://codereview.chromium.org/2859193004 Cr-Commit-Position: refs/heads/master@{#470675} Committed: https://chromium.googlesource.com/chromium/src/+/a42af916f8540c65e68d780e37bc07a8230eb5ba

Patch Set 1 #

Patch Set 2 : edits #

Total comments: 8

Patch Set 3 : comments #

Patch Set 4 : fix merge #

Patch Set 5 : fix linux compile #

Patch Set 6 : fix linux compile 2 #

Patch Set 7 : fix compile and tests #

Total comments: 6

Patch Set 8 : comments 2 and fix compile 3 #

Patch Set 9 : fix merge #

Patch Set 10 : missed a merge problem #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -126 lines) Patch
M ash/shell/window_type_launcher.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_views.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/cookie_info_view.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/desktop_ios_promotion/desktop_ios_promotion_bubble_view.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/first_run_bubble.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/payments/cvc_unmask_view_controller.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/editor_view_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/order_summary_view_controller.cc View 1 2 3 1 chunk +9 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_item_list.cc View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_row_view.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_row_view.cc View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_sheet_controller.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_request_views_util.cc View 1 2 3 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/payments/payment_sheet_view_controller.cc View 1 2 3 1 chunk +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/message_center/views/message_center_button_bar.cc View 1 2 3 4 5 6 7 chunks +17 lines, -14 lines 0 comments Download
M ui/message_center/views/message_center_view_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M ui/views/layout/grid_layout.h View 1 2 3 chunks +2 lines, -9 lines 0 comments Download
M ui/views/layout/grid_layout.cc View 1 5 chunks +12 lines, -16 lines 0 comments Download
M ui/views/layout/grid_layout_unittest.cc View 3 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 49 (38 generated)
Bret
This is the GridLayout changes from the other patch split out, with the changes you ...
3 years, 7 months ago (2017-05-05 01:25:58 UTC) #5
sky
Did you verify none of the views you are changing were using borders already? https://codereview.chromium.org/2859193004/diff/20001/chrome/browser/chromeos/profiles/multiprofiles_session_aborted_dialog.cc ...
3 years, 7 months ago (2017-05-05 14:36:39 UTC) #6
Bret
> Did you verify none of the views you are changing were using borders already? ...
3 years, 7 months ago (2017-05-06 00:36:43 UTC) #11
Bret
On 2017/05/06 00:36:43, Bret Sepulveda wrote: > > Did you verify none of the views ...
3 years, 7 months ago (2017-05-07 02:17:18 UTC) #26
sky
Assuming the change to 51 is expected, LGTM https://codereview.chromium.org/2859193004/diff/120001/chrome/browser/ui/views/payments/payment_request_row_view.h File chrome/browser/ui/views/payments/payment_request_row_view.h (right): https://codereview.chromium.org/2859193004/diff/120001/chrome/browser/ui/views/payments/payment_request_row_view.h#newcode21 chrome/browser/ui/views/payments/payment_request_row_view.h:21: const ...
3 years, 7 months ago (2017-05-07 22:26:14 UTC) #29
Bret
https://codereview.chromium.org/2859193004/diff/120001/chrome/browser/ui/views/payments/payment_request_row_view.h File chrome/browser/ui/views/payments/payment_request_row_view.h (right): https://codereview.chromium.org/2859193004/diff/120001/chrome/browser/ui/views/payments/payment_request_row_view.h#newcode21 chrome/browser/ui/views/payments/payment_request_row_view.h:21: const gfx::Insets& insets); On 2017/05/07 22:26:14, sky wrote: > ...
3 years, 7 months ago (2017-05-09 22:03:09 UTC) #36
sky
SLGTM
3 years, 7 months ago (2017-05-09 23:08:56 UTC) #39
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/2859193004/180001
3 years, 7 months ago (2017-05-09 23:44:59 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 01:47:47 UTC) #44
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/2859193004/180001
3 years, 7 months ago (2017-05-10 18:53:36 UTC) #46
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 19:49:40 UTC) #49
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/a42af916f8540c65e68d780e37bc...

Powered by Google App Engine
This is Rietveld 408576698