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

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

Issue 1782773002: MacViews: Fix ViewTest.HandleAccelerator by faking window activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delay the activatableness Created 4 years, 9 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 d2796b37a1a07bcef81b1ce1c8901a292c9f2c31..e653d358c26a23ccaa0881c91c5cfbe930cf6fda 100644
--- a/ui/views/test/views_test_helper.h
+++ b/ui/views/test/views_test_helper.h
@@ -39,6 +39,10 @@ class ViewsTestHelper {
// RootWindow. Everywhere else, NULL.
virtual gfx::NativeWindow GetContext();
+ // Causes window activations to be "faked" for desktop widgets. Only
+ // implemented on Mac. See ViewsTestBase::EnableMacFakeWindowActivation().
+ virtual void EnableFakeWindowActivation();
+
private:
DISALLOW_COPY_AND_ASSIGN(ViewsTestHelper);
};

Powered by Google App Engine
This is Rietveld 408576698