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

Unified Diff: examples/ui/tile/tile_app.h

Issue 1425543002: mozart: Add a simple tiling view manager. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
Index: examples/ui/tile/tile_app.h
diff --git a/examples/ui/tile/tile_app.h b/examples/ui/tile/tile_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..1779f476d35f645ca573c156e3efe8288cbdb922
--- /dev/null
+++ b/examples/ui/tile/tile_app.h
@@ -0,0 +1,43 @@
+// Copyright 2013 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 EXAMPLES_UI_TILE_TILE_APP_H_
+#define EXAMPLES_UI_TILE_TILE_APP_H_
+
+#include "base/bind.h"
+#include "base/memory/scoped_ptr.h"
+#include "mojo/common/strong_binding_set.h"
+#include "mojo/public/c/system/main.h"
+#include "mojo/public/cpp/application/application_connection.h"
+#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/system/core.h"
+#include "mojo/public/cpp/system/macros.h"
+#include "mojo/services/ui/views/interfaces/view_provider.mojom.h"
+
+namespace examples {
+
+class TileApp : public mojo::ApplicationDelegate,
+ public mojo::InterfaceFactory<mojo::ui::ViewProvider> {
+ public:
+ TileApp();
+ ~TileApp() override;
+
+ // |ApplicationDelegate|:
+ void Initialize(mojo::ApplicationImpl* app) override;
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
+
+ // |InterfaceFactory<mojo::ui::ViewProvider>|:
+ void Create(mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mojo::ui::ViewProvider> request) override;
+
+ mojo::ApplicationImpl* app_impl_;
+ mojo::StrongBindingSet<mojo::ui::ViewProvider> bindings_;
+
+ DISALLOW_COPY_AND_ASSIGN(TileApp);
+};
+
+} // namespace examples
+
+#endif // EXAMPLES_UI_TILE_TILE_APP_H_

Powered by Google App Engine
This is Rietveld 408576698