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

Unified Diff: trunk/src/mojo/examples/compositor_app/compositor_app.cc

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
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
« no previous file with comments | « trunk/src/mojo/examples/aura_demo/aura_demo.cc ('k') | trunk/src/mojo/examples/dbus_echo/dbus_echo_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/mojo/examples/compositor_app/compositor_app.cc
===================================================================
--- trunk/src/mojo/examples/compositor_app/compositor_app.cc (revision 272983)
+++ trunk/src/mojo/examples/compositor_app/compositor_app.cc (working copy)
@@ -9,11 +9,11 @@
#include "base/message_loop/message_loop.h"
#include "mojo/examples/compositor_app/compositor_host.h"
#include "mojo/geometry/geometry_type_converters.h"
-#include "mojo/public/cpp/application/application.h"
#include "mojo/public/cpp/bindings/allocation_scope.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/interfaces/service_provider/service_provider.mojom.h"
+#include "mojo/public/interfaces/shell/shell.mojom.h"
#include "mojo/services/native_viewport/native_viewport.mojom.h"
#include "ui/gfx/rect.h"
@@ -32,8 +32,7 @@
class SampleApp : public Application, public NativeViewportClient {
public:
- explicit SampleApp(MojoHandle service_provider_handle)
- : Application(service_provider_handle) {
+ explicit SampleApp(MojoHandle shell_handle) : Application(shell_handle) {
AllocationScope scope;
ConnectTo("mojo:mojo_native_viewport_service", &viewport_);
@@ -72,11 +71,11 @@
} // namespace mojo
extern "C" SAMPLE_APP_EXPORT MojoResult CDECL MojoMain(
- MojoHandle service_provider_handle) {
+ MojoHandle shell_handle) {
base::MessageLoop loop;
mojo::GLES2Initializer gles2;
- mojo::examples::SampleApp app(service_provider_handle);
+ mojo::examples::SampleApp app(shell_handle);
loop.Run();
return MOJO_RESULT_OK;
}
« no previous file with comments | « trunk/src/mojo/examples/aura_demo/aura_demo.cc ('k') | trunk/src/mojo/examples/dbus_echo/dbus_echo_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698