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

Unified Diff: mojo/examples/sample_app/sample_app.cc

Issue 298003008: Shell / ShellClient -> ServiceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: mojo/examples/sample_app/sample_app.cc
diff --git a/mojo/examples/sample_app/sample_app.cc b/mojo/examples/sample_app/sample_app.cc
index 6524215c428049ac848f114949d6161f0f5d1225..74b9d99cc20ec897579237cd54e41d080c848768 100644
--- a/mojo/examples/sample_app/sample_app.cc
+++ b/mojo/examples/sample_app/sample_app.cc
@@ -6,14 +6,14 @@
#include <string>
#include "mojo/examples/sample_app/gles2_client_impl.h"
+#include "mojo/public/cpp/application/application.h"
#include "mojo/public/cpp/bindings/allocation_scope.h"
#include "mojo/public/cpp/environment/environment.h"
#include "mojo/public/cpp/gles2/gles2.h"
-#include "mojo/public/cpp/shell/application.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/public/cpp/system/macros.h"
#include "mojo/public/cpp/utility/run_loop.h"
-#include "mojo/public/interfaces/shell/shell.mojom.h"
+#include "mojo/public/interfaces/service_provider/service_provider.mojom.h"
#include "mojo/services/native_viewport/native_viewport.mojom.h"
#if defined(WIN32)
@@ -31,7 +31,8 @@ namespace examples {
class SampleApp : public Application, public NativeViewportClient {
public:
- explicit SampleApp(MojoHandle shell_handle) : Application(shell_handle) {
+ explicit SampleApp(MojoHandle service_provider_handle)
+ : Application(service_provider_handle) {
ConnectTo("mojo:mojo_native_viewport_service", &viewport_);
viewport_.set_client(this);
@@ -86,12 +87,12 @@ class SampleApp : public Application, public NativeViewportClient {
} // namespace mojo
extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain(
- MojoHandle shell_handle) {
+ MojoHandle service_provider_handle) {
mojo::Environment env;
mojo::RunLoop loop;
mojo::GLES2Initializer gles2;
- mojo::examples::SampleApp app(shell_handle);
+ mojo::examples::SampleApp app(service_provider_handle);
loop.Run();
return MOJO_RESULT_OK;
}

Powered by Google App Engine
This is Rietveld 408576698