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

Issue 16279002: bookmarks: Convert "Remove" link into a LabelButton. (Closed)

Created:
7 years, 6 months ago by tfarina
Modified:
7 years, 6 months ago
Reviewers:
msw, fdoray, sky
CC:
chromium-reviews, Sebastien Gabriel, stromme
Visibility:
Public.

Description

bookmarks: Convert "Remove" link into a LabelButton. This also tweaked all the paddings/spacings all around to make the bubble really closer to the mocks. BUG=231694 TEST=ctrl+D or press the star button in the omnibox, observe the Bookmark Bubble, there should be a "Remove" Button in the left side of "Edit.." button. R=msw@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207802

Patch Set 1 #

Total comments: 2

Patch Set 2 : getting there #

Total comments: 15

Patch Set 3 : override GetMinimumSize() #

Total comments: 4

Patch Set 4 : Spacing #

Patch Set 5 : a bunch of changes #

Total comments: 6

Patch Set 6 : SetTitle() changes #

Patch Set 7 : kSecondColumnSetID -> kFirstColumnSecondID #

Total comments: 6

Patch Set 8 : Mike changes #

Total comments: 8

Patch Set 9 : more Mike changes #

Total comments: 11

Patch Set 10 : revert IDS_ changes and set_color() #

Total comments: 7

Patch Set 11 : background color and SetArrowPaintType #

Total comments: 2

Patch Set 12 : reuse it #

Total comments: 4

Patch Set 13 : final changes? #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -77 lines) Patch
M chrome/app/bookmarks_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +54 lines, -63 lines 1 comment Download

Messages

