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

Side by Side Diff: services/ui/public/cpp/tests/test_window_tree.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/tests/test_window_tree.h ('k') | services/ui/public/cpp/window.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 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 "services/ui/public/cpp/tests/test_window_tree.h" 5 #include "services/ui/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 ui { 9 namespace ui {
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 uint32_t flags, 132 uint32_t flags,
133 const EmbedCallback& callback) {} 133 const EmbedCallback& callback) {}
134 134
135 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) { 135 void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) {
136 got_change_ = true; 136 got_change_ = true;
137 change_id_ = change_id; 137 change_id_ = change_id;
138 } 138 }
139 139
140 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {} 140 void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {}
141 141
142 void TestWindowTree::SetCanAcceptEvents(uint32_t window_id,
143 bool can_accept_events) {}
144
142 void TestWindowTree::SetPredefinedCursor(uint32_t change_id, 145 void TestWindowTree::SetPredefinedCursor(uint32_t change_id,
143 uint32_t window_id, 146 uint32_t window_id,
144 ui::mojom::Cursor cursor_id) {} 147 ui::mojom::Cursor cursor_id) {}
145 148
146 void TestWindowTree::SetWindowTextInputState(uint32_t window_id, 149 void TestWindowTree::SetWindowTextInputState(uint32_t window_id,
147 mojo::TextInputStatePtr state) {} 150 mojo::TextInputStatePtr state) {}
148 151
149 void TestWindowTree::SetImeVisibility(uint32_t window_id, 152 void TestWindowTree::SetImeVisibility(uint32_t window_id,
150 bool visible, 153 bool visible,
151 mojo::TextInputStatePtr state) {} 154 mojo::TextInputStatePtr state) {}
(...skipping 13 matching lines...) Expand all
165 } 168 }
166 169
167 void TestWindowTree::PerformWindowMove(uint32_t change_id, 170 void TestWindowTree::PerformWindowMove(uint32_t change_id,
168 uint32_t window_id, 171 uint32_t window_id,
169 mojom::MoveLoopSource source, 172 mojom::MoveLoopSource source,
170 const gfx::Point& cursor_location) {} 173 const gfx::Point& cursor_location) {}
171 174
172 void TestWindowTree::CancelWindowMove(uint32_t window_id) {} 175 void TestWindowTree::CancelWindowMove(uint32_t window_id) {}
173 176
174 } // namespace ui 177 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/public/cpp/tests/test_window_tree.h ('k') | services/ui/public/cpp/window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698