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

Issue 298813002: views: Move MenuButton from TextButton to LabelButton. (Closed)

Created:
6 years, 7 months ago by Elliot Glaysher
Modified:
6 years, 6 months ago
Reviewers:
msw, sky
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, extensions-reviews_chromium.org, benquan, tfarina, Dane Wallinga, dyu1, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, markusheintz_, Ilya Sherman, rouslan+autofillwatch_chromium.org
Visibility:
Public.

Description

views: Move MenuButton from TextButton to LabelButton. This also converts the TextButtons in the BookmarkBarView to LabelButtons, since they need to have the same base class as MenuButton does. This also standardizes on fade eliding instead of fade eliding sometimes and ellipsis eliding in other cases. This patch has the effect that everything on the bookmark bar also renders with GTK+ borders in GTK theme mode on Linux. BUG=155363 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277878

Patch Set 1 #

Patch Set 2 : Remove stray marks. #

Patch Set 3 : NewAvatarButton is still probably broken, but I want to see what the trybots say. #

Patch Set 4 : Reassessing. Close to done? #

Patch Set 5 : Fix the button depressed issue in Permission selector by fixing Gtk2Border #

Patch Set 6 : Fix the NewAvatarButton by restricting space in LabelButton. #

Total comments: 2

Patch Set 7 : Remove stray LOG #

Total comments: 19

Patch Set 8 : Nits + Rebase #

Patch Set 9 : Try fixing linux compile wrt NewAvatarButton. #

Total comments: 4

Patch Set 10 : Final nits. #

Patch Set 11 : Merge with ananta's patch. #

Patch Set 12 : Rebase to ToT #

