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

Issue 2725783004: views: align columns in site settings dialog (Closed)

Created:
3 years, 9 months ago by Elly Fong-Jones
Modified:
3 years, 9 months ago
Reviewers:
palmer, lgarron, sky
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[WIP] views: align columns in site settings dialog Instead of each row being a View with its own internal GridLayout, impose one GridLayout on the entire dialog, which forces the columns into alignment. BUG=535074 Review-Url: https://codereview.chromium.org/2725783004 Cr-Commit-Position: refs/heads/master@{#456089} Committed: https://chromium.googlesource.com/chromium/src/+/b242d570b855dceae68d4da75c76186d5d7f8011

Patch Set 1 #

Patch Set 2 : fix unit tests, document stuff #

Total comments: 8

Patch Set 3 : document more #

Total comments: 8

Patch Set 4 : fix nits #

Total comments: 17

Patch Set 5 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -70 lines) Patch
M chrome/browser/ui/views/website_settings/permission_selector_row.h View 1 2 3 4 3 chunks +25 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_row.cc View 1 2 3 4 7 chunks +24 lines, -35 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 4 3 chunks +25 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view_unittest.cc View 1 2 3 4 5 chunks +21 lines, -13 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
Elly Fong-Jones
sky: ptal? :)
3 years, 9 months ago (2017-03-02 17:06:18 UTC) #3
sky
I started reviewing this, but the local owners are more familiar with the code than ...
3 years, 9 months ago (2017-03-02 20:05:41 UTC) #4
Elly Fong-Jones
palmer: ptal? you're the domain expert here :) sky: done, ptal for Views stuff? https://codereview.chromium.org/2725783004/diff/20001/chrome/browser/ui/views/website_settings/permission_selector_row.cc ...
3 years, 9 months ago (2017-03-06 17:17:10 UTC) #6
sky
palmer owns all this code, so I don't think you need me. I'm happy to ...
3 years, 9 months ago (2017-03-06 18:52:24 UTC) #7
palmer
Some nits idiosyncratic to me, but the code and general approach LGTM. https://codereview.chromium.org/2725783004/diff/40001/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc ...
3 years, 9 months ago (2017-03-06 19:16:10 UTC) #8
Elly Fong-Jones
sky: would you mind reviewing also? thanks :) https://codereview.chromium.org/2725783004/diff/40001/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc (right): https://codereview.chromium.org/2725783004/diff/40001/chrome/browser/ui/views/website_settings/permission_selector_row.cc#newcode333 chrome/browser/ui/views/website_settings/permission_selector_row.cc:333: // ...
3 years, 9 months ago (2017-03-07 18:28:48 UTC) #9
sky
https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc (right): https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/permission_selector_row.cc#newcode346 chrome/browser/ui/views/website_settings/permission_selector_row.cc:346: return menu_button_ ? static_cast<views::View*>(menu_button_) I'm surprised you need a ...
3 years, 9 months ago (2017-03-07 22:03:40 UTC) #10
Elly Fong-Jones
sky: ptal? :) https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/permission_selector_row.cc File chrome/browser/ui/views/website_settings/permission_selector_row.cc (right): https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/permission_selector_row.cc#newcode346 chrome/browser/ui/views/website_settings/permission_selector_row.cc:346: return menu_button_ ? static_cast<views::View*>(menu_button_) On 2017/03/07 ...
3 years, 9 months ago (2017-03-08 18:41:09 UTC) #11
sky
LGTM https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode469 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:469: Layout(); On 2017/03/08 18:41:09, Elly Fong-Jones wrote: > ...
3 years, 9 months ago (2017-03-08 18:50:35 UTC) #12
Elly Fong-Jones
On 2017/03/08 18:50:35, sky wrote: > LGTM > > https://codereview.chromium.org/2725783004/diff/60001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc > File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc > (right): ...
3 years, 9 months ago (2017-03-10 16:49:33 UTC) #13
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/2725783004/80001
3 years, 9 months ago (2017-03-10 16:49:59 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/b242d570b855dceae68d4da75c76186d5d7f8011
3 years, 9 months ago (2017-03-10 17:31:00 UTC) #19
sky
On 2017/03/10 16:49:33, Elly Fong-Jones wrote: > On 2017/03/08 18:50:35, sky wrote: > > LGTM ...
3 years, 9 months ago (2017-03-10 20:28:18 UTC) #20
lgarron
aargh, I wish I already had a watchlist for this. This CL causes the bubble ...
3 years, 9 months ago (2017-03-13 21:01:08 UTC) #22
Elly Fong-Jones
On 2017/03/13 21:01:08, lgarron wrote: > aargh, I wish I already had a watchlist for ...
3 years, 9 months ago (2017-03-13 21:05:24 UTC) #23
lgarron
3 years, 9 months ago (2017-03-13 22:02:08 UTC) #24
Message was sent while issue was closed.
On 2017/03/13 at 21:05:24, ellyjones wrote:
> On 2017/03/13 21:01:08, lgarron wrote:
> > aargh, I wish I already had a watchlist for this.
> > 
> > This CL causes the bubble to be very wide when there is a long permission
name
> > e.g. "MIDI devices full control" and a long permission value. The latter can
> > happen in some locales by accident, and could also by triggered by certain
bugs,
> > two of which I've filed in the last half year.
> > 
> > I commented about this on
> > https://bugs.chromium.org/p/chromium/issues/detail?id=535074#c38 but didn't
get
> > a response; did UI approve the change out of band?
> 
> I didn't ask them specifically about this but it seems like the only
reasonable path forward. If the permission name is 400 pts long in text, the
bubble must also be at least 400 pts wide to accomodate it without clipping the
text.
> 
> patricialor@ landed a related change to use short strings throughout, though -
does that help?

The short string change helps, but I don't know about edge cases in other
languages.

See https://bugs.chromium.org/p/chromium/issues/detail?id=512442#c92 for a case
in September where this CL would have added 50% to the Page Info width.
That particular case can't happen right now, but I want to make sure UI is
agreed that we'd rather widen the bubble in case there is ever a similar
combination of long strings on different lines.

Powered by Google App Engine
This is Rietveld 408576698