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/cpp/bindings/allocation_scope.h" |
14 #include "mojo/public/bindings/remote_ptr.h" | 14 #include "mojo/public/cpp/bindings/remote_ptr.h" |
15 #include "mojo/public/cpp/shell/application.h" | 15 #include "mojo/public/cpp/shell/application.h" |
16 #include "mojo/public/cpp/system/core.h" | 16 #include "mojo/public/cpp/system/core.h" |
17 #include "mojo/public/interfaces/shell/shell.mojom.h" | 17 #include "mojo/public/interfaces/shell/shell.mojom.h" |
18 #include "mojo/services/native_viewport/geometry_conversions.h" | 18 #include "mojo/services/native_viewport/geometry_conversions.h" |
19 #include "mojo/services/native_viewport/native_viewport.mojom.h" | 19 #include "mojo/services/native_viewport/native_viewport.mojom.h" |
20 #include "ui/events/event_constants.h" | 20 #include "ui/events/event_constants.h" |
21 #include "ui/events/keycodes/keyboard_codes.h" | 21 #include "ui/events/keycodes/keyboard_codes.h" |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 | 23 |
24 #if defined(WIN32) | 24 #if defined(WIN32) |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain( | 141 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain( |
142 MojoHandle shell_handle) { | 142 MojoHandle shell_handle) { |
143 base::MessageLoop loop; | 143 base::MessageLoop loop; |
144 mojo::Application app(shell_handle); | 144 mojo::Application app(shell_handle); |
145 app.AddServiceFactory( | 145 app.AddServiceFactory( |
146 new mojo::ServiceFactory<mojo::examples::ViewManagerImpl>); | 146 new mojo::ServiceFactory<mojo::examples::ViewManagerImpl>); |
147 loop.Run(); | 147 loop.Run(); |
148 | 148 |
149 return MOJO_RESULT_OK; | 149 return MOJO_RESULT_OK; |
150 } | 150 } |
OLD | NEW |