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

Side by Side Diff: chrome/browser/views/tab_icon_view.cc

Issue 7344: Convert GetPreferredSize from:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <windows.h> 5 #include <windows.h>
6 #include <shellapi.h> 6 #include <shellapi.h>
7 7
8 #include "chrome/browser/views/tab_icon_view.h" 8 #include "chrome/browser/views/tab_icon_view.h"
9 9
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 PaintFavIcon(canvas, favicon); 120 PaintFavIcon(canvas, favicon);
121 } 121 }
122 } 122 }
123 } 123 }
124 124
125 if (!rendered) { 125 if (!rendered) {
126 PaintFavIcon(canvas, *g_default_fav_icon); 126 PaintFavIcon(canvas, *g_default_fav_icon);
127 } 127 }
128 } 128 }
129 129
130 void TabIconView::GetPreferredSize(CSize* out) { 130 gfx::Size TabIconView::GetPreferredSize() {
131 out->cx = out->cy = kFavIconSize; 131 return gfx::Size(kFavIconSize, kFavIconSize);
132 } 132 }
133 133
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698