Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_COLOR_EXTRACTION_RESULT_H_ | |
| 6 #define COMPONENTS_WALLPAPER_WALLPAPER_COLOR_EXTRACTION_RESULT_H_ | |
| 7 | |
| 8 namespace wallpaper { | |
| 9 | |
| 10 // This enum is used to back a histogram, and should therefore be treated as | |
| 11 // append-only. | |
| 12 enum WallpaperColorExtractionResult { | |
|
xdai1
2017/06/21 16:29:30
I think we prefer enum class?
Qiang(Joe) Xu
2017/06/21 22:35:27
We might still need enum.
base::Bucket in the test
| |
| 13 // Transparent result on (dark, vibrant) color profile. | |
| 14 RESULT_DARK_VIBRANT_TRANSPARENT = 0, | |
| 15 // Opaque result on (dark, vibrant) color profile. | |
| 16 RESULT_DARK_VIBRANT_OPAQUE, | |
| 17 // Transparent result on (normal, vibrant) color profile. | |
| 18 RESULT_NORMAL_VIBRANT_TRANSPARENT, | |
| 19 // Opaque result on (normal, vibrant) color profile. | |
| 20 RESULT_NORMAL_VIBRANT_OPAQUE, | |
| 21 // Transparent result on (light, vibrant) color profile. | |
| 22 RESULT_LIGHT_VIBRANT_TRANSPARENT, | |
| 23 // Opaque result on (light, vibrant) color profile. | |
| 24 RESULT_LIGHT_VIBRANT_OPAQUE, | |
| 25 // Transparent result on (dark, muted) color profile. | |
| 26 RESULT_DARK_MUTED_TRANSPARENT, | |
| 27 // Opaque result on (dark, muted) color profile. | |
| 28 RESULT_DARK_MUTED_OPAQUE, | |
| 29 // Transparent result on (normal, muted) color profile. | |
| 30 RESULT_NORMAL_MUTED_TRANSPARENT, | |
| 31 // Opaque result on (normal, muted) color profile. | |
| 32 RESULT_NORMAL_MUTED_OPAQUE, | |
| 33 // Transparent result on (light, muted) color profile. | |
| 34 RESULT_LIGHT_MUTED_TRANSPARENT, | |
| 35 // Opaque result on (light, muted) color profile. | |
| 36 RESULT_LIGHT_MUTED_OPAQUE, | |
| 37 | |
| 38 NUM_COLOR_EXTRACTION_RESULTS, | |
| 39 }; | |
| 40 | |
| 41 } // namespace wallpaper | |
| 42 | |
| 43 #endif // COMPONENTS_WALLPAPER_WALLPAPER_COLOR_EXTRACTION_RESULT_H_ | |
| OLD | NEW |