| 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 #include "ui/views/test/views_test_base.h" | 5 #include "ui/views/test/views_test_base.h" |
| 6 | 6 |
| 7 #if defined(USE_ASH) | |
| 8 #include "ui/aura/test/test_screen.h" | |
| 9 #endif | |
| 10 | |
| 11 #if defined(USE_AURA) | 7 #if defined(USE_AURA) |
| 12 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 13 #include "ui/aura/client/aura_constants.h" | 9 #include "ui/aura/client/aura_constants.h" |
| 14 #include "ui/aura/env.h" | 10 #include "ui/aura/env.h" |
| 15 #include "ui/aura/monitor_manager.h" | 11 #include "ui/aura/monitor_manager.h" |
| 16 #include "ui/aura/root_window.h" | 12 #include "ui/aura/root_window.h" |
| 17 #include "ui/aura/test/single_monitor_manager.h" | 13 #include "ui/aura/test/single_monitor_manager.h" |
| 18 #include "ui/aura/test/test_activation_client.h" | 14 #include "ui/aura/test/test_activation_client.h" |
| 15 #include "ui/aura/test/test_screen.h" |
| 19 #include "ui/aura/test/test_stacking_client.h" | 16 #include "ui/aura/test/test_stacking_client.h" |
| 20 #include "ui/base/ime/input_method.h" | 17 #include "ui/base/ime/input_method.h" |
| 18 #include "ui/gfx/screen.h" |
| 21 | 19 |
| 22 namespace { | 20 namespace { |
| 23 | 21 |
| 24 class DummyInputMethod : public ui::InputMethod { | 22 class DummyInputMethod : public ui::InputMethod { |
| 25 public: | 23 public: |
| 26 DummyInputMethod() {} | 24 DummyInputMethod() {} |
| 27 virtual ~DummyInputMethod() {} | 25 virtual ~DummyInputMethod() {} |
| 28 | 26 |
| 29 // ui::InputMethod overrides: | 27 // ui::InputMethod overrides: |
| 30 virtual void SetDelegate( | 28 virtual void SetDelegate( |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void ViewsTestBase::RunPendingMessages() { | 114 void ViewsTestBase::RunPendingMessages() { |
| 117 #if defined(USE_AURA) | 115 #if defined(USE_AURA) |
| 118 message_loop_.RunAllPendingWithDispatcher( | 116 message_loop_.RunAllPendingWithDispatcher( |
| 119 aura::Env::GetInstance()->GetDispatcher()); | 117 aura::Env::GetInstance()->GetDispatcher()); |
| 120 #else | 118 #else |
| 121 message_loop_.RunAllPending(); | 119 message_loop_.RunAllPending(); |
| 122 #endif | 120 #endif |
| 123 } | 121 } |
| 124 | 122 |
| 125 } // namespace views | 123 } // namespace views |
| OLD | NEW |