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