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

Side by Side Diff: services/window_manager/window_manager_app.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
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/services/window_manager/window_manager_app.h" 5 #include "services/window_manager/window_manager_app.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "mojo/converters/geometry/geometry_type_converters.h" 9 #include "mojo/converters/geometry/geometry_type_converters.h"
10 #include "mojo/converters/input_events/input_events_type_converters.h" 10 #include "mojo/converters/input_events/input_events_type_converters.h"
11 #include "mojo/public/cpp/application/application_connection.h" 11 #include "mojo/public/cpp/application/application_connection.h"
12 #include "mojo/public/cpp/application/application_impl.h" 12 #include "mojo/public/cpp/application/application_impl.h"
13 #include "mojo/public/interfaces/application/shell.mojom.h" 13 #include "mojo/public/interfaces/application/shell.mojom.h"
14 #include "mojo/services/public/cpp/view_manager/view.h" 14 #include "mojo/services/public/cpp/view_manager/view.h"
15 #include "mojo/services/public/cpp/view_manager/view_manager.h" 15 #include "mojo/services/public/cpp/view_manager/view_manager.h"
16 #include "mojo/services/window_manager/focus_controller.h" 16 #include "services/window_manager/focus_controller.h"
17 #include "mojo/services/window_manager/focus_rules.h" 17 #include "services/window_manager/focus_rules.h"
18 #include "mojo/services/window_manager/view_event_dispatcher.h" 18 #include "services/window_manager/view_event_dispatcher.h"
19 #include "mojo/services/window_manager/view_target.h" 19 #include "services/window_manager/view_target.h"
20 #include "mojo/services/window_manager/view_targeter.h" 20 #include "services/window_manager/view_targeter.h"
21 #include "mojo/services/window_manager/window_manager_delegate.h" 21 #include "services/window_manager/window_manager_delegate.h"
22 #include "ui/base/hit_test.h" 22 #include "ui/base/hit_test.h"
23 23
24 namespace mojo { 24 namespace mojo {
25 25
26 namespace { 26 namespace {
27 27
28 Id GetIdForView(View* view) { 28 Id GetIdForView(View* view) {
29 return view ? view->id() : 0; 29 return view ? view->id() : 0;
30 } 30 }
31 31
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 void WindowManagerApp::CreateWindowManagerForViewManagerClient( 331 void WindowManagerApp::CreateWindowManagerForViewManagerClient(
332 uint16_t connection_id, 332 uint16_t connection_id,
333 ScopedMessagePipeHandle window_manager_pipe) { 333 ScopedMessagePipeHandle window_manager_pipe) {
334 WindowManagerImpl* wm = new WindowManagerImpl(this, true); 334 WindowManagerImpl* wm = new WindowManagerImpl(this, true);
335 wm->Bind(window_manager_pipe.Pass()); 335 wm->Bind(window_manager_pipe.Pass());
336 // WindowManagerImpl is deleted when the connection has an error, or from our 336 // WindowManagerImpl is deleted when the connection has an error, or from our
337 // destructor. 337 // destructor.
338 } 338 }
339 339
340 } // namespace mojo 340 } // namespace mojo
OLDNEW
« no previous file with comments | « services/window_manager/window_manager_app.h ('k') | services/window_manager/window_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698