CTTabControllerTarget.h 917 B

12345678910111213141516171819202122232425
  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-chromium file.
  4. #pragma once
  5. @protocol TabDraggingEventTarget;
  6. // A protocol to be implemented by a CTTabController's target.
  7. @protocol CTTabControllerTarget
  8. - (void)selectTab:(id)sender;
  9. - (void)closeTab:(id)sender;
  10. // Dispatch context menu commands for the given tab controller.
  11. //- (void)commandDispatch:(TabStripModel::ContextMenuCommand)command
  12. // forController:(CTTabController*)controller;
  13. // Returns YES if the specificed command should be enabled for the given
  14. // controller.
  15. //- (BOOL)isCommandEnabled:(TabStripModel::ContextMenuCommand)command
  16. // forController:(CTTabController*)controller;
  17. // Returns a weak reference to the controller that manages dragging of tabs.
  18. - (id<TabDraggingEventTarget>)dragController;
  19. @end