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

Issue 175004: Ellipsize long entries in bookmark menus and the back/forward menus.... (Closed)

Created:
11 years, 3 months ago by Evan Stade
Modified:
9 years, 6 months ago
Reviewers:
tony, Elliot Glaysher
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

Ellipsize long entries in bookmark menus and the back/forward menus. Also ellipsize long tooltips. Also make the bookmark bar tooltips more like window (Title on one line, then url on the next line). I've made the title bold, although that isn't the case on windows. Menus: Prefer popping downwards rather than upwards when there is more space down than up. BUG=18617 BUG=20120 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24685

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -9 lines) Patch
M chrome/browser/gtk/back_forward_menu_model_gtk.cc View 1 2 chunks +9 lines, -1 line 2 comments Download
M chrome/browser/gtk/bookmark_menu_controller_gtk.cc View 1 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/gtk/bookmark_utils_gtk.cc View 4 chunks +29 lines, -4 lines 0 comments Download
M chrome/browser/gtk/go_button_gtk.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/gtk/menu_gtk.cc View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Evan Stade
11 years, 3 months ago (2009-08-27 22:50:29 UTC) #1
Elliot Glaysher
LGTM
11 years, 3 months ago (2009-08-27 22:54:06 UTC) #2
tony
http://codereview.chromium.org/175004/diff/3004/2007 File chrome/browser/gtk/back_forward_menu_model_gtk.cc (right): http://codereview.chromium.org/175004/diff/3004/2007#newcode33 Line 33: item_label_wstr = l10n_util::TruncateString(item_label_wstr, kMaxChars); It looks like there's ...
11 years, 3 months ago (2009-08-27 23:01:04 UTC) #3
Evan Stade
http://codereview.chromium.org/175004/diff/3004/2007 File chrome/browser/gtk/back_forward_menu_model_gtk.cc (right): http://codereview.chromium.org/175004/diff/3004/2007#newcode33 Line 33: item_label_wstr = l10n_util::TruncateString(item_label_wstr, kMaxChars); On 2009/08/27 23:01:04, tony ...
11 years, 3 months ago (2009-08-27 23:02:27 UTC) #4
tony
11 years, 3 months ago (2009-08-27 23:10:46 UTC) #5
On 2009/08/27 23:02:27, Evan Stade wrote:
> http://codereview.chromium.org/175004/diff/3004/2007
> File chrome/browser/gtk/back_forward_menu_model_gtk.cc (right):
> 
> http://codereview.chromium.org/175004/diff/3004/2007#newcode33
> Line 33: item_label_wstr = l10n_util::TruncateString(item_label_wstr,
> kMaxChars);
> On 2009/08/27 23:01:04, tony wrote:
> > It looks like there's an width-chars property on GtkMenuItem.  Can we use
that
> > instead?
> 
> The "width-chars" style property
> 
>   "width-chars"              gint                  : Read
> The minimum desired width of the menu item in characters.

Ah right, I should actually read the docs.

LGTM

Powered by Google App Engine
This is Rietveld 408576698