| 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 "services/ui/ws/window_tree_binding.h" | 5 #include "services/ui/ws/window_tree_binding.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "services/ui/ws/window_server.h" | 8 #include "services/ui/ws/window_server.h" |
| 9 #include "services/ui/ws/window_tree.h" | 9 #include "services/ui/ws/window_tree.h" |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 DefaultWindowTreeBinding::~DefaultWindowTreeBinding() {} | 44 DefaultWindowTreeBinding::~DefaultWindowTreeBinding() {} |
| 45 | 45 |
| 46 mojom::WindowTreePtr DefaultWindowTreeBinding::CreateInterfacePtrAndBind() { | 46 mojom::WindowTreePtr DefaultWindowTreeBinding::CreateInterfacePtrAndBind() { |
| 47 DCHECK(!binding_.is_bound()); | 47 DCHECK(!binding_.is_bound()); |
| 48 return binding_.CreateInterfacePtrAndBind(); | 48 return binding_.CreateInterfacePtrAndBind(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 mojom::WindowManager* DefaultWindowTreeBinding::GetWindowManager() { | 51 mojom::WindowManager* DefaultWindowTreeBinding::GetWindowManager() { |
| 52 client_->GetWindowManager( | 52 client_->GetWindowManager( |
| 53 GetProxy(&window_manager_internal_, client_.associated_group())); | 53 MakeRequest(&window_manager_internal_, client_.associated_group())); |
| 54 return window_manager_internal_.get(); | 54 return window_manager_internal_.get(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused( | 57 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused( |
| 58 bool paused) { | 58 bool paused) { |
| 59 if (paused) | 59 if (paused) |
| 60 binding_.PauseIncomingMethodCallProcessing(); | 60 binding_.PauseIncomingMethodCallProcessing(); |
| 61 else | 61 else |
| 62 binding_.ResumeIncomingMethodCallProcessing(); | 62 binding_.ResumeIncomingMethodCallProcessing(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() { | 65 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() { |
| 66 client_.reset(); | 66 client_.reset(); |
| 67 GetProxy(&client_); | 67 MakeRequest(&client_); |
| 68 return client_.get(); | 68 return client_.get(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace ws | 71 } // namespace ws |
| 72 } // namespace ui | 72 } // namespace ui |
| OLD | NEW |