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

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

Issue 2876673002: mojo api for view based lockscreen (Closed)
Patch Set: Incorporate comments from patch set 8 and rebase 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('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
new file mode 100644
index 0000000000000000000000000000000000000000..7e0d13434645794800f2e30328182bb5d3c1a232
--- /dev/null
+++ b/chrome/browser/ui/ash/lock_screen_client.h
@@ -0,0 +1,43 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_
+#define CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_
+
+#include "ash/public/interfaces/lock_screen.mojom.h"
+#include "base/macros.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+// Handles method calls delegated back to chrome from ash. Also notifies ash of
+// relevant state changes in chrome.
+class LockScreenClient : public ash::mojom::LockScreenClient {
+ public:
+ LockScreenClient();
+ ~LockScreenClient() override;
+
+ static LockScreenClient* Get();
+
+ // ash::mojom::LockScreenClient:
+ void AuthenticateUser(const AccountId& account_id,
+ const std::string& hashed_password,
+ bool authenticated_by_pin) override;
+
+ // Wrappers around the mojom::SystemTray interface.
+ void ShowErrorMessage(int32_t login_attempts,
+ const std::string& error_text,
+ const std::string& help_link_text,
+ int32_t help_topic_id);
+ void ClearErrors();
+
+ private:
+ // Lock screen mojo service in ash.
+ ash::mojom::LockScreenPtr lock_screen_;
+
+ // Binds this object to the client interface.
+ mojo::Binding<ash::mojom::LockScreenClient> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(LockScreenClient);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_LOCK_SCREEN_CLIENT_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/ash/lock_screen_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698