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

Unified Diff: components/wallpaper/wallpaper_color_extraction_result.h

Issue 2943333003: Extracting more than one wallpaper prominent color (Closed)
Patch Set: possible uninitialized local value Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/wallpaper/wallpaper_color_calculator_unittest.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wallpaper/wallpaper_color_extraction_result.h
diff --git a/components/wallpaper/wallpaper_color_extraction_result.h b/components/wallpaper/wallpaper_color_extraction_result.h
new file mode 100644
index 0000000000000000000000000000000000000000..ebc77794f66623862769edfec7fc4c0bbed99d25
--- /dev/null
+++ b/components/wallpaper/wallpaper_color_extraction_result.h
@@ -0,0 +1,45 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_WALLPAPER_WALLPAPER_COLOR_EXTRACTION_RESULT_H_
+#define COMPONENTS_WALLPAPER_WALLPAPER_COLOR_EXTRACTION_RESULT_H_
+
+namespace wallpaper {
+
+// This enum is used to back a histogram, and should therefore be treated as
+// append-only.
+// For result, transparent indicates extraction failure and opaque indicates
+// extraction success.
+enum WallpaperColorExtractionResult {
+ // Transparent result on (dark, vibrant) color profile.
+ RESULT_DARK_VIBRANT_TRANSPARENT = 0,
+ // Opaque result on (dark, vibrant) color profile.
+ RESULT_DARK_VIBRANT_OPAQUE,
+ // Transparent result on (normal, vibrant) color profile.
+ RESULT_NORMAL_VIBRANT_TRANSPARENT,
+ // Opaque result on (normal, vibrant) color profile.
+ RESULT_NORMAL_VIBRANT_OPAQUE,
+ // Transparent result on (light, vibrant) color profile.
+ RESULT_LIGHT_VIBRANT_TRANSPARENT,
+ // Opaque result on (light, vibrant) color profile.
+ RESULT_LIGHT_VIBRANT_OPAQUE,
+ // Transparent result on (dark, muted) color profile.
+ RESULT_DARK_MUTED_TRANSPARENT,
+ // Opaque result on (dark, muted) color profile.
+ RESULT_DARK_MUTED_OPAQUE,
+ // Transparent result on (normal, muted) color profile.
+ RESULT_NORMAL_MUTED_TRANSPARENT,
+ // Opaque result on (normal, muted) color profile.
+ RESULT_NORMAL_MUTED_OPAQUE,
+ // Transparent result on (light, muted) color profile.
+ RESULT_LIGHT_MUTED_TRANSPARENT,
+ // Opaque result on (light, muted) color profile.
+ RESULT_LIGHT_MUTED_OPAQUE,
+
+ NUM_COLOR_EXTRACTION_RESULTS,
+};
+
+} // namespace wallpaper
+
+#endif // COMPONENTS_WALLPAPER_WALLPAPER_COLOR_EXTRACTION_RESULT_H_
« no previous file with comments | « components/wallpaper/wallpaper_color_calculator_unittest.cc ('k') | tools/metrics/histograms/enums.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698