| 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 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 base::MessageLoopForUI* message_loop() { return message_loop_; } | 55 base::MessageLoopForUI* message_loop() { return message_loop_; } |
| 56 TestShellDelegate* test_shell_delegate() { return test_shell_delegate_; } | 56 TestShellDelegate* test_shell_delegate() { return test_shell_delegate_; } |
| 57 void set_test_shell_delegate(TestShellDelegate* test_shell_delegate) { | 57 void set_test_shell_delegate(TestShellDelegate* test_shell_delegate) { |
| 58 test_shell_delegate_ = test_shell_delegate; | 58 test_shell_delegate_ = test_shell_delegate; |
| 59 } | 59 } |
| 60 TestScreenshotDelegate* test_screenshot_delegate() { | 60 TestScreenshotDelegate* test_screenshot_delegate() { |
| 61 return test_screenshot_delegate_; | 61 return test_screenshot_delegate_; |
| 62 } | 62 } |
| 63 | 63 |
| 64 // True if the running environment supports multiple displays, |
| 65 // or false otherwise (e.g. win8 bot). |
| 66 static bool SupportsMultipleDisplays(); |
| 67 |
| 68 // True if the running environment supports host window resize, |
| 69 // or false otherwise (e.g. win8 bot). |
| 70 static bool SupportsHostWindowResize(); |
| 71 |
| 64 private: | 72 private: |
| 65 base::MessageLoopForUI* message_loop_; // Not owned. | 73 base::MessageLoopForUI* message_loop_; // Not owned. |
| 66 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. | 74 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. |
| 67 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; | 75 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; |
| 68 | 76 |
| 69 // Owned by ash::AcceleratorController | 77 // Owned by ash::AcceleratorController |
| 70 TestScreenshotDelegate* test_screenshot_delegate_; | 78 TestScreenshotDelegate* test_screenshot_delegate_; |
| 71 | 79 |
| 72 scoped_ptr<wm::WMState> wm_state_; | 80 scoped_ptr<wm::WMState> wm_state_; |
| 73 | 81 |
| 74 // Check if DBus Thread Manager was initialized here. | 82 // Check if DBus Thread Manager was initialized here. |
| 75 bool dbus_thread_manager_initialized_; | 83 bool dbus_thread_manager_initialized_; |
| 76 | 84 |
| 77 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); | 85 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); |
| 78 }; | 86 }; |
| 79 | 87 |
| 80 } // namespace test | 88 } // namespace test |
| 81 } // namespace ash | 89 } // namespace ash |
| 82 | 90 |
| 83 #endif // ASH_TEST_ASH_TEST_HELPER_H_ | 91 #endif // ASH_TEST_ASH_TEST_HELPER_H_ |
| OLD | NEW |