| 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 "ui/aura/mus/window_tree_client.h" | 5 #include "ui/aura/mus/window_tree_client.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 has_pointer_watcher_ = true; | 927 has_pointer_watcher_ = true; |
| 928 tree_->StartPointerWatcher(want_moves); | 928 tree_->StartPointerWatcher(want_moves); |
| 929 } | 929 } |
| 930 | 930 |
| 931 void WindowTreeClient::StopPointerWatcher() { | 931 void WindowTreeClient::StopPointerWatcher() { |
| 932 DCHECK(has_pointer_watcher_); | 932 DCHECK(has_pointer_watcher_); |
| 933 tree_->StopPointerWatcher(); | 933 tree_->StopPointerWatcher(); |
| 934 has_pointer_watcher_ = false; | 934 has_pointer_watcher_ = false; |
| 935 } | 935 } |
| 936 | 936 |
| 937 void WindowTreeClient::GetFrameSinkId(Id window_id) { |
| 938 DCHECK(tree_); |
| 939 tree_->GetFrameSinkId(window_id); |
| 940 } |
| 941 |
| 937 void WindowTreeClient::AddObserver(WindowTreeClientObserver* observer) { | 942 void WindowTreeClient::AddObserver(WindowTreeClientObserver* observer) { |
| 938 observers_.AddObserver(observer); | 943 observers_.AddObserver(observer); |
| 939 } | 944 } |
| 940 | 945 |
| 941 void WindowTreeClient::RemoveObserver(WindowTreeClientObserver* observer) { | 946 void WindowTreeClient::RemoveObserver(WindowTreeClientObserver* observer) { |
| 942 observers_.RemoveObserver(observer); | 947 observers_.RemoveObserver(observer); |
| 943 } | 948 } |
| 944 | 949 |
| 945 void WindowTreeClient::AddTestObserver(WindowTreeClientTestObserver* observer) { | 950 void WindowTreeClient::AddTestObserver(WindowTreeClientTestObserver* observer) { |
| 946 test_observers_.AddObserver(observer); | 951 test_observers_.AddObserver(observer); |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2079 } | 2084 } |
| 2080 | 2085 |
| 2081 void WindowTreeClient::OnCompositingLockStateChanged( | 2086 void WindowTreeClient::OnCompositingLockStateChanged( |
| 2082 ui::Compositor* compositor) {} | 2087 ui::Compositor* compositor) {} |
| 2083 | 2088 |
| 2084 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { | 2089 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { |
| 2085 compositor->RemoveObserver(this); | 2090 compositor->RemoveObserver(this); |
| 2086 } | 2091 } |
| 2087 | 2092 |
| 2088 } // namespace aura | 2093 } // namespace aura |
| OLD | NEW |