|
|
Combobox: Rename styles to STYLE_NORMAL and STYLE_ACTION and modify behaviors
This patch makes the combobox with STYLE_ACTION have the width same as the first item, whose index is 0.
When SYTLE_ACTION is used, the selected index remain 0 always. Besides, keyboard events don't change the index. Only the click event changes the index, and the index will be set 0 back after handling the event.
BUG= 333210
TEST=views_unittests --gtest_filter=ComboboxTest.*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248931
Total comments: 2
Total comments: 4
Total comments: 6
Total comments: 2
Total comments: 5
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+242 lines, -134 lines) |
Patch |
 |
M |
chrome/browser/chromeos/options/vpn_config_view.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/options/vpn_config_view.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/options/wifi_config_view.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/chromeos/options/wifi_config_view.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/autofill/autofill_dialog_views.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/autofill/autofill_dialog_views.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/translate/translate_bubble_view.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/translate/translate_bubble_view.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+20 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/translate/translate_bubble_view_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox.h
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+18 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox.cc
|
View
|
1
2
3
4
5
6
7
8
|
18 chunks |
+48 lines, -36 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox_listener.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+10 lines, -7 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/combobox/combobox_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
10 chunks |
+129 lines, -38 lines |
0 comments
|
Download
|
 |
M |
ui/views/examples/combobox_example.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/examples/combobox_example.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/examples/examples_window.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/examples/text_example.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/examples/text_example.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 39 (0 generated)
|