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

Issue 2381283003: Have Chrome draw top window border when using custom titlebar. (Closed)

Created:
4 years, 2 months ago by jbauman
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tfarina, Evan Stade
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Have Chrome draw top window border when using custom titlebar. This is the only transparent part of the window, so after this the window can be made opaque. The appearance should be similar to other native apps, and in particular to edge and other UWP apps that do the same thing. BUG=543904 TEST=--windows10-custom-titlebar with background slideshow and accent color taken from background. Committed: https://crrev.com/13552791a9ce4282df4ec658f07bf59a45ffb385 Cr-Commit-Position: refs/heads/master@{#424931}

Patch Set 1 #

Total comments: 12

Patch Set 2 : use ColorizationColor #

Patch Set 3 : add include #

Total comments: 20

Patch Set 4 : match edge's behavior, modify comments #

Total comments: 4

Patch Set 5 : fix nits #

Total comments: 14

Patch Set 6 : modify comments and rounding #

Patch Set 7 : remove default #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -27 lines) Patch
M chrome/browser/themes/theme_properties.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_properties.cc View 1 2 3 4 5 6 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/themes/theme_service_win.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/themes/theme_service_win.cc View 1 2 3 4 5 3 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc View 1 2 3 4 5 5 chunks +16 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 1 chunk +26 lines, -4 lines 0 comments Download

Messages

