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

Unified Diff: sky/shell/ui/internals.h

Issue 962043002: Expose Android sensors to via Mojo services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Review comments Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/ui/engine.cc ('k') | sky/shell/ui/internals.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/internals.h
diff --git a/sky/shell/ui/internals.h b/sky/shell/ui/internals.h
new file mode 100644
index 0000000000000000000000000000000000000000..c0efac913a49f200dedbe910abe7f3d276002506
--- /dev/null
+++ b/sky/shell/ui/internals.h
@@ -0,0 +1,35 @@
+// Copyright 2014 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 SKY_SHELL_UI_INTERNALS_H_
+#define SKY_SHELL_UI_INTERNALS_H_
+
+#include "base/supports_user_data.h"
+#include "dart/runtime/include/dart_api.h"
+#include "mojo/public/interfaces/application/service_provider.mojom.h"
+
+namespace sky {
+namespace shell {
+
+class Internals : public base::SupportsUserData::Data {
+ public:
+ virtual ~Internals();
+
+ static void Create(Dart_Isolate isolate,
+ mojo::ServiceProviderPtr service_provider);
+
+ mojo::Handle TakeServicesProvidedByEmbedder();
+
+ private:
+ explicit Internals(mojo::ServiceProviderPtr service_provider);
+
+ mojo::ServiceProviderPtr service_provider_;
+
+ MOJO_DISALLOW_COPY_AND_ASSIGN(Internals);
+};
+
+} // namespace shell
+} // namespace sky
+
+#endif // SKY_SHELL_UI_INTERNALS_H_
« no previous file with comments | « sky/shell/ui/engine.cc ('k') | sky/shell/ui/internals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698