Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_controller_target.h

Issue 6821003: [Mac] First pass at multiple selection in the tabstrip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/tabs/tab_strip_model.h" 9 #include "chrome/browser/tabs/tab_strip_model.h"
10 #include "chrome/browser/ui/tabs/tab_menu_model.h"
10 11
11 @class TabController; 12 @class TabController;
12 13
13 // A protocol to be implemented by a TabController's target. 14 // A protocol to be implemented by a TabController's target.
14 @protocol TabControllerTarget 15 @protocol TabControllerTarget
15 - (void)selectTab:(id)sender; 16 - (void)selectTab:(id)sender;
16 - (void)closeTab:(id)sender; 17 - (void)closeTab:(id)sender;
17 18
18 // Dispatch context menu commands for the given tab controller. 19 // Dispatch context menu commands for the given tab controller.
19 - (void)commandDispatch:(TabStripModel::ContextMenuCommand)command 20 - (void)commandDispatch:(TabStripModel::ContextMenuCommand)command
20 forController:(TabController*)controller; 21 forController:(TabController*)controller;
21 // Returns YES if the specificed command should be enabled for the given 22 // Returns YES if the specificed command should be enabled for the given
22 // controller. 23 // controller.
23 - (BOOL)isCommandEnabled:(TabStripModel::ContextMenuCommand)command 24 - (BOOL)isCommandEnabled:(TabStripModel::ContextMenuCommand)command
24 forController:(TabController*)controller; 25 forController:(TabController*)controller;
26
27 // Returns a context menu model for a given controller. Caller owns the result.
28 - (ui::SimpleMenuModel*)contextMenuModelForController:(TabController*)controller
29 menuDelegate:(ui::SimpleMenuModel::Delegate*)delegate;
30
25 @end 31 @end
26 32
27 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_ 33 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_CONTROLLER_TARGET_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698