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

Unified Diff: chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm

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_strip.h ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
diff --git a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
index 4a3c6f198e91ebd4a630427d464a600497a837f1..ea299520604ac8e5695c99c297cdeb5ea3e1fa00 100644
--- a/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
+++ b/chrome/browser/ui/panels/panel_titlebar_view_cocoa.mm
@@ -129,11 +129,11 @@ static NSEvent* MakeMouseEvent(NSEventType type,
}
- (void)onMinimizeButtonClick:(id)sender {
- [controller_ minimizePanel:[[NSApp currentEvent] modifierFlags]];
+ [controller_ minimizeButtonClicked:[[NSApp currentEvent] modifierFlags]];
}
- (void)onRestoreButtonClick:(id)sender {
- [controller_ restorePanel:[[NSApp currentEvent] modifierFlags]];
+ [controller_ restoreButtonClicked:[[NSApp currentEvent] modifierFlags]];
}
- (void)drawRect:(NSRect)rect {
« no previous file with comments | « chrome/browser/ui/panels/panel_strip.h ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698