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

Unified 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, 11 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 | « mash/screenlock/public/interfaces/screenlock.mojom ('k') | mash/screenlock/screenlock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/screenlock/screenlock.h
diff --git a/mash/screenlock/screenlock.h b/mash/screenlock/screenlock.h
new file mode 100644
index 0000000000000000000000000000000000000000..9c26107a1bb4a548df1cc0a6a428446d2fc57446
--- /dev/null
+++ b/mash/screenlock/screenlock.h
@@ -0,0 +1,57 @@
+// 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 MASH_SCREENLOCK_SCREENLOCK_H_
+#define MASH_SCREENLOCK_SCREENLOCK_H_
+
+#include <map>
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "mash/screenlock/public/interfaces/screenlock.mojom.h"
+#include "mojo/common/weak_binding_set.h"
+#include "mojo/services/tracing/public/cpp/tracing_impl.h"
+#include "mojo/shell/public/cpp/application_delegate.h"
+
+namespace views {
+class AuraInit;
+}
+
+namespace mash {
+namespace screenlock {
+
+class Screenlock
+ : public mojo::ApplicationDelegate,
+ public mash::screenlock::mojom::Screenlock,
+ public mojo::InterfaceFactory<mash::screenlock::mojom::Screenlock> {
+ public:
+ Screenlock();
+ ~Screenlock() override;
+
+ private:
+ // mojo::ApplicationDelegate:
+ void Initialize(mojo::ApplicationImpl* app) override;
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
+
+ // mash::screenlock::mojom::Screenlock:
+ void Quit() override;
+
+ // mojo::InterfaceFactory<mash::screenlock::mojom::Screenlock>:
+ void Create(
+ mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mash::screenlock::mojom::Screenlock> r) override;
+
+ mojo::ApplicationImpl* app_;
+ mojo::TracingImpl tracing_;
+ scoped_ptr<views::AuraInit> aura_init_;
+ mojo::WeakBindingSet<mash::screenlock::mojom::Screenlock> bindings_;
+
+ DISALLOW_COPY_AND_ASSIGN(Screenlock);
+};
+
+} // namespace screenlock
+} // namespace mash
+
+#endif // MASH_SCREENLOCK_SCREENLOCK_H_
« 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