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

Side by Side Diff: mojo/services/window_manager/main.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 "mojo/public/cpp/application/application_delegate.h" 5 #include "mojo/public/cpp/application/application_export.h"
6 #include "mojo/public/cpp/application/application_runner_chromium.h"
6 #include "mojo/services/window_manager/window_manager_app.h" 7 #include "mojo/services/window_manager/window_manager_app.h"
7 8
8 // ApplicationDelegate implementation file for WindowManager users (e.g. 9 // ApplicationDelegate implementation file for WindowManager users (e.g.
9 // core window manager tests) that do not want to provide their own 10 // core window manager tests) that do not want to provide their own
10 // ApplicationDelegate::Create(). 11 // ApplicationDelegate::Create().
11 12
12 namespace mojo { 13 extern "C" APPLICATION_EXPORT MojoResult CDECL MojoMain(
13 14 MojoHandle shell_handle) {
14 // static 15 return mojo::ApplicationRunnerChromium(make_scoped_delegate(
15 ApplicationDelegate* ApplicationDelegate::Create() { 16 new mojo::WindowManagerApp(NULL))).Run(shell_handle);
16 return new WindowManagerApp(NULL);
17 } 17 }
18
19 } // namespace mojo
OLDNEW
« mojo/services/view_manager/main.cc ('K') | « mojo/services/view_manager/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698