OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef MASH_SCREENLOCK_SCREENLOCK_H_ | 5 #ifndef MASH_SCREENLOCK_SCREENLOCK_H_ |
6 #define MASH_SCREENLOCK_SCREENLOCK_H_ | 6 #define MASH_SCREENLOCK_SCREENLOCK_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "mash/session/public/interfaces/session.mojom.h" | 12 #include "mash/session/public/interfaces/session.mojom.h" |
13 #include "mojo/public/cpp/bindings/binding_set.h" | 13 #include "mojo/public/cpp/bindings/binding_set.h" |
14 #include "services/shell/public/cpp/shell_client.h" | 14 #include "services/shell/public/cpp/shell_client.h" |
15 #include "services/tracing/public/cpp/tracing_impl.h" | 15 #include "services/tracing/public/cpp/tracing_impl.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class AuraInit; | 18 class AuraInit; |
| 19 class WindowManagerConnection; |
19 } | 20 } |
20 | 21 |
21 namespace mash { | 22 namespace mash { |
22 namespace screenlock { | 23 namespace screenlock { |
23 | 24 |
24 class Screenlock : public shell::ShellClient, | 25 class Screenlock : public shell::ShellClient, |
25 public session::mojom::ScreenlockStateListener { | 26 public session::mojom::ScreenlockStateListener { |
26 public: | 27 public: |
27 Screenlock(); | 28 Screenlock(); |
28 ~Screenlock() override; | 29 ~Screenlock() override; |
29 | 30 |
30 private: | 31 private: |
31 // shell::ShellClient: | 32 // shell::ShellClient: |
32 void Initialize(shell::Connector* connector, | 33 void Initialize(shell::Connector* connector, |
33 const shell::Identity& identity, | 34 const shell::Identity& identity, |
34 uint32_t id) override; | 35 uint32_t id) override; |
35 | 36 |
36 // session::mojom::ScreenlockStateListener: | 37 // session::mojom::ScreenlockStateListener: |
37 void ScreenlockStateChanged(bool locked) override; | 38 void ScreenlockStateChanged(bool locked) override; |
38 | 39 |
39 mojo::TracingImpl tracing_; | 40 mojo::TracingImpl tracing_; |
40 std::unique_ptr<views::AuraInit> aura_init_; | 41 std::unique_ptr<views::AuraInit> aura_init_; |
| 42 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_; |
41 mojo::BindingSet<session::mojom::ScreenlockStateListener> bindings_; | 43 mojo::BindingSet<session::mojom::ScreenlockStateListener> bindings_; |
42 | 44 |
43 DISALLOW_COPY_AND_ASSIGN(Screenlock); | 45 DISALLOW_COPY_AND_ASSIGN(Screenlock); |
44 }; | 46 }; |
45 | 47 |
46 } // namespace screenlock | 48 } // namespace screenlock |
47 } // namespace mash | 49 } // namespace mash |
48 | 50 |
49 #endif // MASH_SCREENLOCK_SCREENLOCK_H_ | 51 #endif // MASH_SCREENLOCK_SCREENLOCK_H_ |
OLD | NEW |