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

Issue 1733293002: Toggle avatar color when window activation changes. (Closed)

Created:
4 years, 10 months ago by Peter Kasting
Modified:
4 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, nona+watch_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Toggle avatar color when window activation changes. On Windows 10 in particular, active and inactive windows may have very different frame colors, and the incognito icon for one may be invisible on the other. We should probably also consider toggling the TOOLBAR_TOP_SEPARATOR_COLOR. That also makes me wonder if this is the right way to do this; perhaps both these should have _INACTIVE colors and whatever draws the frame in the correct color should draw these as well. It's also not clear to me whether the nonclient view really needs the widget destruction overload (as noted in a comment). BUG=none TEST=Run Chrome on Windows 10 with window titlebars set to a dark color. Open an incognito window. Toggle the window between active and inactive and check that the incognito icon toggles between white and grey. Committed: https://crrev.com/8aecb326e01ed668003bcc72bda50ca64c768d16 Cr-Commit-Position: refs/heads/master@{#381868}

Patch Set 1 #

Patch Set 2 : Checkpoint #

Patch Set 3 : Rebase; change color utils #

Patch Set 4 : Fix merge #

Patch Set 5 : Checkpoint #

Patch Set 6 : Resync #

Patch Set 7 : Checkpoint #

Patch Set 8 : Rebase #

Patch Set 9 : Fix bad rebase #

Total comments: 2

Patch Set 10 : Convert widget observer to direct call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -21 lines) Patch
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 3 4 5 6 7 8 9 4 chunks +18 lines, -15 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -2 lines 0 comments Download
M ui/views/window/non_client_view.h View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -0 lines 0 comments Download
M ui/views/window/non_client_view.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (6 generated)
Peter Kasting
Scott, I could use some advice on parts of this CL. This CL has parts ...
4 years, 10 months ago (2016-02-25 11:35:41 UTC) #3
sky
On 2016/02/25 11:35:41, Peter Kasting wrote: > Scott, I could use some advice on parts ...
4 years, 10 months ago (2016-02-25 18:04:09 UTC) #4
Peter Kasting
Scott, this is now ready for a closer look. See the CL description for some ...
4 years, 9 months ago (2016-03-17 09:06:21 UTC) #6
sky
https://codereview.chromium.org/1733293002/diff/160001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/1733293002/diff/160001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode38 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:38: observer_(this) { Feels wrong to have an observer on ...
4 years, 9 months ago (2016-03-17 21:00:31 UTC) #7
Peter Kasting
PTAL https://codereview.chromium.org/1733293002/diff/160001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/1733293002/diff/160001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode38 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:38: observer_(this) { On 2016/03/17 21:00:31, sky wrote: > ...
4 years, 9 months ago (2016-03-17 23:14:10 UTC) #8
sky
LGTM
4 years, 9 months ago (2016-03-17 23:58:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1733293002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1733293002/180001
4 years, 9 months ago (2016-03-18 00:22:46 UTC) #11
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 9 months ago (2016-03-18 01:43:11 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 01:44:29 UTC) #15
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8aecb326e01ed668003bcc72bda50ca64c768d16
Cr-Commit-Position: refs/heads/master@{#381868}

Powered by Google App Engine
This is Rietveld 408576698