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_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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 137 |
138 // Helper for NSWindow, returns NO for minimized panels in some cases, so they | 138 // Helper for NSWindow, returns NO for minimized panels in some cases, so they |
139 // are not un-minimized when another panel is minimized. | 139 // are not un-minimized when another panel is minimized. |
140 - (BOOL)canBecomeKeyWindow; | 140 - (BOOL)canBecomeKeyWindow; |
141 | 141 |
142 // Returns width of titlebar when shown in "icon only" mode. | 142 // Returns width of titlebar when shown in "icon only" mode. |
143 - (int)titlebarIconOnlyWidthInScreenCoordinates; | 143 - (int)titlebarIconOnlyWidthInScreenCoordinates; |
144 | 144 |
145 - (void)ensureFullyVisible; | 145 - (void)ensureFullyVisible; |
146 | 146 |
| 147 - (void)setAlwaysOnTop:(bool)onTop; |
| 148 |
147 @end // @interface PanelWindowController | 149 @end // @interface PanelWindowController |
148 | 150 |
149 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 151 #endif // CHROME_BROWSER_UI_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
OLD | NEW |