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

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

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 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 | « examples/spinning_cube/gles2_client_impl.h ('k') | examples/surfaces_app/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 <stdio.h> 5 #include <stdio.h>
6 #include <string> 6 #include <string>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "examples/spinning_cube/gles2_client_impl.h" 10 #include "examples/spinning_cube/gles2_client_impl.h"
11 #include "mojo/public/c/system/main.h" 11 #include "mojo/public/c/system/main.h"
12 #include "mojo/public/cpp/application/application_connection.h" 12 #include "mojo/public/cpp/application/application_connection.h"
13 #include "mojo/public/cpp/application/application_delegate.h" 13 #include "mojo/public/cpp/application/application_delegate.h"
14 #include "mojo/public/cpp/application/application_impl.h" 14 #include "mojo/public/cpp/application/application_impl.h"
15 #include "mojo/public/cpp/application/application_runner.h" 15 #include "mojo/public/cpp/application/application_runner.h"
16 #include "mojo/public/cpp/system/core.h" 16 #include "mojo/public/cpp/system/core.h"
17 #include "mojo/public/cpp/system/macros.h" 17 #include "mojo/public/cpp/system/macros.h"
18 #include "mojo/public/cpp/utility/run_loop.h" 18 #include "mojo/public/cpp/utility/run_loop.h"
19 #include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom. h" 19 #include "mojo/services/native_viewport/interfaces/native_viewport.mojom.h"
20 20
21 namespace examples { 21 namespace examples {
22 22
23 class SpinningCubeApp : public mojo::ApplicationDelegate, 23 class SpinningCubeApp : public mojo::ApplicationDelegate,
24 public mojo::NativeViewportEventDispatcher { 24 public mojo::NativeViewportEventDispatcher {
25 public: 25 public:
26 SpinningCubeApp() : dispatcher_binding_(this) {} 26 SpinningCubeApp() : dispatcher_binding_(this) {}
27 27
28 ~SpinningCubeApp() override { 28 ~SpinningCubeApp() override {
29 // TODO(darin): Fix shutdown so we don't need to leak this. 29 // TODO(darin): Fix shutdown so we don't need to leak this.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp); 88 DISALLOW_COPY_AND_ASSIGN(SpinningCubeApp);
89 }; 89 };
90 90
91 } // namespace examples 91 } // namespace examples
92 92
93 MojoResult MojoMain(MojoHandle application_request) { 93 MojoResult MojoMain(MojoHandle application_request) {
94 mojo::ApplicationRunner runner(new examples::SpinningCubeApp); 94 mojo::ApplicationRunner runner(new examples::SpinningCubeApp);
95 return runner.Run(application_request); 95 return runner.Run(application_request);
96 } 96 }
OLDNEW
« no previous file with comments | « examples/spinning_cube/gles2_client_impl.h ('k') | examples/surfaces_app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698