| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/scoped_views_test_helper.h" | 5 #include "ui/views/test/scoped_views_test_helper.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "ui/base/clipboard/clipboard.h" | 11 #include "ui/base/clipboard/clipboard.h" |
| 12 #include "ui/base/ime/input_method_initializer.h" | 12 #include "ui/base/ime/input_method_initializer.h" |
| 13 #include "ui/base/test/test_clipboard.h" | 13 #include "ui/base/test/test_clipboard.h" |
| 14 #include "ui/compositor/test/context_factories_for_test.h" | 14 #include "ui/compositor/test/context_factories_for_test.h" |
| 15 #include "ui/views/test/platform_test_helper.h" | 15 #include "ui/views/test/platform_test_helper.h" |
| 16 #include "ui/views/test/test_views_delegate.h" | 16 #include "ui/views/test/test_views_delegate.h" |
| 17 #include "ui/views/test/views_test_helper.h" | 17 #include "ui/views/test/views_test_helper.h" |
| 18 #include "ui/views/widget/widget.h" |
| 18 | 19 |
| 19 #if defined(USE_AURA) | 20 #if defined(USE_AURA) |
| 20 #include "ui/aura/env.h" | 21 #include "ui/aura/env.h" |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 23 namespace views { | 24 namespace views { |
| 24 | 25 |
| 25 ScopedViewsTestHelper::ScopedViewsTestHelper() | 26 ScopedViewsTestHelper::ScopedViewsTestHelper() |
| 26 : ScopedViewsTestHelper(base::WrapUnique(new TestViewsDelegate)) {} | 27 : ScopedViewsTestHelper(base::WrapUnique(new TestViewsDelegate)) {} |
| 27 | 28 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // ui::TerminateContextFactoryForTests(). | 87 // ui::TerminateContextFactoryForTests(). |
| 87 platform_test_helper_.reset(); | 88 platform_test_helper_.reset(); |
| 88 | 89 |
| 89 ui::TerminateContextFactoryForTests(); | 90 ui::TerminateContextFactoryForTests(); |
| 90 } | 91 } |
| 91 | 92 |
| 92 gfx::NativeWindow ScopedViewsTestHelper::GetContext() { | 93 gfx::NativeWindow ScopedViewsTestHelper::GetContext() { |
| 93 return test_helper_->GetContext(); | 94 return test_helper_->GetContext(); |
| 94 } | 95 } |
| 95 | 96 |
| 97 void ScopedViewsTestHelper::SetFullKeyboardAccessState(Widget* widget, |
| 98 bool state) { |
| 99 test_helper_->SetFullKeyboardAccessState(widget, state); |
| 100 } |
| 101 |
| 96 } // namespace views | 102 } // namespace views |
| OLD | NEW |