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

Unified Diff: chrome/browser/ui/views/tabs/tab_renderer_data.h

Issue 6579050: Elides the beginning of tab titles that have common prefixes. ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/tabs/tab_renderer_data.h
===================================================================
--- chrome/browser/ui/views/tabs/tab_renderer_data.h (revision 75998)
+++ chrome/browser/ui/views/tabs/tab_renderer_data.h (working copy)
@@ -23,6 +23,7 @@
TabRendererData()
: network_state(NETWORK_STATE_NONE),
+ common_prefix_length(0),
loading(false),
crashed_status(base::TERMINATION_STATUS_STILL_RUNNING),
off_the_record(false),
@@ -44,6 +45,9 @@
SkBitmap favicon;
NetworkState network_state;
string16 title;
+ // Identifies the number of chars at the beginning of the string
+ // that are common to other tab titles.
+ int32 common_prefix_length;
sky 2011/02/25 17:02:07 size_t
MAD 2011/02/25 20:09:13 D'Ho!... Done... :-)
bool loading;
base::TerminationStatus crashed_status;
bool off_the_record;

Powered by Google App Engine
This is Rietveld 408576698