projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
mojo
/
examples
/
echo
/
echo_client.cc
diff --git
a/src/mojo/examples/echo/echo_client.cc
b/src/mojo/examples/echo/echo_client.cc
index
0e6d7b9
..
c045382
100644
(file)
--- a/
src/mojo/examples/echo/echo_client.cc
+++ b/
src/mojo/examples/echo/echo_client.cc
@@
-5,8
+5,10
@@
#include <stdio.h>
#include "mojo/examples/echo/echo_service.mojom.h"
#include <stdio.h>
#include "mojo/examples/echo/echo_service.mojom.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/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/application_runner.h"
#include "mojo/public/cpp/utility/run_loop.h"
namespace mojo {
#include "mojo/public/cpp/utility/run_loop.h"
namespace mojo {
@@
-34,10
+36,9
@@
class EchoClientDelegate : public ApplicationDelegate {
};
} // namespace examples
};
} // namespace examples
+} // namespace mojo
-// static
-ApplicationDelegate* ApplicationDelegate::Create() {
- return
new examples::EchoClientDelegate(
);
+MojoResult MojoMain(MojoHandle shell_handle) {
+ mojo::ApplicationRunner runner(new mojo::examples::EchoClientDelegate);
+ return
runner.Run(shell_handle
);
}
}
-
-} // namespace mojo