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

Unified Diff: ui/views/cocoa/bridged_native_widget.mm

Issue 322893005: MacViews: Add WidgetEventGenerator to abstract platform-specific event generation for tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cull orthogonal stuff, add WidgetTest.MouseEventTypesViaGenerator Created 6 years, 6 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/cocoa/bridged_native_widget.mm
diff --git a/ui/views/cocoa/bridged_native_widget.mm b/ui/views/cocoa/bridged_native_widget.mm
index e4b754f78d84d043322be8c39a83f084eb0d2a4c..f4efcb249d13e83a09ff5afd023d874b44851829 100644
--- a/ui/views/cocoa/bridged_native_widget.mm
+++ b/ui/views/cocoa/bridged_native_widget.mm
@@ -45,6 +45,7 @@ void BridgedNativeWidget::SetRootView(views::View* view) {
CHECK(bridged_view_);
}
[window_ setContentView:bridged_view_];
+ [window_ makeFirstResponder:bridged_view_];
}
InputMethod* BridgedNativeWidget::CreateInputMethod() {

Powered by Google App Engine
This is Rietveld 408576698