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

Side by Side 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: Elides the beginning of tab titles that have common prefixes. ... Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 22 matching lines...) Expand all
33 crashed_status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION); 33 crashed_status == base::TERMINATION_STATUS_ABNORMAL_TERMINATION);
34 } 34 }
35 35
36 // Returns true if the TabRendererData is same as given |data|. Two favicons 36 // Returns true if the TabRendererData is same as given |data|. Two favicons
37 // are considered equals if two SkBitmaps point to the same SkPixelRef object. 37 // are considered equals if two SkBitmaps point to the same SkPixelRef object.
38 bool Equals(const TabRendererData& data); 38 bool Equals(const TabRendererData& data);
39 39
40 SkBitmap favicon; 40 SkBitmap favicon;
41 NetworkState network_state; 41 NetworkState network_state;
42 string16 title; 42 string16 title;
43 // Identifies the number of chars at the beginning of the string
44 // that are common to other tab titles.
45 size_t common_prefix_length;
43 bool loading; 46 bool loading;
44 base::TerminationStatus crashed_status; 47 base::TerminationStatus crashed_status;
45 bool off_the_record; 48 bool off_the_record;
46 bool show_icon; 49 bool show_icon;
47 bool mini; 50 bool mini;
48 bool blocked; 51 bool blocked;
49 bool app; 52 bool app;
50 }; 53 };
51 54
52 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_ 55 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_RENDERER_DATA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/base_tab_strip.cc ('k') | chrome/browser/ui/views/tabs/tab_renderer_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698