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

Unified Diff: components/mus/ws/test_utils.cc

Issue 1864113002: Fixes problems with drawn state (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: parentdrawn and merge 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/ws/test_utils.h ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_utils.cc
diff --git a/components/mus/ws/test_utils.cc b/components/mus/ws/test_utils.cc
index 673af9f52b03590d2f690b2c105d492b36f3b008..b94d51026a35876b9f86d08d6047124641077795 100644
--- a/components/mus/ws/test_utils.cc
+++ b/components/mus/ws/test_utils.cc
@@ -161,9 +161,10 @@ void TestWindowTreeClient::Bind(
void TestWindowTreeClient::OnEmbed(uint16_t connection_id,
mojom::WindowDataPtr root,
mus::mojom::WindowTreePtr tree,
- Id focused_window_id) {
+ Id focused_window_id,
+ bool drawn) {
// TODO(sky): add test coverage of |focused_window_id|.
- tracker_.OnEmbed(connection_id, std::move(root));
+ tracker_.OnEmbed(connection_id, std::move(root), drawn);
}
void TestWindowTreeClient::OnEmbeddedAppDisconnected(uint32_t window) {
@@ -177,8 +178,9 @@ void TestWindowTreeClient::OnUnembed(Id window_id) {
void TestWindowTreeClient::OnLostCapture(Id window_id) {}
void TestWindowTreeClient::OnTopLevelCreated(uint32_t change_id,
- mojom::WindowDataPtr data) {
- tracker_.OnTopLevelCreated(change_id, std::move(data));
+ mojom::WindowDataPtr data,
+ bool drawn) {
+ tracker_.OnTopLevelCreated(change_id, std::move(data), drawn);
}
void TestWindowTreeClient::OnWindowBoundsChanged(uint32_t window,
@@ -233,9 +235,9 @@ void TestWindowTreeClient::OnWindowVisibilityChanged(uint32_t window,
tracker_.OnWindowVisibilityChanged(window, visible);
}
-void TestWindowTreeClient::OnWindowDrawnStateChanged(uint32_t window,
- bool drawn) {
- tracker_.OnWindowDrawnStateChanged(window, drawn);
+void TestWindowTreeClient::OnWindowParentDrawnStateChanged(uint32_t window,
+ bool drawn) {
+ tracker_.OnWindowParentDrawnStateChanged(window, drawn);
}
void TestWindowTreeClient::OnWindowSharedPropertyChanged(
« no previous file with comments | « components/mus/ws/test_utils.h ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698