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

Unified Diff: chrome/browser/favicon/favicon_utils.h

Issue 2321833002: [Mac] Desaturate the Favicon for Network Errors (Closed)
Patch Set: Fix for Views Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/favicon/favicon_utils.h
diff --git a/chrome/browser/favicon/favicon_utils.h b/chrome/browser/favicon/favicon_utils.h
index e8b8ad01a6e9cb9fbe0799378fc5eb775c76ef51..e985c0ea9620a756dc3da9e6c351471917e79e02 100644
--- a/chrome/browser/favicon/favicon_utils.h
+++ b/chrome/browser/favicon/favicon_utils.h
@@ -7,6 +7,14 @@
#include "components/favicon/content/content_favicon_driver.h"
+namespace content {
+class WebContents;
+} // namespace content
+
+namespace gfx {
+class Image;
+} // namespace gfx
+
namespace favicon {
// Creates a ContentFaviconDriver and associates it with |web_contents| if none
@@ -21,6 +29,10 @@ void CreateContentFaviconDriverForWebContents(
// space is provided for the favicon, and the favicon is never displayed.
bool ShouldDisplayFavicon(content::WebContents* web_contents);
+// Retrieves the favicon from given WebContents. If contents contain a
+// network error, desaturate the favicon.
+gfx::Image TabFaviconFromWebContents(content::WebContents* contents);
+
} // namespace favicon
#endif // CHROME_BROWSER_FAVICON_FAVICON_UTILS_H_
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698