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

Unified Diff: components/proximity_auth/screenlock_bridge.cc

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: Incoporate pathset 3 comments Created 3 years, 7 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/proximity_auth/screenlock_bridge.cc
diff --git a/components/proximity_auth/screenlock_bridge.cc b/components/proximity_auth/screenlock_bridge.cc
index 891c9d1675f9718cd3055d9fdf5ec53e087c3275..e1c7568e10e0c2bdfdbc18a54db866abe59a82b8 100644
--- a/components/proximity_auth/screenlock_bridge.cc
+++ b/components/proximity_auth/screenlock_bridge.cc
@@ -89,6 +89,31 @@ ScreenlockBridge::UserPodCustomIconOptions::ToDictionaryValue() const {
return result;
}
+ash::mojom::UserPodCustomIconOptionsPtr
+ScreenlockBridge::UserPodCustomIconOptions::ToUserPodCustomIconOptionsPtr()
+ const {
+ ash::mojom::UserPodCustomIconOptionsPtr icon_options =
+ ash::mojom::UserPodCustomIconOptions::New();
+ std::string icon_id = GetIdForIcon(icon_);
+ icon_options->id = icon_id;
+
+ if (!tooltip_.empty()) {
+ icon_options->tooltip = tooltip_;
+ icon_options->autoshow_tooltip = autoshow_tooltip_;
+ }
+
+ if (!aria_label_.empty())
+ icon_options->aria_label = aria_label_;
+
+ if (hardlock_on_click_)
+ icon_options->hardlock_on_click = true;
+
+ if (is_trial_run_)
+ icon_options->is_trial_run = true;
+
+ return icon_options;
+}
+
void ScreenlockBridge::UserPodCustomIconOptions::SetIcon(
ScreenlockBridge::UserPodCustomIcon icon) {
icon_ = icon;
« components/proximity_auth/BUILD.gn ('K') | « components/proximity_auth/screenlock_bridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698