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

Issue 6783015: Improvements to tab title prefix eliding as per email discussions. (Closed)

Created:
9 years, 8 months ago by MAD
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Improvements to tab title prefix eliding as per email discussions. - Don't look for common title prefixes between pages from different hosts. - Bring down the minimal width of a tab title area from 10 to 6 chars. - Don't elide last 4 chars of the common prefix, and also don't elide if there is less than 7 common characters. BUG=None TEST=Try it! Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80492

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Total comments: 9

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -38 lines) Patch
M chrome/browser/ui/cocoa/tabs/tab_controller.h View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_controller.mm View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/title_prefix_matcher.h View 1 2 3 3 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/title_prefix_matcher.cc View 1 2 3 6 chunks +29 lines, -9 lines 0 comments Download
M chrome/browser/ui/title_prefix_matcher_unittest.cc View 1 2 3 6 chunks +82 lines, -19 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab.cc View 1 2 3 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab_strip.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
MAD
9 years, 8 months ago (2011-04-01 14:31:53 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/6783015/diff/4001/chrome/browser/ui/cocoa/tabs/tab_controller.mm File chrome/browser/ui/cocoa/tabs/tab_controller.mm (right): http://codereview.chromium.org/6783015/diff/4001/chrome/browser/ui/cocoa/tabs/tab_controller.mm#newcode312 chrome/browser/ui/cocoa/tabs/tab_controller.mm:312: [cell setDesiredCharactersToTruncateFromHead:length - 4]; Nit: Use constants for ...
9 years, 8 months ago (2011-04-01 17:28:31 UTC) #2
MAD
Addressed all comments... Could sail@ confirm the Mac changes are OK please? Thanks! BYE MAD ...
9 years, 8 months ago (2011-04-01 19:47:37 UTC) #3
sail
LGTM The Mac code looks good!
9 years, 8 months ago (2011-04-01 19:53:05 UTC) #4
Peter Kasting
LGTM http://codereview.chromium.org/6783015/diff/10002/chrome/browser/ui/views/tabs/base_tab.cc File chrome/browser/ui/views/tabs/base_tab.cc (left): http://codereview.chromium.org/6783015/diff/10002/chrome/browser/ui/views/tabs/base_tab.cc#oldcode8 chrome/browser/ui/views/tabs/base_tab.cc:8: Nit: Don't remove this blank line http://codereview.chromium.org/6783015/diff/10002/chrome/browser/ui/views/tabs/base_tab.cc File ...
9 years, 8 months ago (2011-04-01 20:19:20 UTC) #5
sky
LGTM http://codereview.chromium.org/6783015/diff/10002/chrome/browser/ui/title_prefix_matcher.cc File chrome/browser/ui/title_prefix_matcher.cc (right): http://codereview.chromium.org/6783015/diff/10002/chrome/browser/ui/title_prefix_matcher.cc#newcode18 chrome/browser/ui/title_prefix_matcher.cc:18: const int TitlePrefixMatcher::kCommonCharsToShow = 4; // static for ...
9 years, 8 months ago (2011-04-04 15:48:17 UTC) #6
MAD
Thanks... Will re-sync, re-build, re-try and then submit, now that I addressed all latest comments... ...
9 years, 8 months ago (2011-04-05 16:13:12 UTC) #7
commit-bot: I haz the power
9 years, 8 months ago (2011-04-05 18:48:35 UTC) #8

Powered by Google App Engine
This is Rietveld 408576698