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

Side by Side Diff: chrome/browser/ui/panels/panel_window_controller_cocoa.h

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 8 years, 9 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_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
7 7
8 // A class acting as the Objective-C controller for the Panel window 8 // A class acting as the Objective-C controller for the Panel window
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single titlebar and is managed/owned by Panel. 10 // code. Each window has a single titlebar and is managed/owned by Panel.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 scoped_nsobject<NSString> pendingWindowTitle_; 49 scoped_nsobject<NSString> pendingWindowTitle_;
50 scoped_nsobject<TabContentsController> contentsController_; 50 scoped_nsobject<TabContentsController> contentsController_;
51 NSViewAnimation* boundsAnimation_; // Lifetime controlled manually, needs 51 NSViewAnimation* boundsAnimation_; // Lifetime controlled manually, needs
52 // more then just |release| to terminate. 52 // more then just |release| to terminate.
53 BOOL animateOnBoundsChange_; 53 BOOL animateOnBoundsChange_;
54 ScopedCrTrackingArea windowTrackingArea_; 54 ScopedCrTrackingArea windowTrackingArea_;
55 BOOL throbberShouldSpin_; 55 BOOL throbberShouldSpin_;
56 BOOL playingMinimizeAnimation_; 56 BOOL playingMinimizeAnimation_;
57 float animationStopToShowTitlebarOnly_; 57 float animationStopToShowTitlebarOnly_;
58 BOOL canBecomeKeyWindow_; 58 BOOL canBecomeKeyWindow_;
59 BOOL alwaysOnTop_;
59 } 60 }
60 61
61 // Load the browser window nib and do any Cocoa-specific initialization. 62 // Load the browser window nib and do any Cocoa-specific initialization.
62 - (id)initWithBrowserWindow:(PanelBrowserWindowCocoa*)window; 63 - (id)initWithBrowserWindow:(PanelBrowserWindowCocoa*)window;
63 64
64 - (ui::ThemeProvider*)themeProvider; 65 - (ui::ThemeProvider*)themeProvider;
65 - (ThemedWindowStyle)themedWindowStyle; 66 - (ThemedWindowStyle)themedWindowStyle;
66 - (NSPoint)themePatternPhase; 67 - (NSPoint)themePatternPhase;
67 68
68 - (void)tabInserted:(content::WebContents*)contents; 69 - (void)tabInserted:(content::WebContents*)contents;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 142
142 // Helper for NSWindow, returns NO for minimized panels in some cases, so they 143 // Helper for NSWindow, returns NO for minimized panels in some cases, so they
143 // are not un-minimized when another panel is minimized. 144 // are not un-minimized when another panel is minimized.
144 - (BOOL)canBecomeKeyWindow; 145 - (BOOL)canBecomeKeyWindow;
145 146
146 // Returns width of titlebar when shown in "icon only" mode. 147 // Returns width of titlebar when shown in "icon only" mode.
147 - (int)titlebarIconOnlyWidthInScreenCoordinates; 148 - (int)titlebarIconOnlyWidthInScreenCoordinates;
148 149
149 - (void)ensureFullyVisible; 150 - (void)ensureFullyVisible;
150 151
152 - (void)setAlwaysOnTop:(bool)onTop;
153
154 - (void)updateWindowLevel;
155
151 @end // @interface PanelWindowController 156 @end // @interface PanelWindowController
152 157
153 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ 158 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_strip.h ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698