| 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 "services/ui/public/cpp/window_tree_client.h" | 5 #include "services/ui/public/cpp/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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 // WindowTreeClient, WindowTreeClient implementation: | 698 // WindowTreeClient, WindowTreeClient implementation: |
| 699 | 699 |
| 700 void WindowTreeClient::AddObserver(WindowTreeClientObserver* observer) { | 700 void WindowTreeClient::AddObserver(WindowTreeClientObserver* observer) { |
| 701 observers_.AddObserver(observer); | 701 observers_.AddObserver(observer); |
| 702 } | 702 } |
| 703 | 703 |
| 704 void WindowTreeClient::RemoveObserver(WindowTreeClientObserver* observer) { | 704 void WindowTreeClient::RemoveObserver(WindowTreeClientObserver* observer) { |
| 705 observers_.RemoveObserver(observer); | 705 observers_.RemoveObserver(observer); |
| 706 } | 706 } |
| 707 | 707 |
| 708 void WindowTreeClient::SetAcceptEvents(Id window_id, bool accept_events) { |
| 709 DCHECK(tree_); |
| 710 tree_->SetAcceptEvents(window_id, accept_events); |
| 711 } |
| 712 |
| 708 void WindowTreeClient::OnEmbed(ClientSpecificId client_id, | 713 void WindowTreeClient::OnEmbed(ClientSpecificId client_id, |
| 709 mojom::WindowDataPtr root_data, | 714 mojom::WindowDataPtr root_data, |
| 710 mojom::WindowTreePtr tree, | 715 mojom::WindowTreePtr tree, |
| 711 int64_t display_id, | 716 int64_t display_id, |
| 712 Id focused_window_id, | 717 Id focused_window_id, |
| 713 bool drawn) { | 718 bool drawn) { |
| 714 DCHECK(!tree_ptr_); | 719 DCHECK(!tree_ptr_); |
| 715 tree_ptr_ = std::move(tree); | 720 tree_ptr_ = std::move(tree); |
| 716 tree_ptr_.set_connection_error_handler( | 721 tree_ptr_.set_connection_error_handler( |
| 717 base::Bind(&DeleteWindowTreeClient, this)); | 722 base::Bind(&DeleteWindowTreeClient, this)); |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 Window* window, | 1247 Window* window, |
| 1243 const gfx::Vector2d& offset, | 1248 const gfx::Vector2d& offset, |
| 1244 const gfx::Insets& hit_area) { | 1249 const gfx::Insets& hit_area) { |
| 1245 if (window_manager_internal_client_) { | 1250 if (window_manager_internal_client_) { |
| 1246 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1251 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
| 1247 server_id(window), offset.x(), offset.y(), hit_area); | 1252 server_id(window), offset.x(), offset.y(), hit_area); |
| 1248 } | 1253 } |
| 1249 } | 1254 } |
| 1250 | 1255 |
| 1251 } // namespace ui | 1256 } // namespace ui |
| OLD | NEW |