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

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

Issue 10870094: Constrained window sheet controller (test patch) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename Created 8 years, 3 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) 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 ConstrainedWindowMac;
26 class TabContents; 25 class TabContents;
27 class TabStripModelObserverBridge; 26 class TabStripModelObserverBridge;
28 class TabStripModel; 27 class TabStripModel;
29 28
30 // The interface for the tab strip controller's delegate. 29 // The interface for the tab strip controller's delegate.
31 // Delegating TabStripModelObserverBridge's events (in lieu of directly 30 // Delegating TabStripModelObserverBridge's events (in lieu of directly
32 // subscribing to TabStripModelObserverBridge events, as TabStripController 31 // subscribing to TabStripModelObserverBridge events, as TabStripController
33 // does) is necessary to guarantee a proper order of subviews layout updates, 32 // does) is necessary to guarantee a proper order of subviews layout updates,
34 // otherwise it might trigger unnesessary content relayout, UI flickering etc. 33 // otherwise it might trigger unnesessary content relayout, UI flickering etc.
35 @protocol TabStripControllerDelegate 34 @protocol TabStripControllerDelegate
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // not be called if any sheets are currently open. 245 // not be called if any sheets are currently open.
247 // TODO(viettrungluu): This is temporary code needed to allow sheets to work 246 // TODO(viettrungluu): This is temporary code needed to allow sheets to work
248 // (read: not crash) in fullscreen mode. Once GTMWindowSheetController is 247 // (read: not crash) in fullscreen mode. Once GTMWindowSheetController is
249 // modified to support moving sheets between windows, this code can go away. 248 // modified to support moving sheets between windows, this code can go away.
250 // http://crbug.com/19093. 249 // http://crbug.com/19093.
251 - (void)destroySheetController; 250 - (void)destroySheetController;
252 251
253 // Returns the currently active TabContentsController. 252 // Returns the currently active TabContentsController.
254 - (TabContentsController*)activeTabContentsController; 253 - (TabContentsController*)activeTabContentsController;
255 254
256 // See comments in browser_window_controller.h for documentation about these
257 // functions.
258 - (void)attachConstrainedWindow:(ConstrainedWindowMac*)window;
259 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window;
260
261 @end 255 @end
262 256
263 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ 257 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.mm ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698