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

Side by Side Diff: examples/moterm_example_app/moterm_example_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
« no previous file with comments | « examples/media_test/media_test_app.cc ('k') | examples/native_run_app/native_run_app.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // This is a simple example application (with an embeddable view), which embeds 5 // This is a simple example application (with an embeddable view), which embeds
6 // the Moterm view, uses it to prompt the user, etc. 6 // the Moterm view, uses it to prompt the user, etc.
7 7
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "mojo/application/application_runner_chromium.h" 18 #include "mojo/application/application_runner_chromium.h"
19 #include "mojo/common/binding_set.h" 19 #include "mojo/common/binding_set.h"
20 #include "mojo/public/c/system/main.h" 20 #include "mojo/public/c/system/main.h"
21 #include "mojo/public/cpp/application/application_connection.h"
22 #include "mojo/public/cpp/application/application_delegate.h" 21 #include "mojo/public/cpp/application/application_delegate.h"
23 #include "mojo/public/cpp/application/application_impl.h" 22 #include "mojo/public/cpp/application/application_impl.h"
24 #include "mojo/public/cpp/application/connect.h" 23 #include "mojo/public/cpp/application/connect.h"
25 #include "mojo/public/cpp/bindings/array.h" 24 #include "mojo/public/cpp/bindings/array.h"
26 #include "mojo/public/cpp/bindings/strong_binding.h" 25 #include "mojo/public/cpp/bindings/strong_binding.h"
27 #include "mojo/public/interfaces/application/service_provider.mojom.h" 26 #include "mojo/public/interfaces/application/service_provider.mojom.h"
28 #include "mojo/public/interfaces/application/shell.mojom.h" 27 #include "mojo/public/interfaces/application/shell.mojom.h"
29 #include "mojo/services/files/interfaces/file.mojom.h" 28 #include "mojo/services/files/interfaces/file.mojom.h"
30 #include "mojo/services/files/interfaces/types.mojom.h" 29 #include "mojo/services/files/interfaces/types.mojom.h"
31 #include "mojo/services/terminal/interfaces/terminal.mojom.h" 30 #include "mojo/services/terminal/interfaces/terminal.mojom.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 171 }
173 172
174 private: 173 private:
175 DISALLOW_COPY_AND_ASSIGN(MotermExampleApp); 174 DISALLOW_COPY_AND_ASSIGN(MotermExampleApp);
176 }; 175 };
177 176
178 MojoResult MojoMain(MojoHandle application_request) { 177 MojoResult MojoMain(MojoHandle application_request) {
179 mojo::ApplicationRunnerChromium runner(new MotermExampleApp()); 178 mojo::ApplicationRunnerChromium runner(new MotermExampleApp());
180 return runner.Run(application_request); 179 return runner.Run(application_request);
181 } 180 }
OLDNEW
« no previous file with comments | « examples/media_test/media_test_app.cc ('k') | examples/native_run_app/native_run_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698