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

Side by Side Diff: chrome/browser/favicon/select_favicon_frames.h

Issue 10836105: Implement favicon.ico variant selection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_FAVICON_SELECT_FAVICON_FRAMES_H_
6 #define CHROME_BROWSER_FAVICON_SELECT_FAVICON_FRAMES_H_
7
8 #include <vector>
9
10 #include "ui/base/layout.h"
11
12 class SkBitmap;
13
14 namespace gfx {
15 class ImageSkia;
16 }
17
18 // Takes a list of all bitmaps found in a .ico file, and creates an
19 // ImageSkia that's desired_size x desired_size pixels big. This
20 // function adds a representation at every desired scale factor.
21 // If desired_size is 0, the largest bitmap is returned unmodified.
22 gfx::ImageSkia SelectFaviconFrames(
23 const std::vector<SkBitmap>& bitmaps,
24 const std::vector<ui::ScaleFactor>& scale_factors,
25 int desired_size);
26
27 #endif // CHROME_BROWSER_FAVICON_SELECT_FAVICON_FRAMES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/favicon/select_favicon_frames.cc » ('j') | chrome/browser/favicon/select_favicon_frames.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698