| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/aura/test/mus/window_tree_client_private.h" | 5 #include "ui/aura/test/mus/window_tree_client_private.h" |
| 6 | 6 |
| 7 #include "ui/aura/mus/window_port_mus.h" | 7 #include "ui/aura/mus/window_port_mus.h" |
| 8 #include "ui/aura/mus/window_tree_client.h" | 8 #include "ui/aura/mus/window_tree_client.h" |
| 9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
| 10 #include "ui/display/display.h" | 10 #include "ui/display/display.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void WindowTreeClientPrivate::CallOnCaptureChanged(Window* new_capture, | 59 void WindowTreeClientPrivate::CallOnCaptureChanged(Window* new_capture, |
| 60 Window* old_capture) { | 60 Window* old_capture) { |
| 61 tree_client_impl_->OnCaptureChanged( | 61 tree_client_impl_->OnCaptureChanged( |
| 62 new_capture ? WindowPortMus::Get(new_capture)->server_id() : 0, | 62 new_capture ? WindowPortMus::Get(new_capture)->server_id() : 0, |
| 63 old_capture ? WindowPortMus::Get(old_capture)->server_id() : 0); | 63 old_capture ? WindowPortMus::Get(old_capture)->server_id() : 0); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void WindowTreeClientPrivate::SetTreeAndClientId( | 66 void WindowTreeClientPrivate::SetTreeAndClientId( |
| 67 ui::mojom::WindowTree* window_tree, | 67 ui::mojom::WindowTree* window_tree, |
| 68 ClientSpecificId client_id) { | 68 ClientSpecificId client_id) { |
| 69 tree_client_impl_->tree_ = window_tree; | 69 tree_client_impl_->WindowTreeConnectionEstablished(window_tree); |
| 70 tree_client_impl_->client_id_ = client_id; | 70 tree_client_impl_->client_id_ = client_id; |
| 71 } | 71 } |
| 72 | 72 |
| 73 bool WindowTreeClientPrivate::HasPointerWatcher() { | 73 bool WindowTreeClientPrivate::HasPointerWatcher() { |
| 74 return tree_client_impl_->has_pointer_watcher_; | 74 return tree_client_impl_->has_pointer_watcher_; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace aura | 77 } // namespace aura |
| OLD | NEW |