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

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

Issue 765753003: Move window_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « examples/wm_flow/wm/frame_controller.cc ('k') | mojo/BUILD.gn » ('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 <vector> 5 #include <vector>
6 6
7 #include "examples/wm_flow/wm/frame_controller.h" 7 #include "examples/wm_flow/wm/frame_controller.h"
8 #include "mojo/application/application_runner_chromium.h" 8 #include "mojo/application/application_runner_chromium.h"
9 #include "mojo/public/c/system/main.h" 9 #include "mojo/public/c/system/main.h"
10 #include "mojo/public/cpp/application/application_delegate.h" 10 #include "mojo/public/cpp/application/application_delegate.h"
11 #include "mojo/public/cpp/application/application_impl.h" 11 #include "mojo/public/cpp/application/application_impl.h"
12 #include "mojo/public/cpp/application/service_provider_impl.h" 12 #include "mojo/public/cpp/application/service_provider_impl.h"
13 #include "mojo/services/public/cpp/view_manager/view_manager.h" 13 #include "mojo/services/public/cpp/view_manager/view_manager.h"
14 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h" 14 #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
15 #include "mojo/services/public/cpp/view_manager/view_observer.h" 15 #include "mojo/services/public/cpp/view_manager/view_observer.h"
16 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h" 16 #include "mojo/services/public/interfaces/input_events/input_events.mojom.h"
17 #include "mojo/services/window_manager/basic_focus_rules.h"
18 #include "mojo/services/window_manager/window_manager_app.h"
19 #include "mojo/services/window_manager/window_manager_delegate.h"
20 #include "mojo/views/views_init.h" 17 #include "mojo/views/views_init.h"
18 #include "services/window_manager/basic_focus_rules.h"
19 #include "services/window_manager/window_manager_app.h"
20 #include "services/window_manager/window_manager_delegate.h"
21 21
22 namespace examples { 22 namespace examples {
23 23
24 class SimpleWM : public mojo::ApplicationDelegate, 24 class SimpleWM : public mojo::ApplicationDelegate,
25 public mojo::ViewManagerDelegate, 25 public mojo::ViewManagerDelegate,
26 public mojo::WindowManagerDelegate, 26 public mojo::WindowManagerDelegate,
27 public mojo::ViewObserver { 27 public mojo::ViewObserver {
28 public: 28 public:
29 SimpleWM() 29 SimpleWM()
30 : shell_(nullptr), 30 : shell_(nullptr),
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 DISALLOW_COPY_AND_ASSIGN(SimpleWM); 141 DISALLOW_COPY_AND_ASSIGN(SimpleWM);
142 }; 142 };
143 143
144 } // namespace examples 144 } // namespace examples
145 145
146 MojoResult MojoMain(MojoHandle shell_handle) { 146 MojoResult MojoMain(MojoHandle shell_handle) {
147 mojo::ApplicationRunnerChromium runner(new examples::SimpleWM); 147 mojo::ApplicationRunnerChromium runner(new examples::SimpleWM);
148 return runner.Run(shell_handle); 148 return runner.Run(shell_handle);
149 } 149 }
OLDNEW
« no previous file with comments | « examples/wm_flow/wm/frame_controller.cc ('k') | mojo/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698