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

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

Issue 1568263003: Changes top level window creation to include window state in callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn Created 4 years, 11 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_change_tracker.h ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_change_tracker.cc
diff --git a/components/mus/ws/test_change_tracker.cc b/components/mus/ws/test_change_tracker.cc
index 3eb2317e25ec3adef2fbb81155e080d4392666b9..a08f923de65a8620157e8c74403bdf90570f96d5 100644
--- a/components/mus/ws/test_change_tracker.cc
+++ b/components/mus/ws/test_change_tracker.cc
@@ -119,6 +119,11 @@ std::string ChangeToDescription1(const Change& change) {
return base::StringPrintf("ChangeCompleted id=%d sucess=%s",
change.change_id,
change.bool_value ? "true" : "false");
+
+ case CHANGE_TYPE_ON_TOP_LEVEL_CREATED:
+ return base::StringPrintf("TopLevelCreated id=%d window_id=%s",
+ change.change_id,
+ WindowIdToString(change.window_id).c_str());
}
return std::string();
}
@@ -355,6 +360,15 @@ void TestChangeTracker::OnChangeCompleted(uint32_t change_id, bool success) {
AddChange(change);
}
+void TestChangeTracker::OnTopLevelCreated(uint32_t change_id,
+ mojom::WindowDataPtr window_data) {
+ Change change;
+ change.type = CHANGE_TYPE_ON_TOP_LEVEL_CREATED;
+ change.change_id = change_id;
+ change.window_id = window_data->window_id;
+ AddChange(change);
+}
+
void TestChangeTracker::AddChange(const Change& change) {
changes_.push_back(change);
if (delegate_)
« no previous file with comments | « components/mus/ws/test_change_tracker.h ('k') | components/mus/ws/window_tree_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698