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_impl.h" | 5 #include "services/window_manager/window_manager_impl.h" |
6 | 6 |
7 #include "mojo/services/window_manager/window_manager_app.h" | 7 #include "services/window_manager/window_manager_app.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 | 10 |
11 WindowManagerImpl::WindowManagerImpl(WindowManagerApp* window_manager, | 11 WindowManagerImpl::WindowManagerImpl(WindowManagerApp* window_manager, |
12 bool from_vm) | 12 bool from_vm) |
13 : window_manager_(window_manager), from_vm_(from_vm), binding_(this) { | 13 : window_manager_(window_manager), from_vm_(from_vm), binding_(this) { |
14 window_manager_->AddConnection(this); | 14 window_manager_->AddConnection(this); |
15 binding_.set_error_handler(this); | 15 binding_.set_error_handler(this); |
16 } | 16 } |
17 | 17 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 if (success) | 72 if (success) |
73 window_manager_->ActivateWindow(view); | 73 window_manager_->ActivateWindow(view); |
74 callback.Run(success); | 74 callback.Run(success); |
75 } | 75 } |
76 | 76 |
77 void WindowManagerImpl::OnConnectionError() { | 77 void WindowManagerImpl::OnConnectionError() { |
78 delete this; | 78 delete this; |
79 } | 79 } |
80 | 80 |
81 } // namespace mojo | 81 } // namespace mojo |
OLD | NEW |