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

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

Issue 1977023003: ApplicationConnection devolution, part 4 (the end). (Closed) Base URL: https://github.com/domokit/mojo.git@work790_app_conn_devo_3.1
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
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"
11 #include "examples/spinning_cube/gles2_client_impl.h" 11 #include "examples/spinning_cube/gles2_client_impl.h"
12 #include "mojo/public/c/system/main.h" 12 #include "mojo/public/c/system/main.h"
13 #include "mojo/public/cpp/application/application_connection.h"
14 #include "mojo/public/cpp/application/application_delegate.h" 13 #include "mojo/public/cpp/application/application_delegate.h"
15 #include "mojo/public/cpp/application/application_impl.h" 14 #include "mojo/public/cpp/application/application_impl.h"
16 #include "mojo/public/cpp/application/application_runner.h" 15 #include "mojo/public/cpp/application/application_runner.h"
17 #include "mojo/public/cpp/application/connect.h" 16 #include "mojo/public/cpp/application/connect.h"
17 #include "mojo/public/cpp/application/service_provider_impl.h"
18 #include "mojo/public/cpp/system/macros.h" 18 #include "mojo/public/cpp/system/macros.h"
19 #include "mojo/public/cpp/utility/run_loop.h" 19 #include "mojo/public/cpp/utility/run_loop.h"
20 #include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h" 20 #include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h"
21 #include "mojo/services/native_viewport/interfaces/native_viewport_event_dispatc her.mojom.h" 21 #include "mojo/services/native_viewport/interfaces/native_viewport_event_dispatc her.mojom.h"
22 22
23 namespace examples { 23 namespace examples {
24 24
25 class SpinningCubeApp : public mojo::ApplicationDelegate, 25 class SpinningCubeApp : public mojo::ApplicationDelegate,
26 public mojo::NativeViewportEventDispatcher { 26 public mojo::NativeViewportEventDispatcher {
27 public: 27 public:
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 mojo::ApplicationRunner runner(std::unique_ptr<examples::SpinningCubeApp>( 97 mojo::ApplicationRunner runner(std::unique_ptr<examples::SpinningCubeApp>(
98 new examples::SpinningCubeApp())); 98 new examples::SpinningCubeApp()));
99 return runner.Run(application_request); 99 return runner.Run(application_request);
100 } 100 }
OLDNEW
« no previous file with comments | « examples/recursive_content_handler/recursive_content_handler.cc ('k') | examples/trace_me/trace_me_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698