Commit 7757fb5a authored by Jeffrey Young's avatar Jeffrey Young Committed by Commit Bot

ambient: enum for temperature unit

BUG=b:154046129

Change-Id: Ifa9f24aa82da6e0151181324d921591fad88b1b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339795
Commit-Queue: Jeffrey Young <cowmoo@chromium.org>
Reviewed-by: default avatarXiaohui Chen <xiaohuic@chromium.org>
Reviewed-by: default avatarTao Wu <wutao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#795509}
parent f0f80509
......@@ -50,6 +50,13 @@ struct ASH_PUBLIC_EXPORT ArtSetting {
std::string preview_image_url;
};
enum class AmbientModeTemperatureUnit {
kMinValue = 0,
kFahrenheit = kMinValue,
kCelsius = 1,
kMaxValue = kCelsius
};
struct ASH_PUBLIC_EXPORT AmbientSettings {
AmbientSettings();
AmbientSettings(const AmbientSettings&);
......@@ -58,13 +65,16 @@ struct ASH_PUBLIC_EXPORT AmbientSettings {
AmbientSettings& operator=(AmbientSettings&&);
~AmbientSettings();
AmbientModeTopicSource topic_source;
AmbientModeTopicSource topic_source = AmbientModeTopicSource::kArtGallery;
// Only a subset Settings of Art gallery.
std::vector<ArtSetting> art_settings;
// Only selected album.
std::vector<std::string> selected_album_ids;
AmbientModeTemperatureUnit temperature_unit =
AmbientModeTemperatureUnit::kFahrenheit;
};
struct ASH_PUBLIC_EXPORT PersonalAlbum {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment