| 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 "components/mus/public/cpp/window_tree_client.h" | 5 #include "components/mus/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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 tree_->SetWindowTextInputState(window_id, std::move(state)); | 347 tree_->SetWindowTextInputState(window_id, std::move(state)); |
| 348 } | 348 } |
| 349 | 349 |
| 350 void WindowTreeClient::SetImeVisibility(Id window_id, | 350 void WindowTreeClient::SetImeVisibility(Id window_id, |
| 351 bool visible, | 351 bool visible, |
| 352 mojo::TextInputStatePtr state) { | 352 mojo::TextInputStatePtr state) { |
| 353 DCHECK(tree_); | 353 DCHECK(tree_); |
| 354 tree_->SetImeVisibility(window_id, visible, std::move(state)); | 354 tree_->SetImeVisibility(window_id, visible, std::move(state)); |
| 355 } | 355 } |
| 356 | 356 |
| 357 void WindowTreeClient::Embed( | 357 void WindowTreeClient::Embed(Id window_id, |
| 358 Id window_id, | 358 mojom::WindowTreeClientPtr client, |
| 359 mojom::WindowTreeClientPtr client, | 359 uint32_t flags, |
| 360 const mojom::WindowTree::EmbedCallback& callback) { | 360 const mojom::WindowTree::EmbedCallback& callback) { |
| 361 DCHECK(tree_); | 361 DCHECK(tree_); |
| 362 tree_->Embed(window_id, std::move(client), callback); | 362 tree_->Embed(window_id, std::move(client), flags, callback); |
| 363 } | 363 } |
| 364 | 364 |
| 365 void WindowTreeClient::RequestClose(Window* window) { | 365 void WindowTreeClient::RequestClose(Window* window) { |
| 366 if (window_manager_internal_client_) | 366 if (window_manager_internal_client_) |
| 367 window_manager_internal_client_->WmRequestClose(server_id(window)); | 367 window_manager_internal_client_->WmRequestClose(server_id(window)); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void WindowTreeClient::AttachSurface( | 370 void WindowTreeClient::AttachSurface( |
| 371 Id window_id, | 371 Id window_id, |
| 372 mojom::SurfaceType type, | 372 mojom::SurfaceType type, |
| (...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 Window* window, | 1172 Window* window, |
| 1173 const gfx::Vector2d& offset, | 1173 const gfx::Vector2d& offset, |
| 1174 const gfx::Insets& hit_area) { | 1174 const gfx::Insets& hit_area) { |
| 1175 if (window_manager_internal_client_) { | 1175 if (window_manager_internal_client_) { |
| 1176 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( | 1176 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( |
| 1177 server_id(window), offset.x(), offset.y(), hit_area); | 1177 server_id(window), offset.x(), offset.y(), hit_area); |
| 1178 } | 1178 } |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 } // namespace mus | 1181 } // namespace mus |
| OLD | NEW |