| OLD | NEW |
| 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 <stddef.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 | 12 |
| 12 class SkBitmap; | 13 class SkBitmap; |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 class ImageSkia; | 16 class ImageSkia; |
| 16 class Size; | 17 class Size; |
| 17 } | 18 } |
| 18 | 19 |
| 19 // Score which is smaller than the minimum score returned by | 20 // Score which is smaller than the minimum score returned by |
| 20 // SelectFaviconFrames() or SelectFaviconFrameIndices(). | 21 // SelectFaviconFrames() or SelectFaviconFrameIndices(). |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // TODO(pkotwicz): Change API so that |desired_sizes| being empty indicates | 55 // TODO(pkotwicz): Change API so that |desired_sizes| being empty indicates |
| 55 // that the index of the largest size is requested. | 56 // that the index of the largest size is requested. |
| 56 // TODO(pkotwicz): Remove callers of this method for which |frame_pixel_sizes| | 57 // TODO(pkotwicz): Remove callers of this method for which |frame_pixel_sizes| |
| 57 // are the sizes of the favicon bitmaps after they were resized. | 58 // are the sizes of the favicon bitmaps after they were resized. |
| 58 void SelectFaviconFrameIndices(const std::vector<gfx::Size>& frame_pixel_sizes, | 59 void SelectFaviconFrameIndices(const std::vector<gfx::Size>& frame_pixel_sizes, |
| 59 const std::vector<int>& desired_sizes, | 60 const std::vector<int>& desired_sizes, |
| 60 std::vector<size_t>* best_indices, | 61 std::vector<size_t>* best_indices, |
| 61 float* score); | 62 float* score); |
| 62 | 63 |
| 63 #endif // COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_ | 64 #endif // COMPONENTS_FAVICON_BASE_SELECT_FAVICON_FRAMES_H_ |
| OLD | NEW |