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

Unified Diff: ui/views/test/widget_test_aura.cc

Issue 444583002: MacViews: Get widget_interactive_uitest compiling on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TouchSelectionQuickMenuIsNotActivated Created 6 years, 4 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/widget_test_aura.cc
diff --git a/ui/views/test/widget_test_aura.cc b/ui/views/test/widget_test_aura.cc
index 1b2dd139fc10fc2c06caee0c9f3b0847fcfd0462..aceefffd6993be262c54da6823df88ff4947ab3c 100644
--- a/ui/views/test/widget_test_aura.cc
+++ b/ui/views/test/widget_test_aura.cc
@@ -4,6 +4,7 @@
#include "ui/views/test/widget_test.h"
+#include "ui/aura/client/focus_client.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/views/widget/widget.h"
@@ -26,5 +27,11 @@ ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) {
return widget->GetNativeWindow()->GetHost()->event_processor();
}
+// static
+gfx::NativeWindow WidgetTest::CurrentlyFocussedWindow(Widget* widget_context) {
+ return aura::client::GetFocusClient(widget_context->GetNativeWindow())
+ ->GetFocusedWindow();
+}
+
} // namespace test
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698