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

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

Issue 8536027: Add test to verify that the stacking controller picks the correct activatable window for menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years, 1 month 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/test_windows.h ('k') | ui/aura_shell/stacking_controller_unittest.cc » ('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 5fe85f4f557789cc3614ee73bde9fc2c6d3298bf..98e5335e158824fac2acd9e09942b880a013d351 100644
--- a/ui/aura/test/test_windows.cc
+++ b/ui/aura/test/test_windows.cc
@@ -31,9 +31,22 @@ Window* CreateTestWindowWithDelegate(WindowDelegate* delegate,
int id,
const gfx::Rect& bounds,
Window* parent) {
+ return CreateTestWindowWithDelegateAndType(
+ delegate,
+ aura::WINDOW_TYPE_NORMAL,
+ id,
+ bounds,
+ parent);
+}
+
+Window* CreateTestWindowWithDelegateAndType(WindowDelegate* delegate,
+ WindowType type,
+ int id,
+ const gfx::Rect& bounds,
+ Window* parent) {
Window* window = new Window(delegate);
window->set_id(id);
- window->SetType(aura::WINDOW_TYPE_NORMAL);
+ window->SetType(type);
window->Init(ui::Layer::LAYER_HAS_TEXTURE);
window->SetBounds(bounds);
window->Show();
« no previous file with comments | « ui/aura/test/test_windows.h ('k') | ui/aura_shell/stacking_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698