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

Side by Side Diff: mojo/examples/wm_flow/wm/wm.cc

Issue 441853002: mojo: first take on removing mojo_main_{chromium,standalone}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/wm_flow/init/init.cc ('k') | mojo/mojo_base.gyp » ('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 "mojo/public/c/system/main.h"
5 #include "mojo/public/cpp/application/application_delegate.h" 6 #include "mojo/public/cpp/application/application_delegate.h"
7 #include "mojo/public/cpp/application/application_impl.h"
8 #include "mojo/public/cpp/application/application_runner_chromium.h"
6 #include "mojo/public/cpp/application/service_provider_impl.h" 9 #include "mojo/public/cpp/application/service_provider_impl.h"
7 #include "mojo/services/public/cpp/view_manager/view_manager.h" 10 #include "mojo/services/public/cpp/view_manager/view_manager.h"
8 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" 11 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
9 #include "mojo/services/public/cpp/view_manager/view_observer.h" 12 #include "mojo/services/public/cpp/view_manager/view_observer.h"
10 #include "mojo/services/public/cpp/view_manager/window_manager_delegate.h" 13 #include "mojo/services/public/cpp/view_manager/window_manager_delegate.h"
11 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h" 14 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
12 #include "mojo/services/window_manager/window_manager_app.h" 15 #include "mojo/services/window_manager/window_manager_app.h"
13 16
14 namespace examples { 17 namespace examples {
15 18
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 mojo::View* root_; 113 mojo::View* root_;
111 mojo::View* window_container_; 114 mojo::View* window_container_;
112 115
113 gfx::Point next_window_origin_; 116 gfx::Point next_window_origin_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(SimpleWM); 118 DISALLOW_COPY_AND_ASSIGN(SimpleWM);
116 }; 119 };
117 120
118 } // namespace examples 121 } // namespace examples
119 122
120 namespace mojo { 123 MojoResult MojoMain(MojoHandle shell_handle) {
121 124 mojo::ApplicationRunnerChromium runner(new examples::SimpleWM);
122 // static 125 return runner.Run(shell_handle);
123 ApplicationDelegate* ApplicationDelegate::Create() {
124 return new examples::SimpleWM;
125 } 126 }
126
127 } // namespace
OLDNEW
« no previous file with comments | « mojo/examples/wm_flow/init/init.cc ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698