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

Unified Diff: chrome/browser/ui/ash/lock_screen_client.h

Issue 2923773003: Adding mojo calls for several lock screen related operations. (Closed)
Patch Set: comments and rebase 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 | « chrome/browser/chromeos/login/lock_screen_utils.cc ('k') | chrome/browser/ui/ash/lock_screen_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/lock_screen_client.h
diff --git a/chrome/browser/ui/ash/lock_screen_client.h b/chrome/browser/ui/ash/lock_screen_client.h
index d33c5def8f6f5bb28dae724533da8df1346c96e2..eb7027436be915e7e29bc69ce64ef8310123c6b1 100644
--- a/chrome/browser/ui/ash/lock_screen_client.h
+++ b/chrome/browser/ui/ash/lock_screen_client.h
@@ -8,6 +8,10 @@
#include "ash/public/interfaces/lock_screen.mojom.h"
#include "base/macros.h"
#include "mojo/public/cpp/bindings/binding.h"
+#include "ui/base/ime/chromeos/input_method_manager.h"
+
+using AuthenticateUserCallback =
+ ash::mojom::LockScreenClient::AuthenticateUserCallback;
// Handles method calls sent from ash to chrome. Also sends messages from chrome
// to ash.
@@ -21,9 +25,15 @@ class LockScreenClient : public ash::mojom::LockScreenClient {
public:
Delegate();
virtual ~Delegate();
+ virtual void HandleAuthenticateUser(const AccountId& account_id,
+ const std::string& hashed_password,
+ bool authenticated_by_pin,
+ AuthenticateUserCallback callback) = 0;
virtual void HandleAttemptUnlock(const AccountId& account_id) = 0;
virtual void HandleHardlockPod(const AccountId& account_id) = 0;
virtual void HandleRecordClickOnLockIcon(const AccountId& account_id) = 0;
+ virtual void HandleOnFocusPod(const AccountId& account_id) = 0;
+ virtual void HandleOnNoPodFocused() = 0;
private:
DISALLOW_COPY_AND_ASSIGN(Delegate);
@@ -39,6 +49,11 @@ class LockScreenClient : public ash::mojom::LockScreenClient {
void AttemptUnlock(const AccountId& account_id) override;
void HardlockPod(const AccountId& account_id) override;
void RecordClickOnLockIcon(const AccountId& account_id) override;
+ void OnFocusPod(const AccountId& account_id) override;
+ void OnNoPodFocused() override;
+ void LoadWallpaper(const AccountId& account_id) override;
+ void SignOutUser() override;
+ void OnMaxIncorrectPasswordAttempted(const AccountId& account_id) override;
// Wrappers around the mojom::LockScreen interface.
void ShowLockScreen(ash::mojom::LockScreen::ShowLockScreenCallback on_shown);
@@ -54,6 +69,7 @@ class LockScreenClient : public ash::mojom::LockScreenClient {
ash::mojom::AuthType auth_type,
const base::string16& initial_value);
void LoadUsers(std::unique_ptr<base::ListValue> users_list, bool show_guest);
+ void SetPinEnabledForUser(const AccountId& account_id, bool is_enabled);
void SetDelegate(Delegate* delegate);
« no previous file with comments | « chrome/browser/chromeos/login/lock_screen_utils.cc ('k') | chrome/browser/ui/ash/lock_screen_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698