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

Issue 1819443002: MacViews: draw combobox arrow backgrounds (Closed)

Created:
4 years, 9 months ago by Elly Fong-Jones
Modified:
4 years, 9 months ago
Reviewers:
tapted, sky, Evan Stade
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: draw combobox arrow backgrounds Combobox arrow backgrounds on Mac are a different color from the combobox text background. This CL introduces a Mac-specific ComboboxBackgroundMac class and a shim in PlatformStyle to allocate combobox backgrounds, which returns null on all other platforms. BUG=543683 Committed: https://crrev.com/bbfac0443569e1049214e2904524a31ddc16f951 Cr-Commit-Position: refs/heads/master@{#382910}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fixes! #

Total comments: 13

Patch Set 3 : use Background instead of a separate Part #

Total comments: 30

Patch Set 4 : final fixes #

Patch Set 5 : fix linux build #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -3 lines) Patch
M ui/gfx/color_palette.h View 1 1 chunk +9 lines, -0 lines 2 comments Download
M ui/native_theme/native_theme_mac.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ui/native_theme/native_theme_mac.mm View 1 2 2 chunks +33 lines, -0 lines 0 comments Download
M ui/views/controls/combobox/combobox.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 3 4 chunks +12 lines, -1 line 0 comments Download
M ui/views/controls/focusable_rounded_border_mac.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/examples/combobox_example.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/examples/combobox_example.cc View 1 3 chunks +8 lines, -0 lines 0 comments Download
A ui/views/style/mac/combobox_background_mac.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A ui/views/style/mac/combobox_background_mac.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (13 generated)
Elly Fong-Jones
tapted: ptal? :)
4 years, 9 months ago (2016-03-18 17:28:44 UTC) #3
tapted
We can perhaps pull out the `make-gradient-in-the-style-we-want-for-macviews` logic. Maybe that belongs in platform_style_mac.h/cc, and it ...
4 years, 9 months ago (2016-03-21 07:09:04 UTC) #4
Elly Fong-Jones
On 2016/03/21 07:09:04, tapted wrote: > We can perhaps pull out the `make-gradient-in-the-style-we-want-for-macviews` > logic. ...
4 years, 9 months ago (2016-03-21 18:50:54 UTC) #5
Elly Fong-Jones
https://codereview.chromium.org/1819443002/diff/1/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/1819443002/diff/1/ui/gfx/canvas.h#newcode77 ui/gfx/canvas.h:77: // This class represents a scoped state of a ...
4 years, 9 months ago (2016-03-21 18:53:56 UTC) #6
tapted
gah - I still want to try this out, but my laptop build just got ...
4 years, 9 months ago (2016-03-22 11:20:26 UTC) #7
tapted
https://codereview.chromium.org/1819443002/diff/1/ui/native_theme/native_theme.h File ui/native_theme/native_theme.h (right): https://codereview.chromium.org/1819443002/diff/1/ui/native_theme/native_theme.h#newcode48 ui/native_theme/native_theme.h:48: kComboboxArrowBackground, On 2016/03/21 18:53:56, Elly Jones wrote: > On ...
4 years, 9 months ago (2016-03-22 11:31:09 UTC) #8
Elly Fong-Jones
tapted, sky: ptal? :) https://codereview.chromium.org/1819443002/diff/20001/ui/gfx/color_palette.h File ui/gfx/color_palette.h (right): https://codereview.chromium.org/1819443002/diff/20001/ui/gfx/color_palette.h#newcode36 ui/gfx/color_palette.h:36: const SkColor kMaterialGrey300 = SkColorSetRGB(0xE0, ...
4 years, 9 months ago (2016-03-22 22:05:11 UTC) #11
tapted
lgtm - just a bunch of nits Q for sky: does NativeThemeMac seem like the ...
4 years, 9 months ago (2016-03-22 23:04:33 UTC) #12
sky
+estade in case he's curious about the changes to ui/gfx/color_palette.h . LGTM https://codereview.chromium.org/1819443002/diff/40001/ui/views/style/platform_style.cc File ui/views/style/platform_style.cc ...
4 years, 9 months ago (2016-03-22 23:54:30 UTC) #14
tapted
found time to play with this. still lgtm - just needs a visual tweak https://codereview.chromium.org/1819443002/diff/40001/ui/views/style/mac/combobox_background_mac.cc ...
4 years, 9 months ago (2016-03-23 03:08:01 UTC) #15
Elly Fong-Jones
https://codereview.chromium.org/1819443002/diff/40001/ui/gfx/color_palette.h File ui/gfx/color_palette.h (right): https://codereview.chromium.org/1819443002/diff/40001/ui/gfx/color_palette.h#newcode1 ui/gfx/color_palette.h:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
4 years, 9 months ago (2016-03-23 18:07:45 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1819443002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1819443002/60001
4 years, 9 months ago (2016-03-23 18:08:12 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/176584)
4 years, 9 months ago (2016-03-23 18:17:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1819443002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1819443002/80001
4 years, 9 months ago (2016-03-23 18:33:09 UTC) #25
Evan Stade
https://codereview.chromium.org/1819443002/diff/80001/ui/gfx/color_palette.h File ui/gfx/color_palette.h (right): https://codereview.chromium.org/1819443002/diff/80001/ui/gfx/color_palette.h#newcode34 ui/gfx/color_palette.h:34: const SkColor kMaterialBlue700 = SkColorSetRGB(0x19, 0x76, 0xD2); I'm kinda ...
4 years, 9 months ago (2016-03-23 18:50:26 UTC) #26
Elly Fong-Jones
https://codereview.chromium.org/1819443002/diff/80001/ui/gfx/color_palette.h File ui/gfx/color_palette.h (right): https://codereview.chromium.org/1819443002/diff/80001/ui/gfx/color_palette.h#newcode34 ui/gfx/color_palette.h:34: const SkColor kMaterialBlue700 = SkColorSetRGB(0x19, 0x76, 0xD2); On 2016/03/23 ...
4 years, 9 months ago (2016-03-23 19:32:01 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-23 20:11:43 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-23 20:12:54 UTC) #31
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/bbfac0443569e1049214e2904524a31ddc16f951
Cr-Commit-Position: refs/heads/master@{#382910}

Powered by Google App Engine
This is Rietveld 408576698