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 <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "mojo/examples/launcher/launcher.mojom.h" | 11 #include "mojo/examples/launcher/launcher.mojom.h" |
12 #include "mojo/examples/view_manager/view_manager.mojom.h" | 12 #include "mojo/examples/view_manager/view_manager.mojom.h" |
13 #include "mojo/public/bindings/allocation_scope.h" | 13 #include "mojo/public/bindings/allocation_scope.h" |
14 #include "mojo/public/bindings/remote_ptr.h" | 14 #include "mojo/public/bindings/remote_ptr.h" |
| 15 #include "mojo/public/c/system/core.h" |
| 16 #include "mojo/public/c/system/macros.h" |
15 #include "mojo/public/shell/application.h" | 17 #include "mojo/public/shell/application.h" |
16 #include "mojo/public/shell/shell.mojom.h" | 18 #include "mojo/public/shell/shell.mojom.h" |
17 #include "mojo/public/system/core.h" | |
18 #include "mojo/public/system/macros.h" | |
19 #include "mojo/services/native_viewport/geometry_conversions.h" | 19 #include "mojo/services/native_viewport/geometry_conversions.h" |
20 #include "mojo/services/native_viewport/native_viewport.mojom.h" | 20 #include "mojo/services/native_viewport/native_viewport.mojom.h" |
21 #include "ui/events/event_constants.h" | 21 #include "ui/events/event_constants.h" |
22 #include "ui/events/keycodes/keyboard_codes.h" | 22 #include "ui/events/keycodes/keyboard_codes.h" |
23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
24 | 24 |
25 #if defined(WIN32) | 25 #if defined(WIN32) |
26 #if !defined(CDECL) | 26 #if !defined(CDECL) |
27 #define CDECL __cdecl) | 27 #define CDECL __cdecl) |
28 #endif | 28 #endif |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain( | 142 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain( |
143 MojoHandle shell_handle) { | 143 MojoHandle shell_handle) { |
144 base::MessageLoop loop; | 144 base::MessageLoop loop; |
145 mojo::Application app(shell_handle); | 145 mojo::Application app(shell_handle); |
146 app.AddServiceFactory( | 146 app.AddServiceFactory( |
147 new mojo::ServiceFactory<mojo::examples::ViewManagerImpl>); | 147 new mojo::ServiceFactory<mojo::examples::ViewManagerImpl>); |
148 loop.Run(); | 148 loop.Run(); |
149 | 149 |
150 return MOJO_RESULT_OK; | 150 return MOJO_RESULT_OK; |
151 } | 151 } |
OLD | NEW |