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

Unified Diff: mojo/examples/aura_demo/view_manager_init.cc

Issue 684543003: Move //mojo/examples to //examples (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « mojo/examples/aura_demo/aura_demo.cc ('k') | mojo/examples/bitmap_uploader/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/aura_demo/view_manager_init.cc
diff --git a/mojo/examples/aura_demo/view_manager_init.cc b/mojo/examples/aura_demo/view_manager_init.cc
deleted file mode 100644
index a22df99a97f23f1d27559c169eade9a794667fac..0000000000000000000000000000000000000000
--- a/mojo/examples/aura_demo/view_manager_init.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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.
-
-#include "base/basictypes.h"
-#include "base/bind.h"
-#include "mojo/application/application_runner_chromium.h"
-#include "mojo/public/c/system/main.h"
-#include "mojo/public/cpp/application/application_delegate.h"
-#include "mojo/public/cpp/application/application_impl.h"
-#include "mojo/public/interfaces/application/service_provider.mojom.h"
-#include "mojo/services/public/cpp/view_manager/view_manager.h"
-#include "mojo/services/public/cpp/view_manager/view_manager_context.h"
-
-namespace examples {
-
-// ViewManagerInit is responsible for establishing the initial connection to
-// the view manager. When established it loads |aura_demo|.
-class ViewManagerInit : public mojo::ApplicationDelegate {
- public:
- ViewManagerInit() {}
- virtual ~ViewManagerInit() {}
-
- virtual void Initialize(mojo::ApplicationImpl* app) override {
- context_.reset(new mojo::ViewManagerContext(app));
- context_->Embed("mojo:aura_demo");
- }
-
- private:
- scoped_ptr<mojo::ViewManagerContext> context_;
-
- DISALLOW_COPY_AND_ASSIGN(ViewManagerInit);
-};
-
-} // namespace examples
-
-MojoResult MojoMain(MojoHandle shell_handle) {
- mojo::ApplicationRunnerChromium runner(new examples::ViewManagerInit);
- return runner.Run(shell_handle);
-}
« no previous file with comments | « mojo/examples/aura_demo/aura_demo.cc ('k') | mojo/examples/bitmap_uploader/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698