OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_HELPER_H_ | 5 #ifndef ASH_TEST_ASH_TEST_HELPER_H_ |
6 #define ASH_TEST_ASH_TEST_HELPER_H_ | 6 #define ASH_TEST_ASH_TEST_HELPER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class Window; | 12 class Window; |
13 } // namespace aura | 13 } // namespace aura |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class MessageLoopForUI; | 16 class MessageLoopForUI; |
17 } // namespace base | 17 } // namespace base |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
| 20 class ContextFactory; |
20 class ScopedAnimationDurationScaleMode; | 21 class ScopedAnimationDurationScaleMode; |
21 } // namespace ui | 22 } // namespace ui |
22 | 23 |
23 namespace views { | 24 namespace views { |
24 class ViewsDelegate; | 25 class ViewsDelegate; |
25 } | 26 } |
26 | 27 |
27 namespace ash { | 28 namespace ash { |
28 namespace test { | 29 namespace test { |
29 | 30 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 63 } |
63 | 64 |
64 // True if the running environment supports multiple displays, | 65 // True if the running environment supports multiple displays, |
65 // or false otherwise (e.g. win8 bot). | 66 // or false otherwise (e.g. win8 bot). |
66 static bool SupportsMultipleDisplays(); | 67 static bool SupportsMultipleDisplays(); |
67 | 68 |
68 // True if the running environment supports host window resize, | 69 // True if the running environment supports host window resize, |
69 // or false otherwise (e.g. win8 bot). | 70 // or false otherwise (e.g. win8 bot). |
70 static bool SupportsHostWindowResize(); | 71 static bool SupportsHostWindowResize(); |
71 | 72 |
| 73 ui::ContextFactory* context_factory() { return context_factory_; } |
| 74 |
72 private: | 75 private: |
| 76 ui::ContextFactory* context_factory_; |
73 base::MessageLoopForUI* message_loop_; // Not owned. | 77 base::MessageLoopForUI* message_loop_; // Not owned. |
74 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. | 78 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. |
75 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; | 79 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; |
76 | 80 |
77 // Owned by ash::AcceleratorController | 81 // Owned by ash::AcceleratorController |
78 TestScreenshotDelegate* test_screenshot_delegate_; | 82 TestScreenshotDelegate* test_screenshot_delegate_; |
79 | 83 |
80 scoped_ptr<views::ViewsDelegate> views_delegate_; | 84 scoped_ptr<views::ViewsDelegate> views_delegate_; |
81 | 85 |
82 // Check if DBus Thread Manager was initialized here. | 86 // Check if DBus Thread Manager was initialized here. |
83 bool dbus_thread_manager_initialized_; | 87 bool dbus_thread_manager_initialized_; |
84 | 88 |
85 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); | 89 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); |
86 }; | 90 }; |
87 | 91 |
88 } // namespace test | 92 } // namespace test |
89 } // namespace ash | 93 } // namespace ash |
90 | 94 |
91 #endif // ASH_TEST_ASH_TEST_HELPER_H_ | 95 #endif // ASH_TEST_ASH_TEST_HELPER_H_ |
OLD | NEW |