Chromium Code Reviews

Side by Side Diff: app/gfx/favicon_size.h

Issue 173260: Some code style cleanup under src/app. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: comment line fix Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « app/gfx/color_utils.cc ('k') | app/gfx/icon_util.h » ('j') | 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) 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 #ifndef APP_GFX_FAVICON_SIZE_H_ 5 #ifndef APP_GFX_FAVICON_SIZE_H_
6 #define APP_GFX_FAVICON_SIZE_H_ 6 #define APP_GFX_FAVICON_SIZE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 9
10 // Size (along each axis) of the favicon. 10 // Size (along each axis) of the favicon.
(...skipping 12 matching lines...)
23 static_cast<float>(*height); 23 static_cast<float>(*height);
24 *height = kFavIconSize; 24 *height = kFavIconSize;
25 *width = static_cast<int>(aspect_ratio * *height); 25 *width = static_cast<int>(aspect_ratio * *height);
26 if (*width > kFavIconSize) { 26 if (*width > kFavIconSize) {
27 *width = kFavIconSize; 27 *width = kFavIconSize;
28 *height = static_cast<int>(*width / aspect_ratio); 28 *height = static_cast<int>(*width / aspect_ratio);
29 } 29 }
30 } 30 }
31 } 31 }
32 32
33 #endif // APP_GFX_FAVICON_SIZE_H_ 33 #endif // APP_GFX_FAVICON_SIZE_H_
OLDNEW
« no previous file with comments | « app/gfx/color_utils.cc ('k') | app/gfx/icon_util.h » ('j') | no next file with comments »

Powered by Google App Engine