| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); | 75 aura::Window* CreateTestWindowInShellWithBounds(const gfx::Rect& bounds); |
| 76 aura::Window* CreateTestWindowInShell(SkColor color, | 76 aura::Window* CreateTestWindowInShell(SkColor color, |
| 77 int id, | 77 int id, |
| 78 const gfx::Rect& bounds); | 78 const gfx::Rect& bounds); |
| 79 aura::Window* CreateTestWindowInShellWithDelegate( | 79 aura::Window* CreateTestWindowInShellWithDelegate( |
| 80 aura::WindowDelegate* delegate, | 80 aura::WindowDelegate* delegate, |
| 81 int id, | 81 int id, |
| 82 const gfx::Rect& bounds); | 82 const gfx::Rect& bounds); |
| 83 aura::Window* CreateTestWindowInShellWithDelegateAndType( | 83 aura::Window* CreateTestWindowInShellWithDelegateAndType( |
| 84 aura::WindowDelegate* delegate, | 84 aura::WindowDelegate* delegate, |
| 85 aura::client::WindowType type, | 85 ui::wm::WindowType type, |
| 86 int id, | 86 int id, |
| 87 const gfx::Rect& bounds); | 87 const gfx::Rect& bounds); |
| 88 | 88 |
| 89 // Attach |window| to the current shell's root window. | 89 // Attach |window| to the current shell's root window. |
| 90 void ParentWindowInPrimaryRootWindow(aura::Window* window); | 90 void ParentWindowInPrimaryRootWindow(aura::Window* window); |
| 91 | 91 |
| 92 // Returns the EventGenerator that uses screen coordinates and works | 92 // Returns the EventGenerator that uses screen coordinates and works |
| 93 // across multiple displays. It createse a new generator if it | 93 // across multiple displays. It createse a new generator if it |
| 94 // hasn't been created yet. | 94 // hasn't been created yet. |
| 95 aura::test::EventGenerator& GetEventGenerator(); | 95 aura::test::EventGenerator& GetEventGenerator(); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 virtual ~NoSessionAshTestBase() {} | 157 virtual ~NoSessionAshTestBase() {} |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 160 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace test | 163 } // namespace test |
| 164 } // namespace ash | 164 } // namespace ash |
| 165 | 165 |
| 166 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 166 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
| OLD | NEW |