|
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}
Committed: https://crrev.com/b8fc4b06aafee080c1df6766ac4a4b2528895f39
Cr-Commit-Position: refs/heads/master@{#364577}
Total comments: 7
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+100 lines, -219 lines) |
Patch |
 |
M |
chrome/browser/ui/views/content_setting_bubble_contents.h
|
View
|
1
2
3
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/content_setting_bubble_contents.cc
|
View
|
1
2
3
|
3 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/toolbar/app_menu.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/BUILD.gn
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/cocoa/bridged_content_view.mm
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_config.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_config.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
A |
ui/views/controls/menu/menu_config_android.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_config_aura.cc
|
View
|
1
2
3
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
 |
A + |
ui/views/controls/menu/menu_config_chromeos.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -29 lines |
0 comments
|
Download
|
 |
A |
ui/views/controls/menu/menu_config_linux.cc
|
View
|
1
2
3
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_config_mac.mm
|
View
|
1
2
3
|
2 chunks |
+1 line, -12 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_config_win.cc
|
View
|
1
2
3
|
3 chunks |
+1 line, -22 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_controller.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_host.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_item_view.h
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_item_view.cc
|
View
|
1
2
3
4
5
6
|
15 chunks |
+23 lines, -24 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_scroll_view_container.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_separator.h
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_separator_views.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/submenu_view.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/views/views.gyp
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+8 lines, -3 lines |
0 comments
|
Download
|
Total messages: 37 (16 generated)
|