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

Side by Side Diff: mojo/examples/view_manager/view_manager.cc

Issue 213393002: Mojo: Move public C system header files to mojo/public/c/system/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/mojo_public.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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 }
OLDNEW
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/mojo_public.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698