Index: chrome/browser/ui/cocoa/tabs/tab_controller_target.h |
diff --git a/chrome/browser/ui/cocoa/tabs/tab_controller_target.h b/chrome/browser/ui/cocoa/tabs/tab_controller_target.h |
index 70445524c87cac354b1c015707bd676803bf9c4e..f495e55a1c1f9e5615df9ec4241df575bf5154d0 100644 |
--- a/chrome/browser/ui/cocoa/tabs/tab_controller_target.h |
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller_target.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -7,6 +7,7 @@ |
#pragma once |
#include "chrome/browser/tabs/tab_strip_model.h" |
+#include "chrome/browser/ui/tabs/tab_menu_model.h" |
@class TabController; |
@@ -22,6 +23,11 @@ |
// controller. |
- (BOOL)isCommandEnabled:(TabStripModel::ContextMenuCommand)command |
forController:(TabController*)controller; |
+ |
+// Returns a context menu model for a given controller. Caller owns the result. |
+- (ui::SimpleMenuModel*)contextMenuModelForController:(TabController*)controller |
+ menuDelegate:(ui::SimpleMenuModel::Delegate*)delegate; |
+ |
@end |
#endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_ |