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

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

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
Index: chrome/browser/ui/panels/panel_window_controller_cocoa.h
diff --git a/chrome/browser/ui/panels/panel_window_controller_cocoa.h b/chrome/browser/ui/panels/panel_window_controller_cocoa.h
index 94df28d5650656d07b6fd555cb0caa9f7531de90..9956999e2fdf153f611a61fb85c7651326a27e20 100644
--- a/chrome/browser/ui/panels/panel_window_controller_cocoa.h
+++ b/chrome/browser/ui/panels/panel_window_controller_cocoa.h
@@ -13,12 +13,14 @@
#import "base/mac/cocoa_protocols.h"
#include "base/memory/scoped_ptr.h"
+#import "chrome/browser/ui/cocoa/browser_command_executor.h"
@class FindBarCocoaController;
class PanelBrowserWindowCocoa;
@class PanelTitlebarViewCocoa;
-@interface PanelWindowControllerCocoa : NSWindowController<NSWindowDelegate> {
+@interface PanelWindowControllerCocoa : NSWindowController<NSWindowDelegate,
+ BrowserCommandExecutor> {
@private
IBOutlet PanelTitlebarViewCocoa* titlebar_view_;
scoped_ptr<PanelBrowserWindowCocoa> windowShim_;
@@ -52,6 +54,11 @@ class PanelBrowserWindowCocoa;
// Accessor for titlebar view.
- (PanelTitlebarViewCocoa*)titlebarView;
+// Executes the command in the context of the current browser.
+// |command| is an integer value containing one of the constants defined in the
+// "chrome/app/chrome_command_ids.h" file.
+- (void)executeCommand:(int)command;
+
@end // @interface PanelWindowController
#endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_

Powered by Google App Engine
This is Rietveld 408576698