OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "content/public/test/test_browser_thread_bundle.h" | 13 #include "content/public/test/test_browser_thread_bundle.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
16 #include "ui/aura/client/window_types.h" | |
17 #include "ui/views/test/test_views_delegate.h" | 16 #include "ui/views/test/test_views_delegate.h" |
| 17 #include "ui/wm/public/window_types.h" |
18 | 18 |
19 #if defined(OS_WIN) | 19 #if defined(OS_WIN) |
20 #include "ui/base/win/scoped_ole_initializer.h" | 20 #include "ui/base/win/scoped_ole_initializer.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace aura { | 23 namespace aura { |
24 class RootWindow; | 24 class RootWindow; |
25 class Window; | 25 class Window; |
26 class WindowDelegate; | 26 class WindowDelegate; |
27 | 27 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); | 76 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); |
77 aura::Window* CreateTestWindowInShell(SkColor color, | 77 aura::Window* CreateTestWindowInShell(SkColor color, |
78 int id, | 78 int id, |
79 const gfx::Rect& bounds); | 79 const gfx::Rect& bounds); |
80 aura::Window* CreateTestWindowInShellWithDelegate( | 80 aura::Window* CreateTestWindowInShellWithDelegate( |
81 aura::WindowDelegate* delegate, | 81 aura::WindowDelegate* delegate, |
82 int id, | 82 int id, |
83 const gfx::Rect& bounds); | 83 const gfx::Rect& bounds); |
84 aura::Window* CreateTestWindowInShellWithDelegateAndType( | 84 aura::Window* CreateTestWindowInShellWithDelegateAndType( |
85 aura::WindowDelegate* delegate, | 85 aura::WindowDelegate* delegate, |
86 aura::client::WindowType type, | 86 ui::wm::WindowType type, |
87 int id, | 87 int id, |
88 const gfx::Rect& bounds); | 88 const gfx::Rect& bounds); |
89 | 89 |
90 // Attach |window| to the current shell's root window. | 90 // Attach |window| to the current shell's root window. |
91 void ParentWindowInPrimaryRootWindow(aura::Window* window); | 91 void ParentWindowInPrimaryRootWindow(aura::Window* window); |
92 | 92 |
93 // Returns the EventGenerator that uses screen coordinates and works | 93 // Returns the EventGenerator that uses screen coordinates and works |
94 // across multiple displays. It createse a new generator if it | 94 // across multiple displays. It createse a new generator if it |
95 // hasn't been created yet. | 95 // hasn't been created yet. |
96 aura::test::EventGenerator& GetEventGenerator(); | 96 aura::test::EventGenerator& GetEventGenerator(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 virtual ~NoSessionAshTestBase() {} | 159 virtual ~NoSessionAshTestBase() {} |
160 | 160 |
161 private: | 161 private: |
162 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 162 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
163 }; | 163 }; |
164 | 164 |
165 } // namespace test | 165 } // namespace test |
166 } // namespace ash | 166 } // namespace ash |
167 | 167 |
168 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 168 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |