| Index: services/ui/ws/window_tree_binding.cc
|
| diff --git a/services/ui/ws/window_tree_binding.cc b/services/ui/ws/window_tree_binding.cc
|
| index 94bac3aedf29e13266595587d640e133ca7e07bf..39e382553f7469b1c7588e0b1fe9c921d5eda75b 100644
|
| --- a/services/ui/ws/window_tree_binding.cc
|
| +++ b/services/ui/ws/window_tree_binding.cc
|
| @@ -16,6 +16,10 @@ WindowTreeBinding::WindowTreeBinding(mojom::WindowTreeClient* client)
|
|
|
| WindowTreeBinding::~WindowTreeBinding() {}
|
|
|
| +void WindowTreeBinding::ResetClientForShutdown() {
|
| + client_ = CreateClientForShutdown();
|
| +}
|
| +
|
| DefaultWindowTreeBinding::DefaultWindowTreeBinding(
|
| WindowTree* tree,
|
| WindowServer* window_server,
|
| @@ -39,14 +43,6 @@ DefaultWindowTreeBinding::DefaultWindowTreeBinding(
|
|
|
| DefaultWindowTreeBinding::~DefaultWindowTreeBinding() {}
|
|
|
| -void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused(
|
| - bool paused) {
|
| - if (paused)
|
| - binding_.PauseIncomingMethodCallProcessing();
|
| - else
|
| - binding_.ResumeIncomingMethodCallProcessing();
|
| -}
|
| -
|
| mojom::WindowTreePtr DefaultWindowTreeBinding::CreateInterfacePtrAndBind() {
|
| DCHECK(!binding_.is_bound());
|
| return binding_.CreateInterfacePtrAndBind();
|
| @@ -58,5 +54,19 @@ mojom::WindowManager* DefaultWindowTreeBinding::GetWindowManager() {
|
| return window_manager_internal_.get();
|
| }
|
|
|
| +void DefaultWindowTreeBinding::SetIncomingMethodCallProcessingPaused(
|
| + bool paused) {
|
| + if (paused)
|
| + binding_.PauseIncomingMethodCallProcessing();
|
| + else
|
| + binding_.ResumeIncomingMethodCallProcessing();
|
| +}
|
| +
|
| +mojom::WindowTreeClient* DefaultWindowTreeBinding::CreateClientForShutdown() {
|
| + client_.reset();
|
| + GetProxy(&client_);
|
| + return client_.get();
|
| +}
|
| +
|
| } // namespace ws
|
| } // namespace ui
|
|
|