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

Side by Side Diff: examples/spinning_cube/spinning_cube_app.cc

Issue 2008543004: Add RunMainApplication()/TerminateMainApplication() for use in MojoMain(). (Closed) Base URL: https://github.com/domokit/mojo.git@work796_run_app_returns
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | mojo/public/cpp/application/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <assert.h> 5 #include <assert.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 mojo::ContextProviderPtr onscreen_context_provider_; 88 mojo::ContextProviderPtr onscreen_context_provider_;
89 mojo::Binding<NativeViewportEventDispatcher> dispatcher_binding_; 89 mojo::Binding<NativeViewportEventDispatcher> dispatcher_binding_;
90 90
91 MOJO_DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp); 91 MOJO_DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp);
92 }; 92 };
93 93
94 } // namespace examples 94 } // namespace examples
95 95
96 MojoResult MojoMain(MojoHandle application_request) { 96 MojoResult MojoMain(MojoHandle application_request) {
97 examples::SpinningCubeApp spinning_cube_app; 97 examples::SpinningCubeApp spinning_cube_app;
98 return mojo::RunApplication(application_request, &spinning_cube_app); 98 return mojo::RunMainApplication(application_request, &spinning_cube_app);
99 } 99 }
OLDNEW
« no previous file with comments | « no previous file | mojo/public/cpp/application/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698