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

Issue 1514693006: Revert of Use a single views::MenuConfig instance for each platform (Closed)

Created:
5 years ago by johnme
Modified:
5 years ago
Reviewers:
tapted, sky, Evan Stade
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Use a single views::MenuConfig instance for each platform (patchset #7 id:140001 of https://codereview.chromium.org/1477253002/ ) Reason for revert: This broke compilation on https://build.chromium.org/p/chromium.android/builders/Android%20Aura%20Builder%20%28dbg%29/builds/2497/steps/compile/logs/stdio (the patch landed in an earlier build, but was masked by another compile failure :-|): ../../ui/views/controls/menu/menu_config.cc:45: error: undefined reference to 'views::MenuConfig::Init()' Original issue's description: > Use a single views::MenuConfig instance for each platform > > Most noticeably, always use the GTK-style menu layout on Desktop Linux. > > Previously, the MenuConfig used by a particular MenuItemView could be > affected by that View's Widget's GetNativeTheme(). > > This once allowed a menu to decide whether to use a ChromeOS-style menu > or a native Desktop-style menu config on the same platform. But that's > no longer needed, and makes trouble with the "Classic Theme" in Desktop > Linux. (e.g. because menus are not always in a Widget when they are > configured, so the native theme is hard to determine.) > > Using a single instance simplifies things and fixes a regression where > the Ash-style was being used on Desktop Linux, resulting in menus > without a border and unexpectedly large item padding. Regression due to > the combination of r344651, r345479, and r360168. > > Note this means --open-ash on Desktop Linux, and Metro mode on Windows, > will use non-Ash menus. See screenshots at http://crbug.com/544550#c13 > > BUG=415953, 544550 > > Committed: https://crrev.com/5d23f8c18f1d9fbf1655ece40b31d59dea443c60 > Cr-Commit-Position: refs/heads/master@{#363924} TBR=sky@chromium.org,estade@chromium.org,tapted@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=415953, 544550 Committed: https://crrev.com/2903ab2c274a0246c603b1b29d9967d3c9c8ff00 Cr-Commit-Position: refs/heads/master@{#364371}

Patch Set 1 #

Patch Set 2 : Rebase revert on https://codereview.chromium.org/1504743003 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -123 lines) Patch
M chrome/browser/ui/views/content_setting_bubble_contents.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 1 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu.cc View 1 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/cocoa/bridged_content_view.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_config.h View 1 2 chunks +10 lines, -3 lines 0 comments Download
M ui/views/controls/menu/menu_config.cc View 1 2 chunks +3 lines, -9 lines 0 comments Download
A + ui/views/controls/menu/menu_config_aura.cc View 1 2 chunks +29 lines, -2 lines 0 comments Download
D ui/views/controls/menu/menu_config_chromeos.cc View 1 chunk +0 lines, -37 lines 0 comments Download
D ui/views/controls/menu/menu_config_linux.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M ui/views/controls/menu/menu_config_mac.mm View 1 2 chunks +12 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_config_win.cc View 1 3 chunks +22 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_item_view.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 15 chunks +24 lines, -23 lines 0 comments Download
M ui/views/controls/menu/menu_scroll_view_container.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M ui/views/controls/menu/menu_separator.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_separator_views.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M ui/views/controls/menu/submenu_view.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download
M ui/views/views.gyp View 1 4 chunks +3 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
johnme
Created Revert of Use a single views::MenuConfig instance for each platform
5 years ago (2015-12-10 15:08:45 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514693006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514693006/1
5 years ago (2015-12-10 15:09:36 UTC) #2
commit-bot: I haz the power
Failed to apply patch for ui/views/controls/menu/native_menu_win.cc: While running git apply --index -3 -p1; error: patch ...
5 years ago (2015-12-10 15:10:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514693006/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514693006/280001
5 years ago (2015-12-10 16:10:04 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:280001)
5 years ago (2015-12-10 16:12:07 UTC) #9
commit-bot: I haz the power
5 years ago (2015-12-10 16:12:52 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2903ab2c274a0246c603b1b29d9967d3c9c8ff00
Cr-Commit-Position: refs/heads/master@{#364371}

Powered by Google App Engine
This is Rietveld 408576698