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

Issue 6579050: Elides the beginning of tab titles that have common prefixes. ... (Closed)

Created:
9 years, 10 months ago by MAD
Modified:
9 years, 7 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Elides the beginning of tab titles that have common prefixes. BUG=69304 TEST=Make sure the tab titles are displayed as spec'd, and that there isn't any performance issues. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77860

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 35

Patch Set 5 : '' #

Total comments: 8

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 16

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 2

Patch Set 12 : Elides the beginning of tab titles that have common prefixes. ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -6 lines) Patch
A chrome/browser/ui/title_prefix_matcher.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/ui/title_prefix_matcher.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +96 lines, -0 lines 0 comments Download
A chrome/browser/ui/title_prefix_matcher_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +112 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/base_tab_strip.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/base_tab_strip.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/text/text_elider.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/text/text_elider.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M ui/base/text/text_elider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
MAD
I think you are the one that most recently (and more often) touched the code ...
9 years, 10 months ago (2011-02-25 04:15:43 UTC) #1
MAD
On 2011/02/25 04:15:43, MAD wrote: > I think you are the one that most recently ...
9 years, 10 months ago (2011-02-25 14:47:02 UTC) #2
sky
http://codereview.chromium.org/6579050/diff/12001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): http://codereview.chromium.org/6579050/diff/12001/chrome/browser/about_flags.cc#newcode268 chrome/browser/about_flags.cc:268: kOsAll, Your patch only effects windows and chromeos. http://codereview.chromium.org/6579050/diff/12001/chrome/browser/ui/views/tabs/base_tab_strip.cc ...
9 years, 10 months ago (2011-02-25 17:02:07 UTC) #3
sky
http://codereview.chromium.org/6579050/diff/12001/chrome/browser/ui/views/tabs/base_tab_strip.h File chrome/browser/ui/views/tabs/base_tab_strip.h (right): http://codereview.chromium.org/6579050/diff/12001/chrome/browser/ui/views/tabs/base_tab_strip.h#newcode199 chrome/browser/ui/views/tabs/base_tab_strip.h:199: virtual void UpdateCommonTitlePrefix(); On 2011/02/25 17:02:07, sky wrote: > ...
9 years, 10 months ago (2011-02-25 17:03:03 UTC) #4
Peter Kasting
http://codereview.chromium.org/6579050/diff/12001/chrome/browser/ui/views/tabs/base_tab_strip.cc File chrome/browser/ui/views/tabs/base_tab_strip.cc (right): http://codereview.chromium.org/6579050/diff/12001/chrome/browser/ui/views/tabs/base_tab_strip.cc#newcode466 chrome/browser/ui/views/tabs/base_tab_strip.cc:466: base::SplitStringAlongWhitespace(tab_data.title, &words); This is the wrong function to use. ...
9 years, 10 months ago (2011-02-25 17:14:44 UTC) #5
MAD
Addressed most comments except the one about using ICU and the one about moving the ...
9 years, 10 months ago (2011-02-25 20:09:13 UTC) #6
sky
I only have comments on the rendering. By next iteration do you mean you want ...
9 years, 10 months ago (2011-02-25 21:04:44 UTC) #7
MAD
By next iteration, I meant another round of code review, I don't intend to submit ...
9 years, 10 months ago (2011-02-25 21:49:24 UTC) #8
sky
According to Brett's email (Base is "done"...) we should put code 'in the most specific ...
9 years, 10 months ago (2011-02-25 22:59:27 UTC) #9
Peter Kasting
BTW I'm ignoring this while it's still so much a WIP, since sky is a ...
9 years, 10 months ago (2011-02-25 23:49:44 UTC) #10
MAD
OK, I think I'm done now (at least for views build)... Moved up the logic ...
9 years, 9 months ago (2011-03-10 19:03:44 UTC) #11
sky
http://codereview.chromium.org/6579050/diff/17002/chrome/browser/ui/views/tabs/base_tab.cc File chrome/browser/ui/views/tabs/base_tab.cc (right): http://codereview.chromium.org/6579050/diff/17002/chrome/browser/ui/views/tabs/base_tab.cc#newcode449 chrome/browser/ui/views/tabs/base_tab.cc:449: font_->GetExpectedTextWidth(10) < title_bounds.width() && On 2011/03/10 19:03:44, MAD wrote: ...
9 years, 9 months ago (2011-03-11 00:00:45 UTC) #12
sky
http://codereview.chromium.org/6579050/diff/32001/chrome/browser/ui/views/tabs/base_tab_strip.cc File chrome/browser/ui/views/tabs/base_tab_strip.cc (right): http://codereview.chromium.org/6579050/diff/32001/chrome/browser/ui/views/tabs/base_tab_strip.cc#newcode436 chrome/browser/ui/views/tabs/base_tab_strip.cc:436: tab_data_[tab_index].tab->SetData(data); On 2011/03/11 00:00:45, sky wrote: > Didn't we ...
9 years, 9 months ago (2011-03-11 00:01:37 UTC) #13
MAD
OK, I think I addressed all your comments in the most recent upload, except for ...
9 years, 9 months ago (2011-03-11 03:01:37 UTC) #14
sky
I'm giving you the LGTM for now. As this computation is expensive, and gets even ...
9 years, 9 months ago (2011-03-11 16:32:15 UTC) #15
MAD
Thanks! :-) Will do... BYE MAD
9 years, 9 months ago (2011-03-11 19:17:56 UTC) #16
MAD
9 years, 9 months ago (2011-03-11 19:24:41 UTC) #17
http://codereview.chromium.org/6579050/diff/38003/chrome/browser/ui/title_pre...
File chrome/browser/ui/title_prefix_matcher.h (right):

http://codereview.chromium.org/6579050/diff/38003/chrome/browser/ui/title_pre...
chrome/browser/ui/title_prefix_matcher.h:41: private:
On 2011/03/11 16:32:15, sky wrote:
> nit: newline between 40 and 41.

Done.

Powered by Google App Engine
This is Rietveld 408576698