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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_renderer_data.cc

Issue 6783015: Improvements to tab title prefix eliding as per email discussions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_renderer_data.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h" 5 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h"
6 6
7 TabRendererData::TabRendererData() 7 TabRendererData::TabRendererData()
8 : network_state(NETWORK_STATE_NONE), 8 : network_state(NETWORK_STATE_NONE),
9 common_prefix_length(0), 9 common_prefix_length(0),
10 loading(false), 10 loading(false),
11 crashed_status(base::TERMINATION_STATUS_STILL_RUNNING), 11 crashed_status(base::TERMINATION_STATUS_STILL_RUNNING),
12 incognito(false), 12 incognito(false),
13 show_icon(true), 13 show_icon(true),
14 mini(false), 14 mini(false),
15 blocked(false), 15 blocked(false),
16 app(false) { 16 app(false) {
17 } 17 }
18 18
19 TabRendererData::~TabRendererData() {} 19 TabRendererData::~TabRendererData() {}
20 20
21 bool TabRendererData::Equals(const TabRendererData& data) { 21 bool TabRendererData::Equals(const TabRendererData& data) {
22 return 22 return
23 favicon.pixelRef() && 23 favicon.pixelRef() &&
24 favicon.pixelRef() == data.favicon.pixelRef() && 24 favicon.pixelRef() == data.favicon.pixelRef() &&
25 favicon.pixelRefOffset() == data.favicon.pixelRefOffset() && 25 favicon.pixelRefOffset() == data.favicon.pixelRefOffset() &&
26 network_state == data.network_state && 26 network_state == data.network_state &&
27 title == data.title && 27 title == data.title &&
28 url == data.url &&
28 common_prefix_length == data.common_prefix_length && 29 common_prefix_length == data.common_prefix_length &&
29 loading == data.loading && 30 loading == data.loading &&
30 crashed_status == data.crashed_status && 31 crashed_status == data.crashed_status &&
31 incognito == data.incognito && 32 incognito == data.incognito &&
32 show_icon == data.show_icon && 33 show_icon == data.show_icon &&
33 mini == data.mini && 34 mini == data.mini &&
34 blocked == data.blocked && 35 blocked == data.blocked &&
35 app == data.app; 36 app == data.app;
36 } 37 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_renderer_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698