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

Side by Side Diff: services/ui/public/cpp/tests/test_window_tree.h

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: Early return 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void GetWindowManagerClient( 98 void GetWindowManagerClient(
99 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) 99 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal)
100 override; 100 override;
101 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) 101 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback)
102 override; 102 override;
103 void PerformWindowMove(uint32_t change_id, 103 void PerformWindowMove(uint32_t change_id,
104 uint32_t window_id, 104 uint32_t window_id,
105 mojom::MoveLoopSource source, 105 mojom::MoveLoopSource source,
106 const gfx::Point& cursor_location) override; 106 const gfx::Point& cursor_location) override;
107 void CancelWindowMove(uint32_t window_id) override; 107 void CancelWindowMove(uint32_t window_id) override;
108 void SetCanAcceptEvents(uint32_t window_id, bool can_accept_events) override;
msw 2016/07/12 22:07:23 nit: order to match WindowTree decl (ditto for def
riajiang 2016/07/13 00:01:45 Done.
108 109
109 bool got_change_; 110 bool got_change_;
110 uint32_t change_id_; 111 uint32_t change_id_;
111 std::set<uint32_t> acked_events_; 112 std::set<uint32_t> acked_events_;
112 uint32_t window_id_; 113 uint32_t window_id_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); 115 DISALLOW_COPY_AND_ASSIGN(TestWindowTree);
115 }; 116 };
116 117
117 } // namespace ui 118 } // namespace ui
118 119
119 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ 120 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698