OLD | NEW |
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 | |
OLD | NEW |