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

Unified Diff: components/favicon_base/favicon_types.cc

Issue 835903005: [Favicon] Add new fallback icon rendering flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding new host chrome://fallback-icon. Created 5 years, 11 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
Index: components/favicon_base/favicon_types.cc
diff --git a/components/favicon_base/favicon_types.cc b/components/favicon_base/favicon_types.cc
index eb0e7bcfa6b0a662720117c33c24ff5abd1b43de..1fb6dd389fb18362bf83d40db26b8150774db910 100644
--- a/components/favicon_base/favicon_types.cc
+++ b/components/favicon_base/favicon_types.cc
@@ -6,14 +6,15 @@
namespace favicon_base {
-// FaviconImageResult ---------------------------------------------------------
+// ---------------------------------------------------------
+// FaviconImageResult
FaviconImageResult::FaviconImageResult() {}
FaviconImageResult::~FaviconImageResult() {}
-// FaviconRawBitmapResult
// --------------------------------------------------------
+// FaviconRawBitmapResult
FaviconRawBitmapResult::FaviconRawBitmapResult()
: expired(false), icon_type(INVALID_ICON) {
@@ -22,4 +23,17 @@ FaviconRawBitmapResult::FaviconRawBitmapResult()
FaviconRawBitmapResult::~FaviconRawBitmapResult() {
}
-} // namespace chrome
+// --------------------------------------------------------
+// FallbackIconStyle
+
+FallbackIconStyle::FallbackIconStyle()
+ : background_color(SK_ColorTRANSPARENT),
+ text_color(SK_ColorTRANSPARENT),
+ font_size_ratio(0.0),
+ roundness(0.0) {
pkotwicz 2015/01/21 19:44:16 Can the constructor initialize FallbackIconStyle w
huangs 2015/01/22 01:13:28 The default text color depends on the background c
+}
+
+FallbackIconStyle::~FallbackIconStyle() {
+}
+
+} // namespace favicon_base
« 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