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

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

Issue 267293004: Wires up view manager to an actual display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 7 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/message_loop/message_loop.h"
6 #include "mojo/public/cpp/shell/application.h"
7 #include "mojo/services/view_manager/root_node_manager.h"
8 #include "mojo/services/view_manager/view_manager_connection.h"
9
10 #if defined(WIN32)
11 #if !defined(CDECL)
12 #define CDECL __cdecl)
13 #endif
14 #define VIEW_MANAGER_EXPORT __declspec(dllexport)
15 #else
16 #define CDECL
17 #define VIEW_MANAGER_EXPORT __attribute__((visibility("default")))
18 #endif
19
20 extern "C" VIEW_MANAGER_EXPORT MojoResult CDECL MojoMain(
21 MojoHandle shell_handle) {
22 base::MessageLoop loop;
23 mojo::Application app(shell_handle);
24 mojo::services::view_manager::RootNodeManager root_node_manager;
25 app.AddServiceConnector(new mojo::ServiceConnector
26 <mojo::services::view_manager::ViewManagerConnection,
27 mojo::services::view_manager::RootNodeManager>(
28 &root_node_manager));
29 loop.Run();
30
31 return MOJO_RESULT_OK;
32 }
OLDNEW
« no previous file with comments | « mojo/services/view_manager/view.cc ('k') | mojo/services/view_manager/view_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698