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

Unified Diff: ash/shell/example_session_controller_client.h

Issue 2734933004: ash: Use SessionController instead of SessionStateDelegate (Closed)
Patch Set: rebase to get WorkspaceLayoutManagerSoloTest change Created 3 years, 9 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: ash/shell/example_session_controller_client.h
diff --git a/ash/shell/example_session_controller_client.h b/ash/shell/example_session_controller_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..1cdbd2f8343d5fc034a5996a9fd3421145bd1756
--- /dev/null
+++ b/ash/shell/example_session_controller_client.h
@@ -0,0 +1,38 @@
+// Copyright 2017 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 ASH_SHELL_EXAMPLE_SESSION_CONTROLLER_CLIENT_H_
+#define ASH_SHELL_EXAMPLE_SESSION_CONTROLLER_CLIENT_H_
+
+#include "ash/common/test/test_session_controller_client.h"
+#include "base/macros.h"
+
+namespace ash {
+
+class SessionController;
+
+namespace shell {
+
+class ExampleSessionControllerClient
+ : public test::TestSessionControllerClient {
+ public:
+ explicit ExampleSessionControllerClient(SessionController* controller);
+ ~ExampleSessionControllerClient() override;
+
+ static ExampleSessionControllerClient* Get();
+
+ void Initialize();
+
+ // TestSessionControllerClient
+ void RequestLockScreen() override;
+ void UnlockScreen() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExampleSessionControllerClient);
+};
+
+} // namespace shell
+} // namespace ash
+
+#endif // ASH_SHELL_EXAMPLE_SESSION_CONTROLLER_CLIENT_H_
« no previous file with comments | « ash/shell/content/client/shell_browser_main_parts.cc ('k') | ash/shell/example_session_controller_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698