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

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

Issue 15388002: Supporting high dpi favicons in Instant Extended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactoring after Kausalya's change 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_FAVICON_FAVICON_TYPES_H_ 5 #ifndef CHROME_BROWSER_FAVICON_FAVICON_TYPES_H_
6 #define CHROME_BROWSER_FAVICON_FAVICON_TYPES_H_ 6 #define CHROME_BROWSER_FAVICON_FAVICON_TYPES_H_
7 7
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "chrome/common/favicon_types.h"
samarth 2013/06/14 21:54:46 This is up to the favicon OWNERS but I'd prefer a
pedro (no code reviews) 2013/06/18 22:35:13 That's a good point, but as we discussed offline,
9 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
10 #include "ui/gfx/image/image.h" 11 #include "ui/gfx/image/image.h"
11 #include "ui/gfx/size.h" 12 #include "ui/gfx/size.h"
12 13
13 namespace chrome { 14 namespace chrome {
14 15
15 typedef int64 FaviconID; 16 typedef int64 FaviconID;
16 17
17 // Defines the icon types. They are also stored in icon_type field of favicons
18 // table.
19 // The values of the IconTypes are used to select the priority in which favicon
20 // data is returned in HistoryBackend and ThumbnailDatabase. Data for the
21 // largest IconType takes priority if data for multiple IconTypes is available.
22 enum IconType {
23 INVALID_ICON = 0x0,
24 FAVICON = 1 << 0,
25 TOUCH_ICON = 1 << 1,
26 TOUCH_PRECOMPOSED_ICON = 1 << 2
27 };
28
29 // Defines a gfx::Image of size desired_size_in_dip composed of image 18 // Defines a gfx::Image of size desired_size_in_dip composed of image
30 // representations for each of the desired scale factors. 19 // representations for each of the desired scale factors.
31 struct FaviconImageResult { 20 struct FaviconImageResult {
32 FaviconImageResult(); 21 FaviconImageResult();
33 ~FaviconImageResult(); 22 ~FaviconImageResult();
34 23
35 // The resulting image. 24 // The resulting image.
36 gfx::Image image; 25 gfx::Image image;
37 26
38 // The URL of the favicon which contains all of the image representations of 27 // The URL of the favicon which contains all of the image representations of
(...skipping 29 matching lines...) Expand all
68 IconType icon_type; 57 IconType icon_type;
69 }; 58 };
70 59
71 // Define type with same structure as FaviconBitmapResult for passing data to 60 // Define type with same structure as FaviconBitmapResult for passing data to
72 // HistoryBackend::SetFavicons(). 61 // HistoryBackend::SetFavicons().
73 typedef FaviconBitmapResult FaviconBitmapData; 62 typedef FaviconBitmapResult FaviconBitmapData;
74 63
75 } // namespace chrome 64 } // namespace chrome
76 65
77 #endif // CHROME_BROWSER_FAVICON_FAVICON_TYPES_H_ 66 #endif // CHROME_BROWSER_FAVICON_FAVICON_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/local_ntp/local_ntp.css » ('j') | chrome/browser/ui/webui/favicon_source.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698