Patch Set 13 : Disable DragDirectlyToSecondWindow. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -241 lines) Patch
M chrome/browser/ui/libgtk2ui/gtk2_border.h View 1 2 3 4 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_border.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +4 lines, -15 lines 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/autofill/autofill_dialog_views.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 19 chunks +70 lines, -41 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc View 1 2 3 34 chunks +35 lines, -35 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/content_setting_bubble_contents.cc View 1 2 3 3 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/avatar_label.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +21 lines, -26 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_test_util_views.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_action_view.cc View 1 2 3 4 5 6 7 8 chunks +14 lines, -22 lines 0 comments Download
M chrome/browser/ui/views/toolbar/browser_actions_container.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_toolbar_button.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/wrench_toolbar_button.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permission_selector_view.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -24 lines 0 comments Download
M chrome/browser/ui/views/website_settings/permissions_bubble_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/search_box_view.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M ui/message_center/views/notifier_settings_view.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/button_drag_utils.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -1 line 0 comments Download
M ui/views/button_drag_utils.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +18 lines, -6 lines 0 comments Download
M ui/views/controls/button/custom_button.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/button/label_button.h View 1 2 3 4 5 3 chunks +9 lines, -1 line 0 comments Download
M ui/views/controls/button/label_button.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -2 lines 0 comments Download
M ui/views/controls/button/menu_button.h View 1 2 3 4 5 4 chunks +6 lines, -5 lines 0 comments Download
M ui/views/controls/button/menu_button.cc View 1 2 3 4 5 6 7 8 chunks +19 lines, -7 lines 0 comments Download
M ui/views/controls/button/radio_button.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/linux_ui/linux_ui.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 31 (0 generated)
Elliot Glaysher
https://codereview.chromium.org/298813002/diff/100001/chrome/browser/ui/libgtk2ui/gtk2_border.cc File chrome/browser/ui/libgtk2ui/gtk2_border.cc (left): https://codereview.chromium.org/298813002/diff/100001/chrome/browser/ui/libgtk2ui/gtk2_border.cc#oldcode160 chrome/browser/ui/libgtk2ui/gtk2_border.cc:160: // This logic should be kept in sync with ...
6 years, 6 months ago (2014-06-07 00:06:36 UTC) #1
sky
https://codereview.chromium.org/298813002/diff/110001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/298813002/diff/110001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode1113 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:1113: const gfx::Point& press_pt, I think you're missing the offset ...
6 years, 6 months ago (2014-06-09 15:42:00 UTC) #2
msw
https://codereview.chromium.org/298813002/diff/110001/chrome/browser/ui/views/autofill/autofill_dialog_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_views.cc (left): https://codereview.chromium.org/298813002/diff/110001/chrome/browser/ui/views/autofill/autofill_dialog_views.cc#oldcode510 chrome/browser/ui/views/autofill/autofill_dialog_views.cc:510: // This allows the button to shrink if the ...
6 years, 6 months ago (2014-06-09 17:18:40 UTC) #3
Elliot Glaysher
https://codereview.chromium.org/298813002/diff/110001/chrome/browser/ui/views/autofill/autofill_dialog_views.cc File chrome/browser/ui/views/autofill/autofill_dialog_views.cc (left): https://codereview.chromium.org/298813002/diff/110001/chrome/browser/ui/views/autofill/autofill_dialog_views.cc#oldcode510 chrome/browser/ui/views/autofill/autofill_dialog_views.cc:510: // This allows the button to shrink if the ...
6 years, 6 months ago (2014-06-11 00:27:28 UTC) #4
msw
lgtm with nits; thanks! https://codereview.chromium.org/298813002/diff/150001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc (right): https://codereview.chromium.org/298813002/diff/150001/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc#newcode167 chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc:167: SetElideBehavior(gfx::FADE_TAIL); This changed the appearance ...
6 years, 6 months ago (2014-06-11 00:55:46 UTC) #5
sky
LGTM
6 years, 6 months ago (2014-06-11 15:46:09 UTC) #6
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 6 months ago (2014-06-11 18:13:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/298813002/170001
6 years, 6 months ago (2014-06-11 18:16:44 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device_ninja on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 20:52:18 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 20:56:42 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/37967) win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/26109)
6 years, 6 months ago (2014-06-11 20:56:44 UTC) #11
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 6 months ago (2014-06-12 18:07:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/298813002/170001
6 years, 6 months ago (2014-06-12 18:10:08 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device_ninja on tryserver.chromium ...
6 years, 6 months ago (2014-06-12 21:14:26 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-12 21:21:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/22264)
6 years, 6 months ago (2014-06-12 21:21:57 UTC) #16
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 6 months ago (2014-06-13 18:21:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/298813002/190001
6 years, 6 months ago (2014-06-13 18:23:04 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-13 22:29:19 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-14 00:57:15 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/27377)
6 years, 6 months ago (2014-06-14 00:57:16 UTC) #21
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 6 months ago (2014-06-16 19:56:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/298813002/210001
6 years, 6 months ago (2014-06-16 19:57:25 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-17 04:41:40 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/28031)
6 years, 6 months ago (2014-06-17 04:41:42 UTC) #25
Elliot Glaysher
I am disabling TabDragging/DetachToBrowserTabDragControllerTest.DragDirectlyToSecondWindow/0. It is already disabled on all other platforms due to flake, ...
6 years, 6 months ago (2014-06-17 17:29:58 UTC) #26
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 6 months ago (2014-06-17 17:42:27 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/298813002/230001
6 years, 6 months ago (2014-06-17 17:44:21 UTC) #28
commit-bot: I haz the power
Change committed as 277878
6 years, 6 months ago (2014-06-17 22:11:29 UTC) #29
jackhou1
A revert of this CL has been created in https://codereview.chromium.org/340003002/ by jackhou@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-18 07:21:48 UTC) #30
jackhou1
6 years, 6 months ago (2014-06-18 07:26:46 UTC) #31
Message was sent while issue was closed.
Sorry to revert such a big CL. I did test reverting it in my local repo from
ToT, and it fixed the test.

Powered by Google App Engine
This is Rietveld 408576698