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

Side by Side Diff: mash/screenlock/screenlock.h

Issue 1637113003: Add simplistic screenlock application. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mash/screenlock/public/interfaces/screenlock.mojom ('k') | mash/screenlock/screenlock.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 MASH_SCREENLOCK_SCREENLOCK_H_
6 #define MASH_SCREENLOCK_SCREENLOCK_H_
7
8 #include <map>
9
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "mash/screenlock/public/interfaces/screenlock.mojom.h"
13 #include "mojo/common/weak_binding_set.h"
14 #include "mojo/services/tracing/public/cpp/tracing_impl.h"
15 #include "mojo/shell/public/cpp/application_delegate.h"
16
17 namespace views {
18 class AuraInit;
19 }
20
21 namespace mash {
22 namespace screenlock {
23
24 class Screenlock
25 : public mojo::ApplicationDelegate,
26 public mash::screenlock::mojom::Screenlock,
27 public mojo::InterfaceFactory<mash::screenlock::mojom::Screenlock> {
28 public:
29 Screenlock();
30 ~Screenlock() override;
31
32 private:
33 // mojo::ApplicationDelegate:
34 void Initialize(mojo::ApplicationImpl* app) override;
35 bool ConfigureIncomingConnection(
36 mojo::ApplicationConnection* connection) override;
37
38 // mash::screenlock::mojom::Screenlock:
39 void Quit() override;
40
41 // mojo::InterfaceFactory<mash::screenlock::mojom::Screenlock>:
42 void Create(
43 mojo::ApplicationConnection* connection,
44 mojo::InterfaceRequest<mash::screenlock::mojom::Screenlock> r) override;
45
46 mojo::ApplicationImpl* app_;
47 mojo::TracingImpl tracing_;
48 scoped_ptr<views::AuraInit> aura_init_;
49 mojo::WeakBindingSet<mash::screenlock::mojom::Screenlock> bindings_;
50
51 DISALLOW_COPY_AND_ASSIGN(Screenlock);
52 };
53
54 } // namespace screenlock
55 } // namespace mash
56
57 #endif // MASH_SCREENLOCK_SCREENLOCK_H_
OLDNEW
« no previous file with comments | « mash/screenlock/public/interfaces/screenlock.mojom ('k') | mash/screenlock/screenlock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698