|
|
MenuButton: support Mac look & feel
This change:
* Factors arrow width calculation out of Combobox
* Generalizes ComboboxBackgroundMac so it can be used on any control
* Refactor MenuButton to use PlatformStyle for background and arrow
The ability to set the arrow image on MenuButton is removed; MenuButton will
now always use the appropriate PlatformStyle image.
To test this change, build views_examples_with_content_exe and choose Menu
from the combobox.
BUG= 605161
Total comments: 30
Total comments: 17
Total comments: 34
Total comments: 16
Total comments: 10
Total comments: 13
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+363 lines, -191 lines) |
Patch |
 |
M |
chrome/browser/ui/views/translate/translate_bubble_view.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -2 lines |
1 comment
|
Download
|
 |
M |
ui/gfx/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/gfx/gfx.gyp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
1 comment
|
Download
|
 |
M |
ui/gfx/scoped_canvas.h
|
View
|
1
2
3
4
5
|
2 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
 |
A |
ui/gfx/scoped_canvas.cc
|
View
|
1
2
3
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
ui/gfx/vector_icons/menu_button_arrow_mac.icon
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/button/menu_button.h
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+12 lines, -12 lines |
1 comment
|
Download
|
 |
M |
ui/views/controls/button/menu_button.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+41 lines, -23 lines |
3 comments
|
Download
|
 |
M |
ui/views/controls/button/menu_button_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+42 lines, -7 lines |
6 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox.h
|
View
|
1
2
3
4
5
|
6 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+29 lines, -72 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox_unittest.cc
|
View
|
1
2
3
4
|
28 chunks |
+75 lines, -42 lines |
0 comments
|
Download
|
 |
M |
ui/views/examples/combobox_example.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/examples/menu_example.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+36 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/style/mac/combobox_background_mac.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -1 line |
1 comment
|
Download
|
 |
M |
ui/views/style/mac/combobox_background_mac.cc
|
View
|
1
2
3
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/views/style/platform_style.h
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/style/platform_style.cc
|
View
|
1
2
3
4
|
2 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/style/platform_style_mac.mm
|
View
|
1
2
3
4
|
1 chunk |
+22 lines, -2 lines |
0 comments
|
Download
|
Total messages: 17 (4 generated)
|