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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 client_(std::move(client)) {} | 42 client_(std::move(client)) {} |
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(MakeRequest(&window_manager_internal_)); |
53 MakeRequest(&window_manager_internal_, client_.associated_group())); | |
54 return window_manager_internal_.get(); | 53 return window_manager_internal_.get(); |
55 } | 54 } |
56 | 55 |
57 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused( | 56 void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused( |
58 bool paused) { | 57 bool paused) { |
59 if (paused) | 58 if (paused) |
60 binding_.PauseIncomingMethodCallProcessing(); | 59 binding_.PauseIncomingMethodCallProcessing(); |
61 else | 60 else |
62 binding_.ResumeIncomingMethodCallProcessing(); | 61 binding_.ResumeIncomingMethodCallProcessing(); |
63 } | 62 } |
64 | 63 |
65 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() { | 64 mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() { |
66 client_.reset(); | 65 client_.reset(); |
67 MakeRequest(&client_); | 66 MakeRequest(&client_); |
68 return client_.get(); | 67 return client_.get(); |
69 } | 68 } |
70 | 69 |
71 } // namespace ws | 70 } // namespace ws |
72 } // namespace ui | 71 } // namespace ui |
OLD | NEW |