Index: mojo/examples/surfaces_app/child_app.cc |
diff --git a/mojo/examples/surfaces_app/child_app.cc b/mojo/examples/surfaces_app/child_app.cc |
deleted file mode 100644 |
index ecd371e064f02e3d3ce2432df1907ca2e5067917..0000000000000000000000000000000000000000 |
--- a/mojo/examples/surfaces_app/child_app.cc |
+++ /dev/null |
@@ -1,52 +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/macros.h" |
-#include "mojo/application/application_runner_chromium.h" |
-#include "mojo/examples/surfaces_app/child_impl.h" |
-#include "mojo/public/c/system/main.h" |
-#include "mojo/public/cpp/application/application_connection.h" |
-#include "mojo/public/cpp/application/application_delegate.h" |
-#include "mojo/public/cpp/application/application_impl.h" |
-#include "mojo/public/cpp/bindings/string.h" |
- |
-namespace mojo { |
-namespace examples { |
- |
-class ChildApp : public ApplicationDelegate, public InterfaceFactory<Child> { |
- public: |
- ChildApp() {} |
- virtual ~ChildApp() {} |
- |
- virtual void Initialize(ApplicationImpl* app) override { |
- surfaces_service_connection_ = |
- app->ConnectToApplication("mojo:surfaces_service"); |
- } |
- |
- // ApplicationDelegate implementation. |
- virtual bool ConfigureIncomingConnection( |
- ApplicationConnection* connection) override { |
- connection->AddService(this); |
- return true; |
- } |
- |
- // InterfaceFactory<Child> implementation. |
- virtual void Create(ApplicationConnection* connection, |
- InterfaceRequest<Child> request) override { |
- BindToRequest(new ChildImpl(surfaces_service_connection_), &request); |
- } |
- |
- private: |
- ApplicationConnection* surfaces_service_connection_; |
- |
- DISALLOW_COPY_AND_ASSIGN(ChildApp); |
-}; |
- |
-} // namespace examples |
-} // namespace mojo |
- |
-MojoResult MojoMain(MojoHandle shell_handle) { |
- mojo::ApplicationRunnerChromium runner(new mojo::examples::ChildApp); |
- return runner.Run(shell_handle); |
-} |