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

Unified Diff: ui/aura/test/test_windows.cc

Issue 2542493002: Replace kCanMaximize/Minimize/Resize with kResizeBehavior. (Closed)
Patch Set: Fix int->bool compile issue. Created 4 years 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/client/aura_constants.cc ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_windows.cc
diff --git a/ui/aura/test/test_windows.cc b/ui/aura/test/test_windows.cc
index 83b6acade5d8d6675bc4525382865d46020c7a86..570a7a4dd49832425fbd0fb6cefb97d4b9478a4f 100644
--- a/ui/aura/test/test_windows.cc
+++ b/ui/aura/test/test_windows.cc
@@ -48,7 +48,9 @@ Window* CreateTestWindowWithDelegateAndType(WindowDelegate* delegate,
window->set_id(id);
window->SetType(type);
window->Init(ui::LAYER_TEXTURED);
- window->SetProperty(aura::client::kCanMaximizeKey, true);
+ window->SetProperty(aura::client::kResizeBehaviorKey,
+ ui::mojom::kResizeBehaviorCanResize |
+ ui::mojom::kResizeBehaviorCanMaximize);
window->SetBounds(bounds);
window->Show();
if (parent)
« no previous file with comments | « ui/aura/client/aura_constants.cc ('k') | ui/views/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698