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

Unified Diff: ui/views/test/scoped_views_test_helper.h

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 side-by-side diff with in-line comments
Download patch
Index: ui/views/test/scoped_views_test_helper.h
diff --git a/ui/views/test/scoped_views_test_helper.h b/ui/views/test/scoped_views_test_helper.h
index bac1de0635ebf3f355d5401f5fc2a5a35f85b59a..136567bd00095eb5950fdfbf84721aa8258b32c1 100644
--- a/ui/views/test/scoped_views_test_helper.h
+++ b/ui/views/test/scoped_views_test_helper.h
@@ -15,6 +15,7 @@ namespace views {
class PlatformTestHelper;
class TestViewsDelegate;
class ViewsTestHelper;
+class Widget;
// Creates a ViewsTestHelper that is destroyed automatically. Acts like
// ViewsTestBase but allows a test harness to use a different base class, or
@@ -37,6 +38,10 @@ class ScopedViewsTestHelper {
// the RootWindow. Everywhere else, null.
gfx::NativeWindow GetContext();
+ // Call this method to turn on full keyboard access for the given Widget. Note
+ // this is only used on Mac.
+ void SetFullKeyboardAccessState(Widget* widget, bool state);
+
TestViewsDelegate* views_delegate() { return views_delegate_.get(); };
PlatformTestHelper* platform_test_helper() {
« no previous file with comments | « no previous file | ui/views/test/scoped_views_test_helper.cc » ('j') | ui/views/window/dialog_delegate_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698