| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/proximity_auth/screenlock_bridge.h" | 5 #include "components/proximity_auth/screenlock_bridge.h" |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "components/proximity_auth/logging/logging.h" | 9 #include "components/proximity_auth/logging/logging.h" |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 if (!aria_label_.empty()) | 77 if (!aria_label_.empty()) |
| 78 result->SetString("ariaLabel", aria_label_); | 78 result->SetString("ariaLabel", aria_label_); |
| 79 | 79 |
| 80 if (hardlock_on_click_) | 80 if (hardlock_on_click_) |
| 81 result->SetBoolean("hardlockOnClick", true); | 81 result->SetBoolean("hardlockOnClick", true); |
| 82 | 82 |
| 83 if (is_trial_run_) | 83 if (is_trial_run_) |
| 84 result->SetBoolean("isTrialRun", true); | 84 result->SetBoolean("isTrialRun", true); |
| 85 | 85 |
| 86 return result.Pass(); | 86 return result; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void ScreenlockBridge::UserPodCustomIconOptions::SetIcon( | 89 void ScreenlockBridge::UserPodCustomIconOptions::SetIcon( |
| 90 ScreenlockBridge::UserPodCustomIcon icon) { | 90 ScreenlockBridge::UserPodCustomIcon icon) { |
| 91 icon_ = icon; | 91 icon_ = icon; |
| 92 } | 92 } |
| 93 | 93 |
| 94 void ScreenlockBridge::UserPodCustomIconOptions::SetTooltip( | 94 void ScreenlockBridge::UserPodCustomIconOptions::SetTooltip( |
| 95 const base::string16& tooltip, | 95 const base::string16& tooltip, |
| 96 bool autoshow) { | 96 bool autoshow) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 observers_.RemoveObserver(observer); | 175 observers_.RemoveObserver(observer); |
| 176 } | 176 } |
| 177 | 177 |
| 178 ScreenlockBridge::ScreenlockBridge() | 178 ScreenlockBridge::ScreenlockBridge() |
| 179 : lock_handler_(nullptr), focused_account_id_(EmptyAccountId()) {} | 179 : lock_handler_(nullptr), focused_account_id_(EmptyAccountId()) {} |
| 180 | 180 |
| 181 ScreenlockBridge::~ScreenlockBridge() { | 181 ScreenlockBridge::~ScreenlockBridge() { |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace proximity_auth | 184 } // namespace proximity_auth |
| OLD | NEW |