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

Side by Side Diff: ios/web/public/favicon_url.h

Issue 2891333002: Introduce dedicated enum value for icons from Web Manifests (Closed)
Patch Set: Created 3 years, 7 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
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 IOS_WEB_PUBLIC_FAVICON_URL_H_ 5 #ifndef IOS_WEB_PUBLIC_FAVICON_URL_H_
6 #define IOS_WEB_PUBLIC_FAVICON_URL_H_ 6 #define IOS_WEB_PUBLIC_FAVICON_URL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace web { 13 namespace web {
14 14
15 // The favicon url from the render. 15 // The favicon url from the render.
16 struct FaviconURL { 16 struct FaviconURL {
17 // The icon type in a page. The definition must be same as 17 // The icon type in a page. The definition must be same as
18 // favicon_base::IconType. 18 // favicon_base::IconType.
19 enum IconType { 19 enum IconType {
20 INVALID_ICON = 0x0, 20 INVALID_ICON = 0x0,
21 FAVICON = 1 << 0, 21 FAVICON = 1 << 0,
22 TOUCH_ICON = 1 << 1, 22 TOUCH_ICON = 1 << 1,
23 TOUCH_PRECOMPOSED_ICON = 1 << 2 23 TOUCH_PRECOMPOSED_ICON = 1 << 2,
24 WEB_MANIFEST_ICON = 1 << 3
Eugene But (OOO till 7-30) 2017/05/19 14:21:31 nit: Do you want to add comma after the last item,
mastiz 2017/05/25 11:14:16 Done.
24 }; 25 };
25 26
26 FaviconURL(); 27 FaviconURL();
27 FaviconURL(const GURL& url, 28 FaviconURL(const GURL& url,
28 IconType type, 29 IconType type,
29 const std::vector<gfx::Size>& sizes); 30 const std::vector<gfx::Size>& sizes);
30 FaviconURL(const FaviconURL& other); 31 FaviconURL(const FaviconURL& other);
31 ~FaviconURL(); 32 ~FaviconURL();
32 33
33 // The url of the icon. 34 // The url of the icon.
34 GURL icon_url; 35 GURL icon_url;
35 36
36 // The type of the icon 37 // The type of the icon
37 IconType icon_type; 38 IconType icon_type;
38 39
39 // Icon's bitmaps' size 40 // Icon's bitmaps' size
40 std::vector<gfx::Size> icon_sizes; 41 std::vector<gfx::Size> icon_sizes;
41 }; 42 };
42 43
43 } // namespace web 44 } // namespace web
44 45
45 #endif // IOS_WEB_PUBLIC_FAVICON_URL_H_ 46 #endif // IOS_WEB_PUBLIC_FAVICON_URL_H_
OLDNEW
« components/favicon_base/favicon_types.h ('K') | « components/favicon_base/favicon_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698