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

Unified Diff: ui/views/test/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/views_test_helper.h
diff --git a/ui/views/test/views_test_helper.h b/ui/views/test/views_test_helper.h
index 787648dc04595fcee8c078d6a170148e9c9718db..f24a0c8b24502df4c68b1dab86d6070e36d4ce68 100644
--- a/ui/views/test/views_test_helper.h
+++ b/ui/views/test/views_test_helper.h
@@ -19,6 +19,8 @@ class ContextFactoryPrivate;
namespace views {
+class Widget;
+
// A helper class owned by tests that performs platform specific initialization
// required for running tests.
class ViewsTestHelper {
@@ -42,6 +44,10 @@ class ViewsTestHelper {
// RootWindow. Everywhere else, NULL.
virtual gfx::NativeWindow GetContext();
+ // Call this method to turn on full keyboard access for the given Widget. Note
+ // this is only used on Mac.
+ virtual void SetFullKeyboardAccessState(Widget* widget, bool new_state);
+
private:
DISALLOW_COPY_AND_ASSIGN(ViewsTestHelper);
};

Powered by Google App Engine
This is Rietveld 408576698