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

Side by Side Diff: mojo/examples/wm_flow/init/init.cc

Issue 441853002: mojo: first take on removing mojo_main_{chromium,standalone}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "mojo/public/cpp/application/application_delegate.h" 6 #include "mojo/public/cpp/application/application_delegate.h"
7 #include "mojo/public/cpp/application/application_export.h"
7 #include "mojo/public/cpp/application/application_impl.h" 8 #include "mojo/public/cpp/application/application_impl.h"
9 #include "mojo/public/cpp/application/application_runner_chromium.h"
8 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" 10 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
9 11
10 namespace examples { 12 namespace examples {
11 namespace { 13 namespace {
12 void ConnectCallback(bool success) {} 14 void ConnectCallback(bool success) {}
13 } // namespace 15 } // namespace
14 16
15 // This application starts the view manager, embeds the window manager and then 17 // This application starts the view manager, embeds the window manager and then
16 // starts another app (wm_flow_app) which also connects to the view manager and 18 // starts another app (wm_flow_app) which also connects to the view manager and
17 // asks to be embedded without context. 19 // asks to be embedded without context.
(...skipping 13 matching lines...) Expand all
31 33
32 void OnConnect(bool success) {} 34 void OnConnect(bool success) {}
33 35
34 mojo::ViewManagerInitServicePtr view_manager_init_; 36 mojo::ViewManagerInitServicePtr view_manager_init_;
35 37
36 DISALLOW_COPY_AND_ASSIGN(WMFlowInit); 38 DISALLOW_COPY_AND_ASSIGN(WMFlowInit);
37 }; 39 };
38 40
39 } // namespace examples 41 } // namespace examples
40 42
41 namespace mojo { 43 extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
42 44 MojoHandle shell_handle) {
43 // static 45 return mojo::ApplicationRunnerChromium(
44 ApplicationDelegate* ApplicationDelegate::Create() { 46 make_scoped_delegate(new examples::WMFlowInit)).Run(shell_handle);
45 return new examples::WMFlowInit;
46 } 47 }
47
48 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698