Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: components/mus/public/cpp/lib/window_tree_client.cc

Issue 2068093002: mus: Allow embedder to intercept events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 tree_->SetWindowTextInputState(window_id, std::move(state)); 336 tree_->SetWindowTextInputState(window_id, std::move(state));
337 } 337 }
338 338
339 void WindowTreeClient::SetImeVisibility(Id window_id, 339 void WindowTreeClient::SetImeVisibility(Id window_id,
340 bool visible, 340 bool visible,
341 mojo::TextInputStatePtr state) { 341 mojo::TextInputStatePtr state) {
342 DCHECK(tree_); 342 DCHECK(tree_);
343 tree_->SetImeVisibility(window_id, visible, std::move(state)); 343 tree_->SetImeVisibility(window_id, visible, std::move(state));
344 } 344 }
345 345
346 void WindowTreeClient::Embed( 346 void WindowTreeClient::Embed(Id window_id,
347 Id window_id, 347 mojom::WindowTreeClientPtr client,
348 mojom::WindowTreeClientPtr client, 348 uint32_t flags,
349 const mojom::WindowTree::EmbedCallback& callback) { 349 const mojom::WindowTree::EmbedCallback& callback) {
350 DCHECK(tree_); 350 DCHECK(tree_);
351 tree_->Embed(window_id, std::move(client), callback); 351 tree_->Embed(window_id, std::move(client), flags, callback);
352 } 352 }
353 353
354 void WindowTreeClient::RequestClose(Window* window) { 354 void WindowTreeClient::RequestClose(Window* window) {
355 if (window_manager_internal_client_) 355 if (window_manager_internal_client_)
356 window_manager_internal_client_->WmRequestClose(server_id(window)); 356 window_manager_internal_client_->WmRequestClose(server_id(window));
357 } 357 }
358 358
359 void WindowTreeClient::AttachSurface( 359 void WindowTreeClient::AttachSurface(
360 Id window_id, 360 Id window_id,
361 mojom::SurfaceType type, 361 mojom::SurfaceType type,
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 Window* window, 1102 Window* window,
1103 const gfx::Vector2d& offset, 1103 const gfx::Vector2d& offset,
1104 const gfx::Insets& hit_area) { 1104 const gfx::Insets& hit_area) {
1105 if (window_manager_internal_client_) { 1105 if (window_manager_internal_client_) {
1106 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( 1106 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea(
1107 server_id(window), offset.x(), offset.y(), hit_area); 1107 server_id(window), offset.x(), offset.y(), hit_area);
1108 } 1108 }
1109 } 1109 }
1110 1110
1111 } // namespace mus 1111 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698