Creates a trivial wm example app
It consists of two pieces:
. The wm, which has the single function Embed. Embed() creates a view
that is a child of the root and embeds the supplied ViewTreeClient
in it.
. A client, which currently calls Embed() three times.
BUG=none
TEST=none
[email protected]
Review URL: https://codereview.chromium.org/1403693004
Cr-Commit-Position: refs/heads/master@{#353811}
diff --git a/components/mus/example/wm/main.cc b/components/mus/example/wm/main.cc
new file mode 100644
index 0000000..14727c0
--- /dev/null
+++ b/components/mus/example/wm/main.cc
@@ -0,0 +1,12 @@
+// Copyright 2015 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 "components/mus/example/wm/wm_application_delegate.h"
+#include "mojo/application/public/cpp/application_runner.h"
+#include "third_party/mojo/src/mojo/public/c/system/main.h"
+
+MojoResult MojoMain(MojoHandle shell_handle) {
+ mojo::ApplicationRunner runner(new WMApplicationDelegate);
+ return runner.Run(shell_handle);
+}