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

Side by Side Diff: apps/moterm/moterm_main.cc

Issue 1391243003: Move //mojo/services/X/public/... to //mojo/services/X/... (part 4). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_3-x-no_public_2-x-no_public_1
Patch Set: copyright header 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 | « apps/moterm/BUILD.gn ('k') | apps/moterm/moterm_view.h » ('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 the "main" for the embeddable Moterm terminal view, which provides 5 // This is the "main" for the embeddable Moterm terminal view, which provides
6 // services to the thing embedding it. (This is not very useful as a "top-level" 6 // services to the thing embedding it. (This is not very useful as a "top-level"
7 // application.) 7 // application.)
8 8
9 #include "apps/moterm/moterm_view.h" 9 #include "apps/moterm/moterm_view.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "mojo/application/application_runner_chromium.h" 12 #include "mojo/application/application_runner_chromium.h"
13 #include "mojo/public/c/system/main.h" 13 #include "mojo/public/c/system/main.h"
14 #include "mojo/public/cpp/application/application_connection.h" 14 #include "mojo/public/cpp/application/application_connection.h"
15 #include "mojo/public/cpp/application/application_delegate.h" 15 #include "mojo/public/cpp/application/application_delegate.h"
16 #include "mojo/public/cpp/application/application_impl.h" 16 #include "mojo/public/cpp/application/application_impl.h"
17 #include "mojo/services/view_manager/public/cpp/view_manager.h" 17 #include "mojo/services/view_manager/cpp/view_manager.h"
18 #include "mojo/services/view_manager/public/cpp/view_manager_client_factory.h" 18 #include "mojo/services/view_manager/cpp/view_manager_client_factory.h"
19 #include "mojo/services/view_manager/public/cpp/view_manager_delegate.h" 19 #include "mojo/services/view_manager/cpp/view_manager_delegate.h"
20 20
21 namespace { 21 namespace {
22 22
23 class Moterm : public mojo::ApplicationDelegate, 23 class Moterm : public mojo::ApplicationDelegate,
24 public mojo::ViewManagerDelegate { 24 public mojo::ViewManagerDelegate {
25 public: 25 public:
26 Moterm() : application_impl_() {} 26 Moterm() : application_impl_() {}
27 ~Moterm() override {} 27 ~Moterm() override {}
28 28
29 private: 29 private:
(...skipping 26 matching lines...) Expand all
56 56
57 DISALLOW_COPY_AND_ASSIGN(Moterm); 57 DISALLOW_COPY_AND_ASSIGN(Moterm);
58 }; 58 };
59 59
60 } // namespace 60 } // namespace
61 61
62 MojoResult MojoMain(MojoHandle application_request) { 62 MojoResult MojoMain(MojoHandle application_request) {
63 mojo::ApplicationRunnerChromium runner(new Moterm()); 63 mojo::ApplicationRunnerChromium runner(new Moterm());
64 return runner.Run(application_request); 64 return runner.Run(application_request);
65 } 65 }
OLDNEW
« no previous file with comments | « apps/moterm/BUILD.gn ('k') | apps/moterm/moterm_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698