Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: ui/views/test/scoped_views_test_helper.cc

Issue 2604303002: (Mac)Views: Widgets focus first View in traversal order if initial focus fails. (Closed)
Patch Set: Fix compile error. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698