| Index: chrome/browser/cocoa/browser_window_cocoa.h
|
| diff --git a/chrome/browser/cocoa/browser_window_cocoa.h b/chrome/browser/cocoa/browser_window_cocoa.h
|
| index 354b9d53601685a91f381e6f95ef86a2e7d16adb..16b9e6be0d253d62cddc6ef111cb4e8a113aa294 100644
|
| --- a/chrome/browser/cocoa/browser_window_cocoa.h
|
| +++ b/chrome/browser/cocoa/browser_window_cocoa.h
|
| @@ -6,6 +6,7 @@
|
| #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
|
| #pragma once
|
|
|
| +#include "app/menus/simple_menu_model.h"
|
| #include "base/task.h"
|
| #include "chrome/browser/browser_window.h"
|
| #include "chrome/browser/bookmarks/bookmark_model.h"
|
| @@ -23,7 +24,8 @@ class Browser;
|
| // it needs to manipulate the window.
|
|
|
| class BrowserWindowCocoa : public BrowserWindow,
|
| - public NotificationObserver {
|
| + public NotificationObserver,
|
| + public menus::SimpleMenuModel::Delegate {
|
| public:
|
| BrowserWindowCocoa(Browser* browser,
|
| BrowserWindowController* controller,
|
| @@ -112,6 +114,14 @@ class BrowserWindowCocoa : public BrowserWindow,
|
| const NotificationSource& source,
|
| const NotificationDetails& details);
|
|
|
| + // Overriden SimpleMenuModel::Delegate
|
| + virtual bool IsCommandIdChecked(int command_id) const;
|
| + virtual bool IsCommandIdEnabled(int command_id) const;
|
| + virtual bool GetAcceleratorForCommandId(
|
| + int command_id,
|
| + menus::Accelerator* accelerator);
|
| + virtual void ExecuteCommand(int command_id);
|
| +
|
| // Adds the given FindBar cocoa controller to this browser window.
|
| void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller);
|
|
|
|
|