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

Side by Side Diff: services/ui/public/cpp/lib/window_tree_client.cc

Issue 2118383002: mus: Disregard windows that explicitly set can_accept_events to be false when sending events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comments Created 4 years, 5 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
« no previous file with comments | « services/ui/public/cpp/lib/window.cc ('k') | services/ui/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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::SetCanAcceptEvents(Id window_id,
709 bool can_accept_events) {
710 DCHECK(tree_);
711 tree_->SetCanAcceptEvents(window_id, can_accept_events);
712 }
713
708 void WindowTreeClient::OnEmbed(ClientSpecificId client_id, 714 void WindowTreeClient::OnEmbed(ClientSpecificId client_id,
709 mojom::WindowDataPtr root_data, 715 mojom::WindowDataPtr root_data,
710 mojom::WindowTreePtr tree, 716 mojom::WindowTreePtr tree,
711 int64_t display_id, 717 int64_t display_id,
712 Id focused_window_id, 718 Id focused_window_id,
713 bool drawn) { 719 bool drawn) {
714 DCHECK(!tree_ptr_); 720 DCHECK(!tree_ptr_);
715 tree_ptr_ = std::move(tree); 721 tree_ptr_ = std::move(tree);
716 tree_ptr_.set_connection_error_handler( 722 tree_ptr_.set_connection_error_handler(
717 base::Bind(&DeleteWindowTreeClient, this)); 723 base::Bind(&DeleteWindowTreeClient, this));
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 Window* window, 1252 Window* window,
1247 const gfx::Vector2d& offset, 1253 const gfx::Vector2d& offset,
1248 const gfx::Insets& hit_area) { 1254 const gfx::Insets& hit_area) {
1249 if (window_manager_internal_client_) { 1255 if (window_manager_internal_client_) {
1250 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea( 1256 window_manager_internal_client_->SetUnderlaySurfaceOffsetAndExtendedHitArea(
1251 server_id(window), offset.x(), offset.y(), hit_area); 1257 server_id(window), offset.x(), offset.y(), hit_area);
1252 } 1258 }
1253 } 1259 }
1254 1260
1255 } // namespace ui 1261 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/lib/window.cc ('k') | services/ui/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698