OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" | 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" |
13 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 13 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
14 #include "chrome/browser/ui/tabs/hover_tab_selector.h" | 14 #include "chrome/browser/ui/tabs/hover_tab_selector.h" |
15 #import "third_party/GTM/AppKit/GTMWindowSheetController.h" | 15 #import "third_party/GTM/AppKit/GTMWindowSheetController.h" |
16 | 16 |
17 @class CrTrackingArea; | 17 @class CrTrackingArea; |
18 @class NewTabButton; | 18 @class NewTabButton; |
19 @class TabContentsController; | 19 @class TabContentsController; |
20 @class TabView; | 20 @class TabView; |
21 @class TabStripDragController; | 21 @class TabStripDragController; |
22 @class TabStripView; | 22 @class TabStripView; |
23 | 23 |
24 class Browser; | 24 class Browser; |
25 class TabContents; | |
26 class TabStripModelObserverBridge; | 25 class TabStripModelObserverBridge; |
27 class TabStripModel; | 26 class TabStripModel; |
28 | 27 |
| 28 namespace content { |
| 29 class WebContents; |
| 30 } |
| 31 |
29 // The interface for the tab strip controller's delegate. | 32 // The interface for the tab strip controller's delegate. |
30 // Delegating TabStripModelObserverBridge's events (in lieu of directly | 33 // Delegating TabStripModelObserverBridge's events (in lieu of directly |
31 // subscribing to TabStripModelObserverBridge events, as TabStripController | 34 // subscribing to TabStripModelObserverBridge events, as TabStripController |
32 // does) is necessary to guarantee a proper order of subviews layout updates, | 35 // does) is necessary to guarantee a proper order of subviews layout updates, |
33 // otherwise it might trigger unnesessary content relayout, UI flickering etc. | 36 // otherwise it might trigger unnesessary content relayout, UI flickering etc. |
34 @protocol TabStripControllerDelegate | 37 @protocol TabStripControllerDelegate |
35 | 38 |
36 // Stripped down version of TabStripModelObserverBridge:selectTabWithContents. | 39 // Stripped down version of TabStripModelObserverBridge:selectTabWithContents. |
37 - (void)onActivateTabWithContents:(content::WebContents*)contents; | 40 - (void)onActivateTabWithContents:(content::WebContents*)contents; |
38 | 41 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 // (read: not crash) in fullscreen mode. Once GTMWindowSheetController is | 253 // (read: not crash) in fullscreen mode. Once GTMWindowSheetController is |
251 // modified to support moving sheets between windows, this code can go away. | 254 // modified to support moving sheets between windows, this code can go away. |
252 // http://crbug.com/19093. | 255 // http://crbug.com/19093. |
253 - (void)destroySheetController; | 256 - (void)destroySheetController; |
254 | 257 |
255 // Returns the currently active TabContentsController. | 258 // Returns the currently active TabContentsController. |
256 - (TabContentsController*)activeTabContentsController; | 259 - (TabContentsController*)activeTabContentsController; |
257 | 260 |
258 @end | 261 @end |
259 | 262 |
260 // Returns the parent view to use when showing a sheet for a given tab contents. | 263 // Returns the parent view to use when showing a sheet for a given web contents. |
261 NSView* GetSheetParentViewForTabContents(TabContents* tab_contents); | 264 NSView* GetSheetParentViewForWebContents(content::WebContents* web_contents); |
262 | 265 |
263 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 266 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |