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

Issue 2813703003: Use NativeTheme to draw vertical menu separators. (Closed)

Created:
3 years, 8 months ago by Evan Stade
Modified:
3 years, 8 months ago
CC:
chromium-reviews, tfarina, Tom Anderson
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use NativeTheme to draw vertical menu separators. Use NativeTheme to draw vertical menu separators ("menu button border") so that they look like native horizontal separators instead of being subtly different. For now the GTK theme doesn't have a way to draw vertical separators, so the old way of doing things (SkCanvas::drawRect) is retained, just moved from app_menu.cc to native_theme_gtk3.cc. BUG=710159 TBR=sadrul@chromium.org Review-Url: https://codereview.chromium.org/2813703003 Cr-Commit-Position: refs/heads/master@{#464930} Committed: https://chromium.googlesource.com/chromium/src/+/944eab72bd2c478b03195680ef033b1d88aa85cc

Patch Set 1 #

Patch Set 2 : . #

Total comments: 6

Patch Set 3 : remove dead code from win #

Patch Set 4 : ick #

Patch Set 5 : fix win? #

Patch Set 6 : use rectf #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -160 lines) Patch
M chrome/browser/ui/libgtkui/native_theme_gtk2.cc View 1 1 chunk +1 line, -7 lines 0 comments Download
M chrome/browser/ui/libgtkui/native_theme_gtk3.cc View 1 3 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu.cc View 1 2 3 2 chunks +12 lines, -20 lines 0 comments Download
M ui/base/models/menu_separator_types.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M ui/native_theme/common_theme.cc View 1 3 chunks +1 line, -11 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M ui/native_theme/native_theme_dark_aura.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ui/native_theme/native_theme_mac.mm View 1 1 chunk +0 lines, -5 lines 0 comments Download
M ui/native_theme/native_theme_win.h View 1 2 4 chunks +2 lines, -12 lines 0 comments Download
M ui/native_theme/native_theme_win.cc View 1 2 3 4 5 7 chunks +20 lines, -90 lines 0 comments Download
M ui/views/controls/menu/menu_separator.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (20 generated)
Evan Stade
I haven't checked whether this works on Mac and Windows. It does work on Chrome ...
3 years, 8 months ago (2017-04-10 21:49:33 UTC) #3
Tom Anderson
libgtkui lgtm Thanks for the cleanup! Will see if I can add the gtk3 impl ...
3 years, 8 months ago (2017-04-10 22:00:10 UTC) #5
Peter Kasting
It looks like PaintMenuSeparator() on windows is implemented in two ways: one which works on ...
3 years, 8 months ago (2017-04-10 22:08:35 UTC) #6
tapted
mac doesn't need an entire bandaid, but it's probably an opportune time to fix a ...
3 years, 8 months ago (2017-04-11 02:48:06 UTC) #7
Evan Stade
On 2017/04/10 22:08:35, Peter Kasting wrote: > It looks like PaintMenuSeparator() on windows is implemented ...
3 years, 8 months ago (2017-04-11 17:53:12 UTC) #8
tapted
Those app_menu.cc changes and the mac perspective lgtm . Removing that HDC drawing stuff also ...
3 years, 8 months ago (2017-04-12 00:31:17 UTC) #13
Evan Stade
+bsep, can you help me test this on Windows? Basically just making sure that the ...
3 years, 8 months ago (2017-04-12 15:35:57 UTC) #15
Bret
On 2017/04/12 15:35:57, Evan Stade wrote: > +bsep, can you help me test this on ...
3 years, 8 months ago (2017-04-12 19:55:34 UTC) #20
Evan Stade
On 2017/04/12 19:55:34, Bret Sepulveda wrote: > On 2017/04/12 15:35:57, Evan Stade wrote: > > ...
3 years, 8 months ago (2017-04-12 20:56:30 UTC) #21
Peter Kasting
I agree that removing the old HDC_based methods for these is safe. LGTM on windows ...
3 years, 8 months ago (2017-04-13 00:22:23 UTC) #22
Evan Stade
I think I fixed the issue. I copied the Windows code to ChromeOS to debug, ...
3 years, 8 months ago (2017-04-14 16:29:09 UTC) #23
Evan Stade
On 2017/04/14 16:29:09, Evan Stade wrote: > I think I fixed the issue. I copied ...
3 years, 8 months ago (2017-04-14 16:33:54 UTC) #24
Peter Kasting
LGTM but consider filing a followup bug on the canvas type conversion stuff you mentioned
3 years, 8 months ago (2017-04-14 16:38:34 UTC) #25
Bret
On 2017/04/14 16:29:09, Evan Stade wrote: > I think I fixed the issue. I copied ...
3 years, 8 months ago (2017-04-14 18:59:27 UTC) #26
Evan Stade
On 2017/04/14 18:59:27, Bret Sepulveda wrote: > On 2017/04/14 16:29:09, Evan Stade wrote: > > ...
3 years, 8 months ago (2017-04-14 19:05:17 UTC) #27
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/2813703003/100001
3 years, 8 months ago (2017-04-14 19:05:42 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/411710)
3 years, 8 months ago (2017-04-14 19:14:44 UTC) #32
Evan Stade
+sadrul for ui/base/models/menu_separator_types.h
3 years, 8 months ago (2017-04-14 22:39:52 UTC) #34
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/2813703003/100001
3 years, 8 months ago (2017-04-17 15:21:49 UTC) #37
commit-bot: I haz the power
3 years, 8 months ago (2017-04-17 16:39:23 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/944eab72bd2c478b03195680ef03...

Powered by Google App Engine
This is Rietveld 408576698