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

Issue 59383003: Add the button style for combobox (Closed)

Created:
7 years, 1 month ago by hajimehoshi
Modified:
7 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, kenjibaheux, npentrel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add the button style for combobox Added a new style for combobox, which enables the users to click the text part of a combobox. Please see the screenshots at crbug/305494. BUG=305494 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240057

Patch Set 1 : . #

Total comments: 3

Patch Set 2 : Add Combobox::style_ for the button style #

Patch Set 3 : rebasing #

Total comments: 8

Patch Set 4 : (rebasing) #

Patch Set 5 : Add TransparentButton and use those #

Total comments: 28

Patch Set 6 : sky's review (2) #

Total comments: 22

Patch Set 7 : (rebasing) #

Patch Set 8 : sky's review (3) #

Total comments: 12

Patch Set 9 : (rebasing) #

Patch Set 10 : sky's review (4) #

Total comments: 6

Patch Set 11 : (rebasing) #

Patch Set 12 : sky's review (5) #

Total comments: 5

Patch Set 13 : sky's review (6) #

Total comments: 8

Patch Set 14 : (rebasing) #

Patch Set 15 : sky's review (7) #

Patch Set 16 : (rebasing) #

Patch Set 17 : warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+802 lines, -90 lines) Patch
M chrome/browser/ui/views/translate/translate_bubble_view.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +28 lines, -21 lines 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_left.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_left_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_left_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_right.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_right_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_bottom_right_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_left.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_left_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_left_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_right.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_right_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_center_right_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_bottom.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_bottom_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_bottom_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_center.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_center_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_center_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_top.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_top_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_menu_top_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_left.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_left_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_left_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_right.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_right_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_100_percent/common/combobox_button_top_right_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_left.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_left_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_left_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_right.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_right_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_bottom_right_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_left.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_left_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_left_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_right.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_right_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_center_right_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_bottom.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_bottom_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_bottom_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_center.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_center_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_center_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_top.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_top_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_menu_top_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_left.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_left_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_left_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_pressed.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_right.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_right_hover.png View 1 Binary file 0 comments Download
A ui/resources/default_200_percent/common/combobox_button_top_right_pressed.png View 1 Binary file 0 comments Download
M ui/resources/ui_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +36 lines, -0 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/controls/combobox/combobox.h View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +62 lines, -11 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 22 chunks +375 lines, -52 lines 0 comments Download
M ui/views/controls/combobox/combobox_listener.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/combobox/combobox_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +167 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_runner.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +14 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -0 lines 0 comments Download
A ui/views/controls/menu/menu_runner_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +31 lines, -0 lines 0 comments Download
A ui/views/test/menu_runner_test_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +37 lines, -0 lines 0 comments Download
A ui/views/test/menu_runner_test_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +26 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
hajimehoshi
Can you take a look? Thank you in advance. https://codereview.chromium.org/59383003/diff/80001/ui/views/controls/button/multi_target_button.cc File ui/views/controls/button/multi_target_button.cc (right): https://codereview.chromium.org/59383003/diff/80001/ui/views/controls/button/multi_target_button.cc#newcode21 ui/views/controls/button/multi_target_button.cc:21: ...
7 years, 1 month ago (2013-11-05 10:10:26 UTC) #1
sky
Why are we trying to do a new button here and not one that looks ...
7 years, 1 month ago (2013-11-05 16:29:36 UTC) #2
kenjibaheux
> Why are we trying to do a new button here and not one that ...
7 years, 1 month ago (2013-11-06 03:15:34 UTC) #3
kenjibaheux
https://codereview.chromium.org/59383003/diff/80001/ui/views/controls/button/multi_target_button.cc#newcode23 > ui/views/controls/button/multi_target_button.cc:23: button_ = new > views::LabelButton(this, menu_model->GetLabelAt(0)); > Using two buttons side by ...
7 years, 1 month ago (2013-11-06 03:20:37 UTC) #4
sky
You're taking two buttons and placing them side by side. How well the two look ...
7 years, 1 month ago (2013-11-06 14:36:39 UTC) #5
kenjibaheux
On 2013/11/06 14:36:39, sky wrote: > Additionally you should not need to create a new ...
7 years, 1 month ago (2013-11-07 04:39:06 UTC) #6
sky
Wow, are you saying we have a view that looks exactly like a combobox but ...
7 years, 1 month ago (2013-11-07 17:06:41 UTC) #7
sky
On 2013/11/07 17:06:41, sky wrote: > Wow, are you saying we have a view that ...
7 years, 1 month ago (2013-11-08 18:03:59 UTC) #8
hajimehoshi
On 2013/11/08 18:03:59, sky wrote: > On 2013/11/07 17:06:41, sky wrote: > > Wow, are ...
7 years, 1 month ago (2013-11-11 08:46:54 UTC) #9
hajimehoshi
Oops, I sent an incomplete message. Thank you for confirming the necessary of the new ...
7 years, 1 month ago (2013-11-11 08:50:46 UTC) #10
sky
You can always override OnPaint and paint whatever you need. On Mon, Nov 11, 2013 ...
7 years, 1 month ago (2013-11-11 15:56:02 UTC) #11
hajimehoshi
PTAL
7 years ago (2013-11-29 11:03:00 UTC) #12
sky
The size of this diff, and what appears to be very similar code to that ...
7 years ago (2013-12-02 21:28:54 UTC) #13
hajimehoshi
Thank you. I added 'TransparentButton' which is used when the button style is used. This ...
7 years ago (2013-12-03 10:30:52 UTC) #14
sky
https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc#newcode103 ui/views/controls/combobox/combobox.cc:103: // gfx::AnimationDelegate: Does SchedulePaint() on this always need to ...
7 years ago (2013-12-03 20:52:29 UTC) #15
hajimehoshi
Thank you! https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc#newcode103 ui/views/controls/combobox/combobox.cc:103: // gfx::AnimationDelegate: On 2013/12/03 20:52:30, sky wrote: ...
7 years ago (2013-12-04 06:30:01 UTC) #16
sky
Also, please add unit test coverage here. https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc#newcode103 ui/views/controls/combobox/combobox.cc:103: // gfx::AnimationDelegate: ...
7 years ago (2013-12-04 16:34:04 UTC) #17
hajimehoshi
Thank you! https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/280001/ui/views/controls/combobox/combobox.cc#newcode103 ui/views/controls/combobox/combobox.cc:103: // gfx::AnimationDelegate: On 2013/12/04 16:34:05, sky wrote: ...
7 years ago (2013-12-05 08:05:56 UTC) #18
sky
https://codereview.chromium.org/59383003/diff/330119/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/330119/ui/views/controls/combobox/combobox.cc#newcode306 ui/views/controls/combobox/combobox.cc:306: text_border_->SetInsets(8, 13, 8, 13); What I'm saying is you ...
7 years ago (2013-12-05 16:46:32 UTC) #19
hajimehoshi
Thank you! https://codereview.chromium.org/59383003/diff/330119/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/330119/ui/views/controls/combobox/combobox.cc#newcode306 ui/views/controls/combobox/combobox.cc:306: text_border_->SetInsets(8, 13, 8, 13); On 2013/12/05 16:46:32, ...
7 years ago (2013-12-06 12:27:03 UTC) #20
sky
https://codereview.chromium.org/59383003/diff/470001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/470001/ui/views/controls/combobox/combobox.cc#newcode122 ui/views/controls/combobox/combobox.cc:122: parent()->SchedulePaintInRect(bounds()); CustomButton::SetState does a SchedulePaint already, are you sure ...
7 years ago (2013-12-06 17:12:22 UTC) #21
hajimehoshi
Thank you! https://codereview.chromium.org/59383003/diff/470001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/59383003/diff/470001/ui/views/controls/combobox/combobox.cc#newcode122 ui/views/controls/combobox/combobox.cc:122: parent()->SchedulePaintInRect(bounds()); On 2013/12/06 17:12:23, sky wrote: > ...
7 years ago (2013-12-09 07:44:27 UTC) #22
sky
https://codereview.chromium.org/59383003/diff/520001/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/59383003/diff/520001/ui/views/controls/menu/menu_runner.h#newcode116 ui/views/controls/menu/menu_runner.h:116: void set_runner_core(MenuRunnerCore* runner_core) { Make this private and only ...
7 years ago (2013-12-09 14:54:03 UTC) #23
hajimehoshi
Thank you! Just a note to tell you that: https://codereview.chromium.org/59383003/diff/520001/ui/views/controls/menu/menu_runner_core.h File ui/views/controls/menu/menu_runner_core.h (right): https://codereview.chromium.org/59383003/diff/520001/ui/views/controls/menu/menu_runner_core.h#newcode17 ui/views/controls/menu/menu_runner_core.h:17: ...
7 years ago (2013-12-09 14:58:30 UTC) #24
sky
MenuRunnerHandler? On Mon, Dec 9, 2013 at 6:58 AM, <hajimehoshi@chromium.org> wrote: > Thank you! Just ...
7 years ago (2013-12-09 15:07:17 UTC) #25
hajimehoshi
Thank you! https://codereview.chromium.org/59383003/diff/520001/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/59383003/diff/520001/ui/views/controls/menu/menu_runner.h#newcode116 ui/views/controls/menu/menu_runner.h:116: void set_runner_core(MenuRunnerCore* runner_core) { On 2013/12/09 14:54:04, ...
7 years ago (2013-12-10 06:04:23 UTC) #26
sky
LGTM with the following changes. https://codereview.chromium.org/59383003/diff/540001/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/59383003/diff/540001/ui/views/controls/menu/menu_runner.h#newcode124 ui/views/controls/menu/menu_runner.h:124: void SetRunnerHandler(MenuRunnerHandler* runner_handler); scoped_ptr ...
7 years ago (2013-12-10 16:56:05 UTC) #27
hajimehoshi
Thank you! https://codereview.chromium.org/59383003/diff/540001/ui/views/controls/menu/menu_runner.h File ui/views/controls/menu/menu_runner.h (right): https://codereview.chromium.org/59383003/diff/540001/ui/views/controls/menu/menu_runner.h#newcode124 ui/views/controls/menu/menu_runner.h:124: void SetRunnerHandler(MenuRunnerHandler* runner_handler); On 2013/12/10 16:56:06, sky ...
7 years ago (2013-12-11 04:07:03 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/59383003/580001
7 years ago (2013-12-11 04:07:57 UTC) #29
commit-bot: I haz the power
Failed to apply patch for ui/views/controls/combobox/combobox.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-12-11 04:08:21 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/59383003/600001
7 years ago (2013-12-11 04:35:25 UTC) #31
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=201747
7 years ago (2013-12-11 04:59:20 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/59383003/620001
7 years ago (2013-12-11 05:39:33 UTC) #33
commit-bot: I haz the power
7 years ago (2013-12-11 09:03:32 UTC) #34
Message was sent while issue was closed.
Change committed as 240057

Powered by Google App Engine
This is Rietveld 408576698