Chromium Code Reviews| Index: ash/test/ash_test_base.h |
| diff --git a/ash/test/ash_test_base.h b/ash/test/ash_test_base.h |
| index 0865f39efa7d5947f0835bc0e18df5b59395f708..7e562dacf40ef8e06077e8c8caec583647a16aad 100644 |
| --- a/ash/test/ash_test_base.h |
| +++ b/ash/test/ash_test_base.h |
| @@ -11,8 +11,15 @@ |
| #include "base/compiler_specific.h" |
| #include "base/message_loop.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| +#include "third_party/skia/include/core/SkColor.h" |
| +#include "ui/aura/client/window_types.h" |
| #include "ui/views/test/test_views_delegate.h" |
| +namespace aura { |
| +class Window; |
| +class WindowDelegate; |
| +} |
| + |
| namespace ash { |
| namespace internal { |
| class DisplayManager; |
| @@ -49,6 +56,26 @@ class AshTestBase : public testing::Test { |
| // See ash::test::DisplayManagerTestApi::UpdateDisplay for more details. |
| void UpdateDisplay(const std::string& display_specs); |
| + // Versions of the functions in aura::test:: that go through our shell |
| + // StackingController instead of taking a parent. |
| + aura::Window* CreateTestWindowInShellWithId(int id); |
| + aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); |
| + aura::Window* CreateTestWindowInShell(SkColor color, |
| + int id, |
| + const gfx::Rect& bounds); |
| + aura::Window* CreateTestWindowInShellWithDelegate( |
| + aura::WindowDelegate* delegate, |
| + int id, |
| + const gfx::Rect& bounds); |
| + aura::Window* CreateTestWindowInShellWithDelegateAndType( |
| + aura::WindowDelegate* delegate, |
| + aura::client::WindowType type, |
| + int id, |
| + const gfx::Rect& bounds); |
| + |
| + // Attach this to the current shell's root window. |
|
sky
2012/11/27 01:45:52
nit: this -> '|window|'
|
| + void SetDefaultParentByPrimaryRootWindow(aura::Window* window); |
| + |
| protected: |
| void RunAllPendingInMessageLoop(); |