Total messages: 36 (0 generated)
msw
https://codereview.chromium.org/16279002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/1/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode196 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:196: // Bottom (buttons) row. Try a different approach: Remove ...
7 years, 6 months ago (2013-05-31 23:13:48 UTC) #1
msw
https://codereview.chromium.org/16279002/diff/4001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/4001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode169 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:169: views::Label* title_label = new views::Label( Try GetBubbleFrameView()->SetTitle(...); remove this, ...
7 years, 6 months ago (2013-06-01 01:07:27 UTC) #2
msw
https://codereview.chromium.org/16279002/diff/4001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (left): https://codereview.chromium.org/16279002/diff/4001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#oldcode131 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:131: Override GetPreferredSize() or GetMinimumSize to return: view::Size size(views::BubbleDelegateView::GetPreferredSize()); size.SetToMax((gfx::Size(kMinBubbleWidth, ...
7 years, 6 months ago (2013-06-01 01:18:48 UTC) #3
msw
looking good https://codereview.chromium.org/16279002/diff/9001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/9001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode43 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:43: // Minimum width for the fields - ...
7 years, 6 months ago (2013-06-01 02:05:53 UTC) #4
tfarina
https://codereview.chromium.org/16279002/diff/4001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/4001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode47 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:47: const int kMinimumFieldSize = 180; On 2013/06/01 01:18:48, msw ...
7 years, 6 months ago (2013-06-01 03:33:42 UTC) #5
tfarina
http://imgur.com/seLBEEJ
7 years, 6 months ago (2013-06-01 03:34:14 UTC) #6
msw
https://codereview.chromium.org/16279002/diff/15001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/15001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode40 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:40: // Minimum size of the bubble. This is used ...
7 years, 6 months ago (2013-06-01 18:04:38 UTC) #7
tfarina
patch set 6 -> http://imgur.com/Dows9BK https://codereview.chromium.org/16279002/diff/15001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/15001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode40 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:40: // Minimum size of ...
7 years, 6 months ago (2013-06-01 19:43:37 UTC) #8
msw
I think this is looking pretty good, but want to confirm with PM/UX. +CC Sebastien ...
7 years, 6 months ago (2013-06-02 20:59:51 UTC) #9
tfarina
before -> http://imgur.com/t65iLri after -> http://imgur.com/Dows9BK
7 years, 6 months ago (2013-06-03 01:06:38 UTC) #10
tfarina
patch set 8 -> http://imgur.com/uSbQmDu https://codereview.chromium.org/16279002/diff/24001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/24001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode44 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:44: // The padding used ...
7 years, 6 months ago (2013-06-03 23:45:31 UTC) #11
msw
This is so close to spec, that Sebastien and Andrew believe that we should finish ...
7 years, 6 months ago (2013-06-04 00:57:46 UTC) #12
tfarina
https://codereview.chromium.org/16279002/diff/29001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/29001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode323 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:323: GetBubbleFrameView()->SetTitle(l10n_util::GetStringUTF16( On 2013/06/04 00:57:47, msw wrote: > Please also ...
7 years, 6 months ago (2013-06-08 23:33:21 UTC) #13
msw
https://codereview.chromium.org/16279002/diff/29001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/29001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode323 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:323: GetBubbleFrameView()->SetTitle(l10n_util::GetStringUTF16( On 2013/06/08 23:33:21, tfarina wrote: > On 2013/06/04 ...
7 years, 6 months ago (2013-06-10 18:23:47 UTC) #14
tfarina
On Mon, Jun 3, 2013 at 9:57 PM, <msw@chromium.org> wrote: > I have made all ...
7 years, 6 months ago (2013-06-15 18:44:19 UTC) #15
tfarina
Now the completed diff (with cocoa, ios, and gtk changes included). It's against the latest ...
7 years, 6 months ago (2013-06-15 18:52:26 UTC) #16
tfarina
Mike! The ISP guys were here and changed my modem and that fixed the issue ...
7 years, 6 months ago (2013-06-15 20:13:10 UTC) #17
msw
This is looking really good, almost as close to the mocks as possible. Sorry I ...
7 years, 6 months ago (2013-06-15 20:51:44 UTC) #18
tfarina
Patch set 10 -> http://imgur.com/UHeELRx https://codereview.chromium.org/16279002/diff/44001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.chromium.org/16279002/diff/44001/chrome/app/bookmarks_strings.grdp#newcode186 chrome/app/bookmarks_strings.grdp:186: <message name="IDS_BOOKMARK_BUBBLE_REMOVE_BUTTON" desc="Title of ...
7 years, 6 months ago (2013-06-16 13:47:17 UTC) #19
msw
https://codereview.chromium.org/16279002/diff/53001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/53001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode42 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:42: const int kMinBubbleWidth = 350; The width did not ...
7 years, 6 months ago (2013-06-16 22:14:31 UTC) #20
tfarina
patch set 11 -> http://imgur.com/SDFFO0N https://codereview.chromium.org/16279002/diff/53001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/53001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode144 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:144: set_color(GetNativeTheme()->GetSystemColor( On 2013/06/16 22:14:31, ...
7 years, 6 months ago (2013-06-20 19:32:50 UTC) #21
msw
Looks great! LGTM with nits. Scott, please take a look. Should all platforms should use ...
7 years, 6 months ago (2013-06-20 19:48:55 UTC) #22
tfarina
https://codereview.chromium.org/16279002/diff/53001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right): https://codereview.chromium.org/16279002/diff/53001/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc#newcode42 chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:42: const int kMinBubbleWidth = 350; On 2013/06/20 19:48:56, msw ...
7 years, 6 months ago (2013-06-20 20:06:41 UTC) #23
msw
https://codereview.chromium.org/16279002/diff/69001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.chromium.org/16279002/diff/69001/chrome/app/bookmarks_strings.grdp#newcode186 chrome/app/bookmarks_strings.grdp:186: <message name="IDS_BOOKMARK_BUBBLE_REMOVE_BOOKMARK" desc="Title of the button for removing the ...
7 years, 6 months ago (2013-06-20 20:12:46 UTC) #24
tfarina
Patch set 13 -> http://imgur.com/cMMHl9h https://codereview.chromium.org/16279002/diff/69001/chrome/app/bookmarks_strings.grdp File chrome/app/bookmarks_strings.grdp (right): https://codereview.chromium.org/16279002/diff/69001/chrome/app/bookmarks_strings.grdp#newcode186 chrome/app/bookmarks_strings.grdp:186: <message name="IDS_BOOKMARK_BUBBLE_REMOVE_BOOKMARK" desc="Title of ...
7 years, 6 months ago (2013-06-20 21:14:50 UTC) #25
msw
LGTM. Scott should review for OWNERS. Andrew and Sebastien should check that this is a ...
7 years, 6 months ago (2013-06-20 21:22:32 UTC) #26
sky
Mike, are you making sure Andrew and Sebastien want this change?
7 years, 6 months ago (2013-06-20 21:41:08 UTC) #27
msw
On 2013/06/20 21:41:08, sky wrote: > Mike, are you making sure Andrew and Sebastien want ...
7 years, 6 months ago (2013-06-20 21:45:26 UTC) #28
sky
LGTM
7 years, 6 months ago (2013-06-20 21:46:25 UTC) #29
msw
sgabriel: "Yes we should make it a button"
7 years, 6 months ago (2013-06-20 22:38:58 UTC) #30
tfarina
Committed patchset #13 manually as r207802 (presubmit successful).
7 years, 6 months ago (2013-06-21 12:35:59 UTC) #31
tfarina
Mike, the SetTitle() thing broke a test: http://build.chromium.org/p/chromium.win/builders/Interactive%20Tests%20%28dbg%29/builds/38961/steps/interactive_ui_tests/logs/BookmarkAPageTest This will have to be reverted.
7 years, 6 months ago (2013-06-21 14:05:29 UTC) #32
msw
On 2013/06/21 14:05:29, tfarina wrote: > Mike, the SetTitle() thing broke a test: > > ...
7 years, 6 months ago (2013-06-21 15:25:00 UTC) #33
fdoray
I'm working on a sync promo message in this bubble. I added a question to ...
7 years, 6 months ago (2013-06-25 19:01:28 UTC) #34
msw
On 2013/06/25 19:01:28, fdoray wrote: > I'm working on a sync promo message in this ...
7 years, 6 months ago (2013-06-25 19:29:07 UTC) #35
msw
7 years, 6 months ago (2013-06-25 19:29:08 UTC) #36
Message was sent while issue was closed.
On 2013/06/25 19:01:28, fdoray wrote:
> I'm working on a sync promo message in this bubble. I added a question to
better
> understand your code.
> 
>
https://codereview.chromium.org/16279002/diff/74001/chrome/browser/ui/views/b...
> File chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc (right):
> 
>
https://codereview.chromium.org/16279002/diff/74001/chrome/browser/ui/views/b...
> chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc:234:
> set_margins(gfx::Insets(0, 19, 18, 18));
> Why is 19px on the left and 18px on the right? Is it -1 on the right to
> compensate the text field/combo box/button border? Thanks.

Yeah, it's just to match the label (left) and button/combobox/textfield assets
(right) insets to match the spec.
We could probably change it to make them consistent if that matters for some
reason.

Powered by Google App Engine
This is Rietveld 408576698