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

Issue 1744483002: Monitor the system native frame color on Win 10. (Closed)

Created:
4 years, 10 months ago by Peter Kasting
Modified:
4 years, 9 months ago
Reviewers:
Bret, Evan Stade
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Monitor the system native frame color on Win 10. GetColor(COLOR_FRAME...) will now report the actual in-use color for Win 10 native frames. This is not used yet, but will be useful for: (a) Dynamically choosing the right incognito icon color (b) Dynamically choosing the right COLOR_TOOLBAR_TOP_SEPARATOR (c) Eventually, converting Win 10 to custom-drawing the frame but still respecting the user's color choice BUG=505013, 585470 TEST=none Committed: https://crrev.com/9fcf69e0bc440b16661c39c4b9f13182f0430725 Cr-Commit-Position: refs/heads/master@{#378989}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Resync #

Total comments: 7

Patch Set 4 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -108 lines) Patch
M chrome/browser/themes/theme_service.h View 1 2 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/themes/theme_service.cc View 1 2 5 chunks +98 lines, -104 lines 0 comments Download
M chrome/browser/themes/theme_service_factory.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
A chrome/browser/themes/theme_service_win.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/themes/theme_service_win.cc View 1 2 3 1 chunk +67 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
Peter Kasting
4 years, 10 months ago (2016-02-26 01:33:06 UTC) #2
Evan Stade
Is there a way we can avoid adding all these ifdefs to shared code? ThemeServiceWin ...
4 years, 10 months ago (2016-02-26 16:36:32 UTC) #3
Peter Kasting
On 2016/02/26 16:36:32, Evan Stade wrote: > Is there a way we can avoid adding ...
4 years, 10 months ago (2016-02-26 19:51:17 UTC) #4
Evan Stade
On 2016/02/26 19:51:17, Peter Kasting wrote: > On 2016/02/26 16:36:32, Evan Stade wrote: > > ...
4 years, 10 months ago (2016-02-26 20:07:02 UTC) #5
Bret
https://codereview.chromium.org/1744483002/diff/1/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/1744483002/diff/1/chrome/browser/themes/theme_service.cc#newcode181 chrome/browser/themes/theme_service.cc:181: HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\DWM", KEY_READ)); Are you sure this is actually ...
4 years, 9 months ago (2016-02-29 18:29:03 UTC) #7
Peter Kasting
https://codereview.chromium.org/1744483002/diff/1/chrome/browser/themes/theme_service.cc File chrome/browser/themes/theme_service.cc (right): https://codereview.chromium.org/1744483002/diff/1/chrome/browser/themes/theme_service.cc#newcode181 chrome/browser/themes/theme_service.cc:181: HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\DWM", KEY_READ)); On 2016/02/29 18:29:03, Bret Sepulveda wrote: ...
4 years, 9 months ago (2016-02-29 19:57:06 UTC) #8
Peter Kasting
PTAL; modified to use inheritance.
4 years, 9 months ago (2016-03-02 03:24:21 UTC) #9
Bret
lgtm otherwise https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc#newcode37 chrome/browser/themes/theme_service_win.cc:37: case ThemeProperties::COLOR_FRAME: i still think "frame" is ...
4 years, 9 months ago (2016-03-02 22:54:04 UTC) #10
Evan Stade
lgtm https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc#newcode14 chrome/browser/themes/theme_service_win.cc:14: ThemeServiceWin::ThemeServiceWin() { init dwm_frame_color_? https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc#newcode38 chrome/browser/themes/theme_service_win.cc:38: case ThemeProperties::COLOR_FRAME_INCOGNITO: ...
4 years, 9 months ago (2016-03-03 01:24:26 UTC) #11
Peter Kasting
https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc#newcode14 chrome/browser/themes/theme_service_win.cc:14: ThemeServiceWin::ThemeServiceWin() { On 2016/03/03 01:24:25, Evan Stade wrote: > ...
4 years, 9 months ago (2016-03-03 09:23:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744483002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744483002/60001
4 years, 9 months ago (2016-03-03 09:23:28 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-03 10:08:56 UTC) #16
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/9fcf69e0bc440b16661c39c4b9f13182f0430725 Cr-Commit-Position: refs/heads/master@{#378989}
4 years, 9 months ago (2016-03-03 10:10:35 UTC) #18
Evan Stade
https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/1744483002/diff/40001/chrome/browser/themes/theme_service_win.cc#newcode14 chrome/browser/themes/theme_service_win.cc:14: ThemeServiceWin::ThemeServiceWin() { On 2016/03/03 09:23:06, Peter Kasting wrote: > ...
4 years, 9 months ago (2016-03-03 18:17:19 UTC) #19
Will Harris
hello, this has broken the windows 10 FYI bot - see crbug.com/592676 I will revert ...
4 years, 9 months ago (2016-03-07 18:44:21 UTC) #20
Will Harris
4 years, 9 months ago (2016-03-07 18:46:28 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1771933002/ by wfh@chromium.org.

The reason for reverting is: This breaks the win10 bot. see bug 592676.

Powered by Google App Engine
This is Rietveld 408576698