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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1963 tree_->PerformWindowMove(current_move_loop_change_, window_mus->server_id(), | 1963 tree_->PerformWindowMove(current_move_loop_change_, window_mus->server_id(), |
1964 source, cursor_location); | 1964 source, cursor_location); |
1965 } | 1965 } |
1966 | 1966 |
1967 void WindowTreeClient::OnWindowTreeHostCancelWindowMove( | 1967 void WindowTreeClient::OnWindowTreeHostCancelWindowMove( |
1968 WindowTreeHostMus* window_tree_host) { | 1968 WindowTreeHostMus* window_tree_host) { |
1969 tree_->CancelWindowMove( | 1969 tree_->CancelWindowMove( |
1970 WindowMus::Get(window_tree_host->window())->server_id()); | 1970 WindowMus::Get(window_tree_host->window())->server_id()); |
1971 } | 1971 } |
1972 | 1972 |
| 1973 void WindowTreeClient::OnWindowTreeHostMoveCursorToScreenLocationInPixels( |
| 1974 const gfx::Point& location_in_pixels) { |
| 1975 DCHECK(window_manager_client_); |
| 1976 if (window_manager_client_) { |
| 1977 window_manager_client_->WmMoveCursorToScreenLocationInPixels( |
| 1978 location_in_pixels); |
| 1979 } |
| 1980 } |
| 1981 |
1973 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel( | 1982 std::unique_ptr<WindowPortMus> WindowTreeClient::CreateWindowPortForTopLevel( |
1974 const std::map<std::string, std::vector<uint8_t>>* properties) { | 1983 const std::map<std::string, std::vector<uint8_t>>* properties) { |
1975 std::unique_ptr<WindowPortMus> window_port = | 1984 std::unique_ptr<WindowPortMus> window_port = |
1976 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL); | 1985 base::MakeUnique<WindowPortMus>(this, WindowMusType::TOP_LEVEL); |
1977 roots_.insert(window_port.get()); | 1986 roots_.insert(window_port.get()); |
1978 | 1987 |
1979 window_port->set_server_id(MakeTransportId(client_id_, next_window_id_++)); | 1988 window_port->set_server_id(MakeTransportId(client_id_, next_window_id_++)); |
1980 RegisterWindowMus(window_port.get()); | 1989 RegisterWindowMus(window_port.get()); |
1981 | 1990 |
1982 std::unordered_map<std::string, std::vector<uint8_t>> transport_properties; | 1991 std::unordered_map<std::string, std::vector<uint8_t>> transport_properties; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2110 } | 2119 } |
2111 | 2120 |
2112 void WindowTreeClient::OnCompositingLockStateChanged( | 2121 void WindowTreeClient::OnCompositingLockStateChanged( |
2113 ui::Compositor* compositor) {} | 2122 ui::Compositor* compositor) {} |
2114 | 2123 |
2115 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { | 2124 void WindowTreeClient::OnCompositingShuttingDown(ui::Compositor* compositor) { |
2116 compositor->RemoveObserver(this); | 2125 compositor->RemoveObserver(this); |
2117 } | 2126 } |
2118 | 2127 |
2119 } // namespace aura | 2128 } // namespace aura |
OLD | NEW |