| 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 "components/window_manager/window_manager_impl.h" | 5 #include "components/window_manager/window_manager_impl.h" |
| 6 | 6 |
| 7 #include "components/view_manager/public/cpp/view.h" |
| 7 #include "components/window_manager/capture_controller.h" | 8 #include "components/window_manager/capture_controller.h" |
| 8 #include "components/window_manager/focus_controller.h" | 9 #include "components/window_manager/focus_controller.h" |
| 9 #include "components/window_manager/window_manager_app.h" | 10 #include "components/window_manager/window_manager_app.h" |
| 10 #include "third_party/mojo_services/src/view_manager/public/cpp/view.h" | |
| 11 | 11 |
| 12 using mojo::Callback; | 12 using mojo::Callback; |
| 13 using mojo::Id; | 13 using mojo::Id; |
| 14 | 14 |
| 15 namespace window_manager { | 15 namespace window_manager { |
| 16 | 16 |
| 17 WindowManagerImpl::WindowManagerImpl(WindowManagerApp* window_manager, | 17 WindowManagerImpl::WindowManagerImpl(WindowManagerApp* window_manager, |
| 18 bool from_vm) | 18 bool from_vm) |
| 19 : window_manager_(window_manager), from_vm_(from_vm), binding_(this) { | 19 : window_manager_(window_manager), from_vm_(from_vm), binding_(this) { |
| 20 window_manager_->AddConnection(this); | 20 window_manager_->AddConnection(this); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 callback.Run(capture_view ? capture_view->id() : 0, | 89 callback.Run(capture_view ? capture_view->id() : 0, |
| 90 focused_view ? focused_view->id() : 0, | 90 focused_view ? focused_view->id() : 0, |
| 91 active_view ? active_view->id() : 0); | 91 active_view ? active_view->id() : 0); |
| 92 } | 92 } |
| 93 | 93 |
| 94 void WindowManagerImpl::OnConnectionError() { | 94 void WindowManagerImpl::OnConnectionError() { |
| 95 delete this; | 95 delete this; |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace window_manager | 98 } // namespace window_manager |
| OLD | NEW |