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

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

Issue 1149263003: Add user_gesture param to BaseWindow::Activate Base URL: https://chromium.googlesource.com/chromium/src.git@ug2_WebContentsDelegate_ActivateContents
Patch Set: Update callers 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/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 7c98b7d6853a6be89288048db11cf6578a27e107..dcec75fff991f38dd071d04dd971bbb8799eec28 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -291,7 +291,7 @@ void Panel::Close() {
native_panel_->ClosePanel();
}
-void Panel::Activate() {
+void Panel::Activate(bool user_gesture) {
if (!collection_)
return;
@@ -474,7 +474,7 @@ void Panel::OnTitlebarClicked(panel::ClickModifier modifier) {
// These are no-ops if no changes are needed.
if (IsMinimized())
return;
- Activate();
+ Activate(true /* user_gesture */);
FlashFrame(false);
}

Powered by Google App Engine
This is Rietveld 408576698