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 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_ |
| OLD | NEW |