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

Side by Side Diff: chrome/browser/ui/ash/lock_screen_client_chromeos.h

Issue 2876673002: mojo api for view based lockscreen (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_
7
8 #include "ash/public/interfaces/lock_screen.mojom.h"
9 #include "base/macros.h"
10 #include "mojo/public/cpp/bindings/binding.h"
11
12 // Handles method calls delegated back to chrome from ash. Also notifies ash of
13 // relevant state changes in chrome.
14 class LockScreenClientChromeOS : public ash::mojom::LockScreenClient {
15 public:
16 LockScreenClientChromeOS();
17 ~LockScreenClientChromeOS() override;
18
19 static LockScreenClientChromeOS* Get();
20
21 // ash::mojom::LockScreenClient:
22 void AuthenticateUser(const AccountId& account_id,
23 const std::string& password,
24 bool authenticated_by_pin) override;
25
26 void ShowSignInError();
27
28 private:
29 // Lock screen mojo service in ash.
30 ash::mojom::LockScreenPtr lock_screen_;
31
32 // Binds this object to the client interface.
33 mojo::Binding<ash::mojom::LockScreenClient> binding_;
34
35 DISALLOW_COPY_AND_ASSIGN(LockScreenClientChromeOS);
36 };
37
38 #endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698