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

Unified Diff: content/browser/web_contents/web_contents_view_mac.mm

Issue 2729613006: When navigation focuses a web contents, also activate its window. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « chrome/test/data/notifications/notification_tester.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_mac.mm
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm
index b2366393bad700944ddbf977d318b1b59455f8e7..90bb79c8ce423723ae95593bfeb4be49c9030575 100644
--- a/content/browser/web_contents/web_contents_view_mac.mm
+++ b/content/browser/web_contents/web_contents_view_mac.mm
@@ -227,6 +227,7 @@ void WebContentsViewMac::Focus() {
if (![window isVisible])
return;
[window makeKeyAndOrderFront:nil];
+ [NSApp activateIgnoringOtherApps:YES];
Avi (use Gerrit) 2017/03/02 23:26:18 I could swear I've seen this change before. Who e
Sidney San Martín 2017/03/08 05:02:29 One of these? https://codereview.chromium.org/2412
Sidney San Martín 2017/03/08 05:02:29 I'd missed some callers… so, thanks! I found a mor
}
void WebContentsViewMac::SetInitialFocus() {
« no previous file with comments | « chrome/test/data/notifications/notification_tester.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698