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

Side by Side Diff: components/mus/public/cpp/tests/test_window_tree.cc

Issue 1909733002: mus: Add EventObserver to allow passively listening to UI events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 #include "components/mus/public/cpp/tests/test_window_tree.h" 5 #include "components/mus/public/cpp/tests/test_window_tree.h"
6 6
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace mus { 9 namespace mus {
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { 114 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) {
115 got_change_ = true; 115 got_change_ = true;
116 change_id_ = change_id; 116 change_id_ = change_id;
117 } 117 }
118 118
119 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) { 119 void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) {
120 got_change_ = true; 120 got_change_ = true;
121 change_id_ = change_id; 121 change_id_ = change_id;
122 } 122 }
123 123
124 void TestWindowTree::SetEventObserver(mojom::EventMatcherPtr matcher,
125 uint32_t observer_id) {}
126
124 void TestWindowTree::Embed(uint32_t window_id, 127 void TestWindowTree::Embed(uint32_t window_id,
125 mojom::WindowTreeClientPtr client, 128 mojom::WindowTreeClientPtr client,
126 const EmbedCallback& callback) {} 129 const EmbedCallback& callback) {}
127 130
128 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { 131 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) {
129 got_change_ = true; 132 got_change_ = true;
130 change_id_ = change_id; 133 change_id_ = change_id;
131 } 134 }
132 135
133 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {} 136 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {}
(...skipping 12 matching lines...) Expand all
146 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, 149 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id,
147 mus::mojom::EventResult result) { 150 mus::mojom::EventResult result) {
148 EXPECT_FALSE(acked_events_.count(event_id)); 151 EXPECT_FALSE(acked_events_.count(event_id));
149 acked_events_.insert(event_id); 152 acked_events_.insert(event_id);
150 } 153 }
151 154
152 void TestWindowTree::GetWindowManagerClient( 155 void TestWindowTree::GetWindowManagerClient(
153 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} 156 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {}
154 157
155 } // namespace mus 158 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698