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

Issue 127253004: Support displaying the avatar label on the right side. (Closed)

Created:
6 years, 11 months ago by Adrian Kuegel
Modified:
6 years, 11 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Support displaying the avatar label on the right side. The avatar label should always be displayed on the same side as the avatar button. Currently, the avatar label is always displayed on the left, but the avatar icon can also be displayed on the right. This CL moves the avatar label adds support for displaying the avatar label on the right and moves the avatar label to the right if the avatar icon is also on the right. A screenshot of the placement on the right can be found in the bug description. BUG=332392 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245503

Patch Set 1 #

Patch Set 2 : Fix test. #

Total comments: 12

Patch Set 3 : Address review comments. #

Total comments: 6

Patch Set 4 : Address nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -19 lines) Patch
M chrome/browser/ui/views/avatar_label.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/avatar_label.cc View 1 2 5 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 1 2 3 6 chunks +26 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Adrian Kuegel
Peter, can you please review this CL?
6 years, 11 months ago (2014-01-08 16:54:57 UTC) #1
Adrian Kuegel
On 2014/01/08 16:54:57, Adrian Kuegel wrote: > Peter, can you please review this CL? Ping?
6 years, 11 months ago (2014-01-10 17:02:49 UTC) #2
Adrian Kuegel
On 2014/01/10 17:02:49, Adrian Kuegel wrote: > On 2014/01/08 16:54:57, Adrian Kuegel wrote: > > ...
6 years, 11 months ago (2014-01-14 17:21:04 UTC) #3
Peter Kasting
On 2014/01/14 17:21:04, Adrian Kuegel wrote: > Peter, can you please take a look at ...
6 years, 11 months ago (2014-01-14 20:06:40 UTC) #4
Peter Kasting
https://codereview.chromium.org/127253004/diff/70001/chrome/browser/ui/views/avatar_label.cc File chrome/browser/ui/views/avatar_label.cc (right): https://codereview.chromium.org/127253004/diff/70001/chrome/browser/ui/views/avatar_label.cc#newcode100 chrome/browser/ui/views/avatar_label.cc:100: browser_view_(browser_view), label_on_right_(false) { Nit: One member per line https://codereview.chromium.org/127253004/diff/70001/chrome/browser/ui/views/avatar_label.cc#newcode135 ...
6 years, 11 months ago (2014-01-15 02:06:25 UTC) #5
Adrian Kuegel
Thanks for the review :) Sorry for the ping, I didn't know you were OOO. ...
6 years, 11 months ago (2014-01-15 16:24:51 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/127253004/diff/190001/chrome/browser/ui/views/avatar_label.h File chrome/browser/ui/views/avatar_label.h (left): https://codereview.chromium.org/127253004/diff/190001/chrome/browser/ui/views/avatar_label.h#oldcode27 chrome/browser/ui/views/avatar_label.h:27: // views::TextButton: Nit: Don't remove this. https://codereview.chromium.org/127253004/diff/190001/chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc File ...
6 years, 11 months ago (2014-01-16 21:46:17 UTC) #7
Adrian Kuegel
https://codereview.chromium.org/127253004/diff/190001/chrome/browser/ui/views/avatar_label.h File chrome/browser/ui/views/avatar_label.h (left): https://codereview.chromium.org/127253004/diff/190001/chrome/browser/ui/views/avatar_label.h#oldcode27 chrome/browser/ui/views/avatar_label.h:27: // views::TextButton: On 2014/01/16 21:46:17, Peter Kasting wrote: > ...
6 years, 11 months ago (2014-01-17 09:42:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akuegel@chromium.org/127253004/310001
6 years, 11 months ago (2014-01-17 09:42:33 UTC) #9
commit-bot: I haz the power
6 years, 11 months ago (2014-01-17 13:54:50 UTC) #10
Message was sent while issue was closed.
Change committed as 245503

Powered by Google App Engine
This is Rietveld 408576698