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

Issue 2779973003: views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel (Closed)

Created:
3 years, 8 months ago by Elly Fong-Jones
Modified:
3 years, 8 months ago
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

views: fold layout_utils::CreatePanelLayout into GridLayout::CreatePanel This change: 1) Introduces a new type of InsetsMetric in ViewsDelegate: PANEL 2) Changes GridLayout::CreatePanel to use that metric instead of hardcoded insets 3) Changes GridLayout::CreatePanel to always install itself as the layout manager of the provided host View 4) Moves all callers of layout_utils::CreatePanelLayout over to GridLayout::CreatePanel 5) Deletes layout_utils BUG=687340 Review-Url: https://codereview.chromium.org/2779973003 Cr-Commit-Position: refs/heads/master@{#461745} Committed: https://chromium.googlesource.com/chromium/src/+/08376b4003fdea077ec6df37f88305a65751101c

Patch Set 1 #

Total comments: 2

Patch Set 2 : introduce InsetMetrics::PANEL #

Patch Set 3 : add some namespaces #

Total comments: 1

Patch Set 4 : rebase & fix cros build #

Patch Set 5 : be careful with --amend #

Patch Set 6 : remove old DEPS entry #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -80 lines) Patch
M chrome/browser/chromeos/enrollment_dialog_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/options/DEPS View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/options/vpn_config_view.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wifi_config_view.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/options/wimax_config_view.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/ui/request_pin_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/first_run/try_chrome_dialog_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/accessibility/invert_bubble_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/certificate_selector.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/collected_cookies_views.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/confirm_bubble_views.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/crypto_module_password_dialog_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_danger_prompt_views.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/first_run_bubble.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/first_run_dialog.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
D chrome/browser/ui/views/layout_utils.h View 1 chunk +0 lines, -22 lines 0 comments Download
D chrome/browser/ui/views/layout_utils.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/login_view.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/sync/one_click_signin_dialog_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/uninstall_view.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/layout/grid_layout.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M ui/views/views_delegate.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/views_delegate.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (24 generated)
Elly Fong-Jones
pkasting: ptal? :)
3 years, 8 months ago (2017-03-28 19:06:51 UTC) #3
Peter Kasting
https://codereview.chromium.org/2779973003/diff/1/ui/views/layout/grid_layout.cc File ui/views/layout/grid_layout.cc (right): https://codereview.chromium.org/2779973003/diff/1/ui/views/layout/grid_layout.cc#newcode656 ui/views/layout/grid_layout.cc:656: InsetsMetric::BUBBLE_DIALOG)); Did you choose to use BUBBLE_DIALOG because it ...
3 years, 8 months ago (2017-03-29 03:39:11 UTC) #4
Elly Fong-Jones
On 2017/03/29 03:39:11, Peter Kasting wrote: > https://codereview.chromium.org/2779973003/diff/1/ui/views/layout/grid_layout.cc > File ui/views/layout/grid_layout.cc (right): > > https://codereview.chromium.org/2779973003/diff/1/ui/views/layout/grid_layout.cc#newcode656 ...
3 years, 8 months ago (2017-03-29 15:33:45 UTC) #5
Elly Fong-Jones
On 2017/03/29 15:33:45, Elly Fong-Jones wrote: > On 2017/03/29 03:39:11, Peter Kasting wrote: > > ...
3 years, 8 months ago (2017-03-29 16:49:29 UTC) #6
Peter Kasting
LGTM, but please update CL description to reflect your changes
3 years, 8 months ago (2017-03-29 22:46:16 UTC) #15
Peter Kasting
https://codereview.chromium.org/2779973003/diff/40001/chrome/browser/chromeos/options/vpn_config_view.cc File chrome/browser/chromeos/options/vpn_config_view.cc (left): https://codereview.chromium.org/2779973003/diff/40001/chrome/browser/chromeos/options/vpn_config_view.cc#oldcode18 chrome/browser/chromeos/options/vpn_config_view.cc:18: #include "chrome/browser/ui/views/layout_utils.h" Oh, I forgot. Please remove this file ...
3 years, 8 months ago (2017-03-30 00:44:42 UTC) #16
Elly Fong-Jones
derat: ptal as chrome/browser/chromeos owner? gab: ptal as chrome/browser/first_run owner?
3 years, 8 months ago (2017-03-31 14:33:46 UTC) #22
Daniel Erat
rubber-stamp lgtm for c/b/chromeos
3 years, 8 months ago (2017-03-31 14:47:33 UTC) #23
Elly Fong-Jones
On 2017/03/31 14:47:33, Daniel Erat wrote: > rubber-stamp lgtm for c/b/chromeos gab: ping? :)
3 years, 8 months ago (2017-04-03 13:19:47 UTC) #24
gab
On 2017/03/31 14:33:46, Elly Fong-Jones wrote: > derat: ptal as chrome/browser/chromeos owner? > gab: ptal ...
3 years, 8 months ago (2017-04-03 16:50:15 UTC) #25
Elly Fong-Jones
On 2017/04/03 16:50:15, gab wrote: > On 2017/03/31 14:33:46, Elly Fong-Jones wrote: > > derat: ...
3 years, 8 months ago (2017-04-03 16:56:11 UTC) #26
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/2779973003/100001
3 years, 8 months ago (2017-04-03 16:57:05 UTC) #29
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/401047)
3 years, 8 months ago (2017-04-03 17:08:42 UTC) #31
Elly Fong-Jones
sky: ptal as /ui/views OWNER? :)
3 years, 8 months ago (2017-04-03 17:42:39 UTC) #34
sky
LGTM
3 years, 8 months ago (2017-04-04 16:25:29 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/2779973003/100001
3 years, 8 months ago (2017-04-04 16:28:32 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 16:41:20 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/08376b4003fdea077ec6df37f883...

Powered by Google App Engine
This is Rietveld 408576698