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 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 class Screenlock : public mojo::ShellClient, | 24 class Screenlock : public mojo::ShellClient, |
25 public shell::mojom::ScreenlockStateListener { | 25 public shell::mojom::ScreenlockStateListener { |
26 public: | 26 public: |
27 Screenlock(); | 27 Screenlock(); |
28 ~Screenlock() override; | 28 ~Screenlock() override; |
29 | 29 |
30 private: | 30 private: |
31 // mojo::ShellClient: | 31 // mojo::ShellClient: |
32 void Initialize(mojo::Connector* connector, const std::string& url, | 32 void Initialize(mojo::Connector* connector, const std::string& url, |
33 uint32_t id, uint32_t user_id) override; | 33 const std::string& user_id, uint32_t id) override; |
34 | 34 |
35 // mash::shell::mojom::ScreenlockStateListener: | 35 // mash::shell::mojom::ScreenlockStateListener: |
36 void ScreenlockStateChanged(bool locked) override; | 36 void ScreenlockStateChanged(bool locked) override; |
37 | 37 |
38 mojo::TracingImpl tracing_; | 38 mojo::TracingImpl tracing_; |
39 scoped_ptr<views::AuraInit> aura_init_; | 39 scoped_ptr<views::AuraInit> aura_init_; |
40 mojo::BindingSet<mash::shell::mojom::ScreenlockStateListener> bindings_; | 40 mojo::BindingSet<mash::shell::mojom::ScreenlockStateListener> bindings_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(Screenlock); | 42 DISALLOW_COPY_AND_ASSIGN(Screenlock); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace screenlock | 45 } // namespace screenlock |
46 } // namespace mash | 46 } // namespace mash |
47 | 47 |
48 #endif // MASH_SCREENLOCK_SCREENLOCK_H_ | 48 #endif // MASH_SCREENLOCK_SCREENLOCK_H_ |
OLD | NEW |