Home | History | Annotate | Download | only in tabs
      1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_
      6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_
      7 #pragma once
      8 
      9 #include "chrome/browser/tabs/tab_strip_model.h"
     10 
     11 @class TabController;
     12 
     13 // A protocol to be implemented by a TabController's target.
     14 @protocol TabControllerTarget
     15 - (void)selectTab:(id)sender;
     16 - (void)closeTab:(id)sender;
     17 
     18 // Dispatch context menu commands for the given tab controller.
     19 - (void)commandDispatch:(TabStripModel::ContextMenuCommand)command
     20           forController:(TabController*)controller;
     21 // Returns YES if the specificed command should be enabled for the given
     22 // controller.
     23 - (BOOL)isCommandEnabled:(TabStripModel::ContextMenuCommand)command
     24            forController:(TabController*)controller;
     25 @end
     26 
     27 #endif  // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_
     28