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

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

Issue 10173035: Add key modifier on minimize/restore button click to minimize/restore all Panels for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed IsActive checks from new test Created 8 years, 8 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/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index 699159e35de6db1b57a4f90520053e5dae0f35f4..bb92907f010432807ea97d30552a1541c79f919a 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -747,6 +747,26 @@ void Panel::OnTitlebarClicked(panel::ClickModifier modifier) {
FlashFrame(false);
}
+void Panel::OnMinimizeButtonClicked(panel::ClickModifier modifier) {
+ if (!panel_strip_)
+ return;
+
+ if (modifier == panel::APPLY_TO_ALL)
+ panel_strip_->MinimizeAll();
+ else
+ Minimize();
+}
+
+void Panel::OnRestoreButtonClicked(panel::ClickModifier modifier) {
+ if (!panel_strip_)
+ return;
+
+ if (modifier == panel::APPLY_TO_ALL)
+ panel_strip_->RestoreAll();
+ else
+ Restore();
+}
+
void Panel::DestroyBrowser() {
native_panel_->DestroyPanelBrowser();
}
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698