| 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 UI_AURA_TEST_AURA_TEST_BASE_H_ | 5 #ifndef UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ | 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 // Attach |window| to the current shell's root window. | 38 // Attach |window| to the current shell's root window. |
| 39 void SetDefaultParentByPrimaryRootWindow(aura::Window* window); | 39 void SetDefaultParentByPrimaryRootWindow(aura::Window* window); |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 void RunAllPendingInMessageLoop(); | 42 void RunAllPendingInMessageLoop(); |
| 43 | 43 |
| 44 RootWindow* root_window() { return helper_->root_window(); } | 44 RootWindow* root_window() { return helper_->root_window(); } |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 MessageLoopForUI message_loop_; | 47 base::MessageLoopForUI message_loop_; |
| 48 scoped_ptr<AuraTestHelper> helper_; | 48 scoped_ptr<AuraTestHelper> helper_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); | 50 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace test | 53 } // namespace test |
| 54 } // namespace aura | 54 } // namespace aura |
| 55 | 55 |
| 56 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ | 56 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ |
| OLD | NEW |