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

Side by Side Diff: components/favicon_base/select_favicon_frames.h

Issue 330603004: Rename FaviconBitmapXxx to FaviconRawBitmapXxx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/favicon_base/favicon_types.cc ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_ 5 #ifndef COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_
6 #define COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_ 6 #define COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
11 11
12 class SkBitmap; 12 class SkBitmap;
13 13
14 namespace gfx { 14 namespace gfx {
15 class ImageSkia; 15 class ImageSkia;
16 class Size; 16 class Size;
17 } 17 }
18 18
19 // Score which is smaller than the minimum score returned by 19 // Score which is smaller than the minimum score returned by
20 // SelectFaviconFrames() or SelectFaviconBitmapIDs(). 20 // SelectFaviconFrames() or SelectFaviconRawBitmapIDs().
pkotwicz 2014/06/12 22:52:02 This should be SelectFaviconFrameIndices() Select
oshima 2014/06/12 23:25:44 Done.
21 extern const float kSelectFaviconFramesInvalidScore; 21 extern const float kSelectFaviconFramesInvalidScore;
22 22
23 // Takes a list of all bitmaps found in a .ico file, and creates an 23 // Takes a list of all bitmaps found in a .ico file, and creates an
24 // ImageSkia that's |desired_size| x |desired_size| DIP big. This 24 // ImageSkia that's |desired_size| x |desired_size| DIP big. This
25 // function adds a representation at every desired scale factor. 25 // function adds a representation at every desired scale factor.
26 // If |desired_size| is 0, the largest bitmap is returned unmodified. 26 // If |desired_size| is 0, the largest bitmap is returned unmodified.
27 // |original_sizes| are the original sizes of the bitmaps. (For instance, 27 // |original_sizes| are the original sizes of the bitmaps. (For instance,
28 // WebContents::DownloadImage() does resampling if it is passed a max size.) 28 // WebContents::DownloadImage() does resampling if it is passed a max size.)
29 // If score is non-NULL, it receives a score between 0 (bad) and 1 (good) 29 // If score is non-NULL, it receives a score between 0 (bad) and 1 (good)
30 // that describes how well |bitmaps| were able to produce an image at 30 // that describes how well |bitmaps| were able to produce an image at
(...skipping 22 matching lines...) Expand all
53 // TODO(pkotwicz): Remove callers of this method for which |frame_pixel_sizes| 53 // TODO(pkotwicz): Remove callers of this method for which |frame_pixel_sizes|
54 // are the sizes of the favicon bitmaps after they were resized. 54 // are the sizes of the favicon bitmaps after they were resized.
55 void SelectFaviconFrameIndices( 55 void SelectFaviconFrameIndices(
56 const std::vector<gfx::Size>& frame_pixel_sizes, 56 const std::vector<gfx::Size>& frame_pixel_sizes,
57 const std::vector<ui::ScaleFactor>& scale_factors, 57 const std::vector<ui::ScaleFactor>& scale_factors,
58 int desired_size, 58 int desired_size,
59 std::vector<size_t>* best_indices, 59 std::vector<size_t>* best_indices,
60 float* score); 60 float* score);
61 61
62 #endif // COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_ 62 #endif // COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_
OLDNEW
« no previous file with comments | « components/favicon_base/favicon_types.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698