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 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1877 void WindowTreeClient::UnlockCursor() { | 1877 void WindowTreeClient::UnlockCursor() { |
1878 if (window_manager_client_) | 1878 if (window_manager_client_) |
1879 window_manager_client_->WmUnlockCursor(); | 1879 window_manager_client_->WmUnlockCursor(); |
1880 } | 1880 } |
1881 | 1881 |
1882 void WindowTreeClient::SetCursorVisible(bool visible) { | 1882 void WindowTreeClient::SetCursorVisible(bool visible) { |
1883 if (window_manager_client_) | 1883 if (window_manager_client_) |
1884 window_manager_client_->WmSetCursorVisible(visible); | 1884 window_manager_client_->WmSetCursorVisible(visible); |
1885 } | 1885 } |
1886 | 1886 |
| 1887 void WindowTreeClient::SetCursorSize(ui::CursorSize cursor_size) { |
| 1888 if (window_manager_client_) |
| 1889 window_manager_client_->WmSetCursorSize(cursor_size); |
| 1890 } |
| 1891 |
1887 void WindowTreeClient::SetGlobalOverrideCursor( | 1892 void WindowTreeClient::SetGlobalOverrideCursor( |
1888 base::Optional<ui::CursorData> cursor) { | 1893 base::Optional<ui::CursorData> cursor) { |
1889 if (window_manager_client_) | 1894 if (window_manager_client_) |
1890 window_manager_client_->WmSetGlobalOverrideCursor(std::move(cursor)); | 1895 window_manager_client_->WmSetGlobalOverrideCursor(std::move(cursor)); |
1891 } | 1896 } |
1892 | 1897 |
1893 void WindowTreeClient::RequestClose(Window* window) { | 1898 void WindowTreeClient::RequestClose(Window* window) { |
1894 DCHECK(window); | 1899 DCHECK(window); |
1895 if (window_manager_client_) | 1900 if (window_manager_client_) |
1896 window_manager_client_->WmRequestClose(WindowMus::Get(window)->server_id()); | 1901 window_manager_client_->WmRequestClose(WindowMus::Get(window)->server_id()); |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2155 } | 2160 } |
2156 | 2161 |
2157 void WindowTreeClient::OnCompositingLockStateChanged( | 2162 void WindowTreeClient::OnCompositingLockStateChanged( |
2158 ui::Compositor* compositor) {} | 2163 ui::Compositor* compositor) {} |
2159 | 2164 |
2160 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { | 2165 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { |
2161 compositor->RemoveObserver(this); | 2166 compositor->RemoveObserver(this); |
2162 } | 2167 } |
2163 | 2168 |
2164 } // namespace aura | 2169 } // namespace aura |
OLD | NEW |