Chromium Code Reviews| 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_FAVICON_TYPES_H_ | 5 #ifndef COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ |
| 6 #define COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ | 6 #define COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 61 | 61 |
| 62 // Indicates whether |bitmap_data| is expired. | 62 // Indicates whether |bitmap_data| is expired. |
| 63 bool expired; | 63 bool expired; |
| 64 | 64 |
| 65 // The bits of the bitmap. | 65 // The bits of the bitmap. |
| 66 scoped_refptr<base::RefCountedMemory> bitmap_data; | 66 scoped_refptr<base::RefCountedMemory> bitmap_data; |
| 67 | 67 |
| 68 // The pixel dimensions of |bitmap_data|. | 68 // The pixel dimensions of |bitmap_data|. |
| 69 gfx::Size pixel_size; | 69 gfx::Size pixel_size; |
| 70 | 70 |
| 71 // The pixel dimensions of the bitmap before it was resized to the desired | |
| 72 // size. | |
|
pkotwicz
2016/12/19 00:03:29
How about: "The pixel dimensions of the bitmap sto
jkrcal
2016/12/19 17:07:19
Done.
| |
| 73 gfx::Size pixel_size_in_db; | |
| 74 | |
| 71 // The URL of the containing favicon. | 75 // The URL of the containing favicon. |
| 72 GURL icon_url; | 76 GURL icon_url; |
| 73 | 77 |
| 74 // The icon type of the containing favicon. | 78 // The icon type of the containing favicon. |
| 75 IconType icon_type; | 79 IconType icon_type; |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 // Define type with same structure as FaviconRawBitmapResult for passing data to | 82 // Define type with same structure as FaviconRawBitmapResult for passing data to |
| 79 // HistoryBackend::SetFavicons(). | 83 // HistoryBackend::SetFavicons(). |
| 80 typedef FaviconRawBitmapResult FaviconRawBitmapData; | 84 typedef FaviconRawBitmapResult FaviconRawBitmapData; |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 95 FaviconRawBitmapResult bitmap; | 99 FaviconRawBitmapResult bitmap; |
| 96 | 100 |
| 97 // The fallback icon style if a sufficiently large icon isn't available. This | 101 // The fallback icon style if a sufficiently large icon isn't available. This |
| 98 // uses the dominant color of a smaller icon as the background if available. | 102 // uses the dominant color of a smaller icon as the background if available. |
| 99 std::unique_ptr<FallbackIconStyle> fallback_icon_style; | 103 std::unique_ptr<FallbackIconStyle> fallback_icon_style; |
| 100 }; | 104 }; |
| 101 | 105 |
| 102 } // namespace favicon_base | 106 } // namespace favicon_base |
| 103 | 107 |
| 104 #endif // COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ | 108 #endif // COMPONENTS_FAVICON_BASE_FAVICON_TYPES_H_ |
| OLD | NEW |