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

Side by Side Diff: ui/aura/mus/window_tree_client.cc

Issue 2667073002: mash: changes can_accept_events to an enum (Closed)
Patch Set: Created 3 years, 10 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 "ui/aura/mus/window_tree_client.h" 5 #include "ui/aura/mus/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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 void WindowTreeClient::RemoveTestObserver( 841 void WindowTreeClient::RemoveTestObserver(
842 WindowTreeClientTestObserver* observer) { 842 WindowTreeClientTestObserver* observer) {
843 test_observers_.RemoveObserver(observer); 843 test_observers_.RemoveObserver(observer);
844 } 844 }
845 845
846 void WindowTreeClient::SetCanAcceptDrops(Id window_id, bool can_accept_drops) { 846 void WindowTreeClient::SetCanAcceptDrops(Id window_id, bool can_accept_drops) {
847 DCHECK(tree_); 847 DCHECK(tree_);
848 tree_->SetCanAcceptDrops(window_id, can_accept_drops); 848 tree_->SetCanAcceptDrops(window_id, can_accept_drops);
849 } 849 }
850 850
851 void WindowTreeClient::SetCanAcceptEvents(WindowMus* window, 851 void WindowTreeClient::SetEventTargetingPolicy(
852 bool can_accept_events) { 852 WindowMus* window,
853 ui::mojom::EventTargetingPolicy policy) {
853 DCHECK(tree_); 854 DCHECK(tree_);
854 tree_->SetCanAcceptEvents(window->server_id(), can_accept_events); 855 tree_->SetEventTargetingPolicy(window->server_id(), policy);
855 } 856 }
856 857
857 void WindowTreeClient::OnEmbed(ClientSpecificId client_id, 858 void WindowTreeClient::OnEmbed(ClientSpecificId client_id,
858 ui::mojom::WindowDataPtr root_data, 859 ui::mojom::WindowDataPtr root_data,
859 ui::mojom::WindowTreePtr tree, 860 ui::mojom::WindowTreePtr tree,
860 int64_t display_id, 861 int64_t display_id,
861 Id focused_window_id, 862 Id focused_window_id,
862 bool drawn) { 863 bool drawn) {
863 DCHECK(!tree_ptr_); 864 DCHECK(!tree_ptr_);
864 tree_ptr_ = std::move(tree); 865 tree_ptr_ = std::move(tree);
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>( 1821 return ScheduleInFlightChange(base::MakeUnique<InFlightCaptureChange>(
1821 this, capture_synchronizer_.get(), window)); 1822 this, capture_synchronizer_.get(), window));
1822 } 1823 }
1823 1824
1824 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) { 1825 uint32_t WindowTreeClient::CreateChangeIdForFocus(WindowMus* window) {
1825 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>( 1826 return ScheduleInFlightChange(base::MakeUnique<InFlightFocusChange>(
1826 this, focus_synchronizer_.get(), window)); 1827 this, focus_synchronizer_.get(), window));
1827 } 1828 }
1828 1829
1829 } // namespace aura 1830 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698