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

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: seperate Run call 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/public/cpp/application/service_provider_impl.h" 10 #include "mojo/public/cpp/application/service_provider_impl.h"
9 #include "mojo/public/interfaces/application/service_provider.mojom.h" 11 #include "mojo/public/interfaces/application/service_provider.mojom.h"
10 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" 12 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
11 13
12 namespace examples { 14 namespace examples {
13 namespace { 15 namespace {
14 void ConnectCallback(bool success) {} 16 void ConnectCallback(bool success) {}
15 } // namespace 17 } // namespace
16 18
17 // This application starts the view manager, embeds the window manager and then 19 // This application starts the view manager, embeds the window manager and then
(...skipping 17 matching lines...) Expand all
35 37
36 void OnConnect(bool success) {} 38 void OnConnect(bool success) {}
37 39
38 mojo::ViewManagerInitServicePtr view_manager_init_; 40 mojo::ViewManagerInitServicePtr view_manager_init_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(WMFlowInit); 42 DISALLOW_COPY_AND_ASSIGN(WMFlowInit);
41 }; 43 };
42 44
43 } // namespace examples 45 } // namespace examples
44 46
45 namespace mojo { 47 extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
46 48 MojoHandle shell_handle) {
47 // static 49 mojo::ApplicationRunnerChromium runner(new examples::WMFlowInit);
48 ApplicationDelegate* ApplicationDelegate::Create() { 50 return runner.Run(shell_handle);
49 return new examples::WMFlowInit;
50 } 51 }
51
52 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698