OLD | NEW |
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 Loading... |
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 |
OLD | NEW |