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

Unified Diff: ui/gfx/favicon_size.cc

Issue 15388002: Supporting high dpi favicons in Instant Extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments & removing searchbox changes Created 7 years, 6 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
« ui/gfx/favicon_size.h ('K') | « ui/gfx/favicon_size.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/favicon_size.cc
diff --git a/ui/gfx/favicon_size.cc b/ui/gfx/favicon_size.cc
index d0ba48a4ccdd597f0f3e12bd77f124c276f3c425..2c850f15d42df545eac0b1a896644e966a09e16a 100644
--- a/ui/gfx/favicon_size.cc
+++ b/ui/gfx/favicon_size.cc
@@ -8,6 +8,12 @@ namespace gfx {
const int kFaviconSize = 16;
+const int kSizeInDip = kFaviconSize;
+
+const int kSizeInDip2x = kFaviconSize * 2;
+
+const int kSizeInDip4x = kFaviconSize * 4;
+
void CalculateFaviconTargetSize(int* width, int* height) {
if (*width > kFaviconSize || *height > kFaviconSize) {
// Too big, resize it maintaining the aspect ratio.
« ui/gfx/favicon_size.h ('K') | « ui/gfx/favicon_size.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698