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

Unified Diff: chrome/browser/ui/browser.cc

Issue 1135693006: Fix X11DesktopHandler::ActivateWindow on Unity for known user gestures Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index c1556d9e1bb6c69324779bc9d7c71a1975e8835d..983e1ac3edac6d53287551c66a2127751f08b033 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1451,6 +1451,12 @@ void Browser::ActivateContents(WebContents* contents) {
window_->Activate();
}
+void Browser::ActivateContentsForUserGesture(WebContents* contents) {
+ tab_strip_model_->ActivateTabAt(
+ tab_strip_model_->GetIndexOfWebContents(contents), false);
+ window_->ActivateForUserGesture();
+}
+
void Browser::DeactivateContents(WebContents* contents) {
window_->Deactivate();
}

Powered by Google App Engine
This is Rietveld 408576698