Total messages: 73 (34 generated)
jbauman
4 years, 2 months ago (2016-09-30 22:29:27 UTC) #6
Bret
Wait, I'm confused. Why do we want this? I know Edge's inactive top border is ...
4 years, 2 months ago (2016-09-30 23:33:36 UTC) #7
jbauman
On 2016/09/30 23:33:36, Bret Sepulveda wrote: > Wait, I'm confused. Why do we want this? ...
4 years, 2 months ago (2016-09-30 23:38:11 UTC) #8
Peter Kasting
https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode204 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:204: if (GetWidget()->non_client_view()) Nit: Consider a temp (maybe with auto*) ...
4 years, 2 months ago (2016-10-01 05:00:14 UTC) #9
Bret
https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode268 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:268: DwmExtendFrameIntoClientArea(GetHWND(), &margins); If the client area is fully opaque ...
4 years, 2 months ago (2016-10-01 19:53:08 UTC) #10
Peter Kasting
https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode503 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:503: SkColor inactive_border_color = 0xFFA1A1A1; On 2016/10/01 19:53:08, Bret Sepulveda ...
4 years, 2 months ago (2016-10-01 20:53:03 UTC) #11
Bret
https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode517 chrome/browser/ui/views/frame/glass_browser_frame_view.cc:517: ? GetThemeProvider()->GetColor(ThemeProperties::COLOR_FRAME) On 2016/10/01 20:53:02, Peter Kasting wrote: > ...
4 years, 2 months ago (2016-10-01 21:43:10 UTC) #12
jbauman
On 2016/10/01 20:53:03, Peter Kasting wrote: > https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc > File chrome/browser/ui/views/frame/glass_browser_frame_view.cc (right): > > https://codereview.chromium.org/2381283003/diff/1/chrome/browser/ui/views/frame/glass_browser_frame_view.cc#newcode503 ...
4 years, 2 months ago (2016-10-04 00:38:00 UTC) #13
Bret
> Hmm, this formula generally seems to work, but one weird case is when you ...
4 years, 2 months ago (2016-10-04 20:46:34 UTC) #14
jbauman
On 2016/10/04 20:46:34, Bret Sepulveda wrote: > > Hmm, this formula generally seems to work, ...
4 years, 2 months ago (2016-10-04 22:42:30 UTC) #15
Bret
On 2016/10/04 22:42:30, jbauman wrote: > On 2016/10/04 20:46:34, Bret Sepulveda wrote: > > > ...
4 years, 2 months ago (2016-10-04 23:05:41 UTC) #16
Peter Kasting
I have anniversary here at home if you guys want me to cross-check something. Not ...
4 years, 2 months ago (2016-10-05 00:24:08 UTC) #17
Bret
On 2016/10/05 00:24:08, Peter Kasting wrote: > I have anniversary here at home if you ...
4 years, 2 months ago (2016-10-05 00:29:31 UTC) #18
jbauman
On 2016/10/05 00:29:31, Bret Sepulveda wrote: > On 2016/10/05 00:24:08, Peter Kasting wrote: > > ...
4 years, 2 months ago (2016-10-05 01:29:54 UTC) #19
jbauman
On 2016/10/05 01:29:54, jbauman wrote: > On 2016/10/05 00:29:31, Bret Sepulveda wrote: > > On ...
4 years, 2 months ago (2016-10-05 21:24:27 UTC) #20
Bret
On 2016/10/05 21:24:27, jbauman wrote: > On 2016/10/05 01:29:54, jbauman wrote: > > On 2016/10/05 ...
4 years, 2 months ago (2016-10-05 21:31:06 UTC) #21
jbauman
On 2016/10/05 21:31:06, Bret Sepulveda wrote: > On 2016/10/05 21:24:27, jbauman wrote: > > On ...
4 years, 2 months ago (2016-10-05 21:45:34 UTC) #22
Bret
On 2016/10/05 21:45:34, jbauman wrote: > On 2016/10/05 21:31:06, Bret Sepulveda wrote: > > On ...
4 years, 2 months ago (2016-10-05 22:33:23 UTC) #23
jbauman
PTAL. This seems to work with getting the color from ColorizationColor.
4 years, 2 months ago (2016-10-06 02:30:22 UTC) #32
Peter Kasting
https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/themes/theme_properties.h File chrome/browser/themes/theme_properties.h (right): https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/themes/theme_properties.h#newcode160 chrome/browser/themes/theme_properties.h:160: COLOR_ACCENT_BORDER, Nit: Briefly describe what this is. https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/themes/theme_service_win.cc File ...
4 years, 2 months ago (2016-10-06 08:02:47 UTC) #33
Bret
https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/themes/theme_service_win.cc#newcode61 chrome/browser/themes/theme_service_win.cc:61: // This can accept alpha < 0 or > ...
4 years, 2 months ago (2016-10-06 20:48:10 UTC) #34
jbauman
PTAL. Modified the comments to your suggestions and switched the behavior to match Edge's.
4 years, 2 months ago (2016-10-06 23:12:06 UTC) #39
Bret
lgtm w nits https://codereview.chromium.org/2381283003/diff/60001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/2381283003/diff/60001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode105 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:105: // else DWM will draw a ...
4 years, 2 months ago (2016-10-07 18:21:56 UTC) #40
Peter Kasting
LGTM https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode296 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:296: // don't extend the glass in at all ...
4 years, 2 months ago (2016-10-11 20:01:39 UTC) #45
Bret
https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode296 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:296: // don't extend the glass in at all because ...
4 years, 2 months ago (2016-10-11 20:48:20 UTC) #46
jbauman
On 2016/10/11 20:48:20, Bret Sepulveda wrote: > https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc > File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc > (right): > > ...
4 years, 2 months ago (2016-10-11 20:55:24 UTC) #47
Peter Kasting
https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc File chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc (right): https://codereview.chromium.org/2381283003/diff/40001/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc#newcode296 chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc:296: // don't extend the glass in at all because ...
4 years, 2 months ago (2016-10-11 20:56:52 UTC) #48
Peter Kasting
On 2016/10/11 20:55:24, jbauman wrote: > I don't see any indication that the high byte ...
4 years, 2 months ago (2016-10-11 21:09:34 UTC) #49
Bret
https://codereview.chromium.org/2381283003/diff/80001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/2381283003/diff/80001/chrome/browser/themes/theme_service_win.cc#newcode89 chrome/browser/themes/theme_service_win.cc:89: // an 0xff alpha to make an opaque color. ...
4 years, 2 months ago (2016-10-11 21:10:15 UTC) #50
jbauman
On 2016/10/11 21:10:15, Bret Sepulveda wrote: > https://codereview.chromium.org/2381283003/diff/80001/chrome/browser/themes/theme_service_win.cc > File chrome/browser/themes/theme_service_win.cc (right): > > https://codereview.chromium.org/2381283003/diff/80001/chrome/browser/themes/theme_service_win.cc#newcode89 ...
4 years, 2 months ago (2016-10-11 21:24:53 UTC) #51
Peter Kasting
https://codereview.chromium.org/2381283003/diff/80001/chrome/browser/themes/theme_service_win.cc File chrome/browser/themes/theme_service_win.cc (right): https://codereview.chromium.org/2381283003/diff/80001/chrome/browser/themes/theme_service_win.cc#newcode89 chrome/browser/themes/theme_service_win.cc:89: // an 0xff alpha to make an opaque color. ...
4 years, 2 months ago (2016-10-11 21:26:26 UTC) #52
Bret
> As noted in my reply to jbauman, I think this is always 0x??RRGGBB, and ...
4 years, 2 months ago (2016-10-11 21:28:51 UTC) #53
jbauman
estade@: content/browser/themes OWNERS review.
4 years, 2 months ago (2016-10-11 22:56:35 UTC) #57
Evan Stade
I would have expected you to need to update ThemeProperties::GetDefaultColor. Can you get rid of ...
4 years, 2 months ago (2016-10-11 23:56:40 UTC) #60
jbauman
pkotwicz@: chrome/browser/themes/ OWNERS review
4 years, 2 months ago (2016-10-12 21:04:39 UTC) #66
pkotwicz
chrome/browser/themes/ LGTM
4 years, 2 months ago (2016-10-12 21:45:48 UTC) #67
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/2381283003/120001
4 years, 2 months ago (2016-10-13 01:31:05 UTC) #70
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-13 01:37:41 UTC) #71
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 01:41:02 UTC) #73
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/13552791a9ce4282df4ec658f07bf59a45ffb385
Cr-Commit-Position: refs/heads/master@{#424931}

Powered by Google App Engine
This is Rietveld 408576698