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

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

Issue 7746004: Fix crash with some keyboard shortcuts in Cocoa Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include Cocoa.h explicitly. Created 9 years, 4 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_window_controller_cocoa.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_window_controller_cocoa.mm
diff --git a/chrome/browser/ui/panels/panel_window_controller_cocoa.mm b/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
index d48f204f791c34606f217a459d1b3d728ee1b427..b6f2aae424c00fb859214049b4032fd1b2ab2857 100644
--- a/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
+++ b/chrome/browser/ui/panels/panel_window_controller_cocoa.mm
@@ -170,6 +170,10 @@ const int kMinimumWindowSize = 1;
[sender tag], disposition);
}
+- (void)executeCommand:(int)command {
+ windowShim_->browser()->ExecuteCommandIfEnabled(command);
+}
+
// Handler for the custom Close button.
- (void)closePanel {
windowShim_->panel()->Close();
« no previous file with comments | « chrome/browser/ui/panels/panel_window_controller_cocoa.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698