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

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

Issue 177183002: Mojo: Include "path/to/foo.mojom.h" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary abspath Created 6 years, 9 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/gles2/command_buffer_client_impl.h » ('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/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "mojo/examples/launcher/launcher.mojom.h"
11 #include "mojo/examples/view_manager/view_manager.mojom.h"
10 #include "mojo/public/bindings/allocation_scope.h" 12 #include "mojo/public/bindings/allocation_scope.h"
11 #include "mojo/public/bindings/remote_ptr.h" 13 #include "mojo/public/bindings/remote_ptr.h"
12 #include "mojo/public/shell/application.h" 14 #include "mojo/public/shell/application.h"
15 #include "mojo/public/shell/shell.mojom.h"
13 #include "mojo/public/system/core.h" 16 #include "mojo/public/system/core.h"
14 #include "mojo/public/system/macros.h" 17 #include "mojo/public/system/macros.h"
15 #include "mojo/services/native_viewport/geometry_conversions.h" 18 #include "mojo/services/native_viewport/geometry_conversions.h"
16 #include "mojom/launcher.h" 19 #include "mojo/services/native_viewport/native_viewport.mojom.h"
17 #include "mojom/native_viewport.h"
18 #include "mojom/shell.h"
19 #include "mojom/view_manager.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)
25 #if !defined(CDECL) 25 #if !defined(CDECL)
26 #define CDECL __cdecl) 26 #define CDECL __cdecl)
27 #endif 27 #endif
28 #define VIEW_MANAGER_EXPORT __declspec(dllexport) 28 #define VIEW_MANAGER_EXPORT __declspec(dllexport)
29 #else 29 #else
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain( 140 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain(
141 MojoHandle shell_handle) { 141 MojoHandle shell_handle) {
142 base::MessageLoop loop; 142 base::MessageLoop loop;
143 mojo::Application app(shell_handle); 143 mojo::Application app(shell_handle);
144 app.AddServiceFactory( 144 app.AddServiceFactory(
145 new mojo::ServiceFactory<mojo::examples::ViewManagerImpl>); 145 new mojo::ServiceFactory<mojo::examples::ViewManagerImpl>);
146 loop.Run(); 146 loop.Run();
147 147
148 return MOJO_RESULT_OK; 148 return MOJO_RESULT_OK;
149 } 149 }
OLDNEW
« no previous file with comments | « mojo/examples/sample_app/sample_app.cc ('k') | mojo/gles2/command_buffer_client_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698