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

Unified Diff: ui/aura/test/mus/test_window_tree.cc

Issue 2456843004: Wires up transient windows for aura-mus (Closed)
Patch Set: relative to master Created 4 years, 2 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 | « ui/aura/test/mus/test_window_tree.h ('k') | ui/wm/public/transient_window_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/mus/test_window_tree.cc
diff --git a/ui/aura/test/mus/test_window_tree.cc b/ui/aura/test/mus/test_window_tree.cc
index 2487007bd4bba9fd1705cdc6f1fc80623ad583aa..17bb37cee4344baa76ecb13af205008765b862c4 100644
--- a/ui/aura/test/mus/test_window_tree.cc
+++ b/ui/aura/test/mus/test_window_tree.cc
@@ -181,13 +181,17 @@ void TestWindowTree::RemoveWindowFromParent(uint32_t change_id,
void TestWindowTree::AddTransientWindow(uint32_t change_id,
uint32_t window_id,
uint32_t transient_window_id) {
- OnChangeReceived(change_id);
+ transient_data_.parent_id = window_id;
+ transient_data_.child_id = transient_window_id;
+ OnChangeReceived(change_id, WindowTreeChangeType::ADD_TRANSIENT);
}
void TestWindowTree::RemoveTransientWindowFromParent(
uint32_t change_id,
uint32_t transient_window_id) {
- OnChangeReceived(change_id);
+ transient_data_.parent_id = kInvalidServerId;
+ transient_data_.child_id = transient_window_id;
+ OnChangeReceived(change_id, WindowTreeChangeType::REMOVE_TRANSIENT);
}
void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {
« no previous file with comments | « ui/aura/test/mus/test_window_tree.h ('k') | ui/wm/public/transient_window_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698