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(); |