| Index: components/mus/ws/window_tree_host_impl.cc
|
| diff --git a/components/mus/ws/window_tree_host_impl.cc b/components/mus/ws/window_tree_host_impl.cc
|
| index ef92138123e19ddf399a9b0ba0d6972a8551e4c7..8aa8f6a2cf3588f151f04448b4e7207fcd933655 100644
|
| --- a/components/mus/ws/window_tree_host_impl.cc
|
| +++ b/components/mus/ws/window_tree_host_impl.cc
|
| @@ -51,6 +51,8 @@ mojom::EventPtr CoalesceEvents(mojom::EventPtr first, mojom::EventPtr second) {
|
| return second;
|
| }
|
|
|
| +uint32_t next_id = 1;
|
| +
|
| } // namespace
|
|
|
| class WindowTreeHostImpl::ProcessedEventTarget {
|
| @@ -98,7 +100,8 @@ WindowTreeHostImpl::WindowTreeHostImpl(
|
| DisplayManager::Create(app_impl, gpu_state, surfaces_state)),
|
| window_manager_(std::move(window_manager)),
|
| tree_awaiting_input_ack_(nullptr),
|
| - last_cursor_(0) {
|
| + last_cursor_(0),
|
| + id_(next_id) {
|
| display_manager_->Init(this);
|
| if (client_) {
|
| client_.set_connection_error_handler(base::Bind(
|
| @@ -155,6 +158,10 @@ const mojom::ViewportMetrics& WindowTreeHostImpl::GetViewportMetrics() const {
|
| return display_manager_->GetViewportMetrics();
|
| }
|
|
|
| +mojom::Rotation WindowTreeHostImpl::GetRotation() const {
|
| + return display_manager_->GetRotation();
|
| +}
|
| +
|
| void WindowTreeHostImpl::SetFocusedWindow(ServerWindow* new_focused_window) {
|
| ServerWindow* old_focused_window = focus_controller_->GetFocusedWindow();
|
| if (old_focused_window == new_focused_window)
|
|
|