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

Issue 1454583002: Change Views menus to consistently use GetNativeTheme for theming. (Closed)

Created:
5 years, 1 month ago by Evan Stade
Modified:
5 years, 1 month ago
Reviewers:
sky
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

Change Views menus to consistently use GetNativeTheme for theming. Prior to this patch, the menus used a mixture of GetNativeTheme() for most colors (except the border color) and a passed-in NativeTheme for menu configs (padding, etc.). This consolidates to the former. crrev.com/563454636cfe3df6a57 broke menus because the passed-in NativeTheme was of the NativeThemeDark* variety, and MenuConfig depends on whether it matches various NativeTheme::instance() instances. BUG=501377, 415953 Committed: https://crrev.com/99eaa0d2b320691b295ac7d5ab27aae4896a9cba Cr-Commit-Position: refs/heads/master@{#360168}

Patch Set 1 #

Patch Set 2 : dont need it #

Patch Set 3 : self review #

Total comments: 2

Patch Set 4 : get menu config from item #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -53 lines) Patch
M ui/views/controls/menu/menu_config.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_config.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller.h View 3 chunks +1 line, -5 lines 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 3 chunks +5 lines, -6 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 chunk +1 line, -4 lines 0 comments Download
M ui/views/controls/menu/menu_runner_impl.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/controls/menu/menu_scroll_view_container.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_scroll_view_container.cc View 1 5 chunks +31 lines, -23 lines 0 comments Download
M ui/views/controls/menu/menu_separator_win.cc View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (7 generated)
Evan Stade
I don't think this fixes crbug.com/415953 but it's certainly related. It should fix the problems ...
5 years, 1 month ago (2015-11-17 02:35:22 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1454583002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1454583002/40001
5 years, 1 month ago (2015-11-17 02:36:07 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/141566) mac_chromium_gn_rel on ...
5 years, 1 month ago (2015-11-17 02:47:12 UTC) #7
sky
https://codereview.chromium.org/1454583002/diff/40001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1454583002/diff/40001/ui/views/controls/menu/menu_controller.cc#newcode1734 ui/views/controls/menu/menu_controller.cc:1734: static MenuConfig* menu_config = nullptr; I don't like the ...
5 years, 1 month ago (2015-11-17 18:22:24 UTC) #8
Evan Stade
https://codereview.chromium.org/1454583002/diff/40001/ui/views/controls/menu/menu_controller.cc File ui/views/controls/menu/menu_controller.cc (right): https://codereview.chromium.org/1454583002/diff/40001/ui/views/controls/menu/menu_controller.cc#newcode1734 ui/views/controls/menu/menu_controller.cc:1734: static MenuConfig* menu_config = nullptr; On 2015/11/17 18:22:24, sky ...
5 years, 1 month ago (2015-11-17 18:54:33 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1454583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1454583002/60001
5 years, 1 month ago (2015-11-17 18:57:10 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-17 19:41:36 UTC) #13
sky
On 2015/11/17 18:54:33, Evan Stade wrote: > https://codereview.chromium.org/1454583002/diff/40001/ui/views/controls/menu/menu_controller.cc > File ui/views/controls/menu/menu_controller.cc (right): > > https://codereview.chromium.org/1454583002/diff/40001/ui/views/controls/menu/menu_controller.cc#newcode1734 ...
5 years, 1 month ago (2015-11-17 21:21:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1454583002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1454583002/60001
5 years, 1 month ago (2015-11-17 21:35:59 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-17 21:40:29 UTC) #17
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 21:41:31 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/99eaa0d2b320691b295ac7d5ab27aae4896a9cba
Cr-Commit-Position: refs/heads/master@{#360168}

Powered by Google App Engine
This is Rietveld 408576698