diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/tab_controller_target.h')
-rw-r--r-- | chrome/browser/ui/cocoa/tab_controller_target.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/tab_controller_target.h b/chrome/browser/ui/cocoa/tab_controller_target.h new file mode 100644 index 0000000..6eec01a --- /dev/null +++ b/chrome/browser/ui/cocoa/tab_controller_target.h @@ -0,0 +1,27 @@ +// Copyright (c) 2009 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. + +#ifndef CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_TARGET_H_ +#define CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_TARGET_H_ +#pragma once + +#include "chrome/browser/tabs/tab_strip_model.h" + +@class TabController; + +// A protocol to be implemented by a TabController's target. +@protocol TabControllerTarget +- (void)selectTab:(id)sender; +- (void)closeTab:(id)sender; + +// Dispatch context menu commands for the given tab controller. +- (void)commandDispatch:(TabStripModel::ContextMenuCommand)command + forController:(TabController*)controller; +// Returns YES if the specificed command should be enabled for the given +// controller. +- (BOOL)isCommandEnabled:(TabStripModel::ContextMenuCommand)command + forController:(TabController*)controller; +@end + +#endif // CHROME_BROWSER_UI_COCOA_TAB_CONTROLLER_TARGET_H_ |