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_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // version using the current panel expanstion state. | 130 // version using the current panel expanstion state. |
131 - (void)updateWindowLevel; | 131 - (void)updateWindowLevel; |
132 - (void)updateWindowLevel:(BOOL)panelIsMinimized; | 132 - (void)updateWindowLevel:(BOOL)panelIsMinimized; |
133 | 133 |
134 // Adjusts NSWindowCollectionBehavior based on whether panel is always on top. | 134 // Adjusts NSWindowCollectionBehavior based on whether panel is always on top. |
135 - (void)updateWindowCollectionBehavior; | 135 - (void)updateWindowCollectionBehavior; |
136 | 136 |
137 // Turns on user-resizable corners/sides indications and enables live resize. | 137 // Turns on user-resizable corners/sides indications and enables live resize. |
138 - (void)enableResizeByMouse:(BOOL)enable; | 138 - (void)enableResizeByMouse:(BOOL)enable; |
139 | 139 |
| 140 // Turns on/off shadow effect around the window shape. |
| 141 - (void)showShadow:(BOOL)show; |
| 142 |
140 - (NSRect)frameRectForContentRect:(NSRect)contentRect; | 143 - (NSRect)frameRectForContentRect:(NSRect)contentRect; |
141 - (NSRect)contentRectForFrameRect:(NSRect)frameRect; | 144 - (NSRect)contentRectForFrameRect:(NSRect)frameRect; |
142 | 145 |
143 @end // @interface PanelWindowController | 146 @end // @interface PanelWindowController |
144 | 147 |
145 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ | 148 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_WINDOW_CONTROLLER_COCOA_H_ |
OLD | NEW |