Index: ui/gfx/mac/nswindow_frame_controls.h |
diff --git a/ui/gfx/mac/nswindow_frame_controls.h b/ui/gfx/mac/nswindow_frame_controls.h |
index 7ec7ab7ee0f6b7aecb549f422c51682a4d218c55..d5aaebb9d219673ae2170510f7380189093e84e3 100644 |
--- a/ui/gfx/mac/nswindow_frame_controls.h |
+++ b/ui/gfx/mac/nswindow_frame_controls.h |
@@ -5,9 +5,9 @@ |
#ifndef UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ |
#define UI_GFX_MAC_NSWINDOW_FRAME_CONTROLS_H_ |
-#include "ui/gfx/gfx_export.h" |
+#import <Cocoa/Cocoa.h> |
tapted
2015/05/06 02:00:18
Can you keep the forward-declare?
jackhou1
2015/05/12 01:42:12
Done.
|
-@class NSWindow; |
+#include "ui/gfx/gfx_export.h" |
namespace gfx { |
@@ -17,6 +17,19 @@ class Size; |
GFX_EXPORT void SetNSWindowCanFullscreen(NSWindow* window, |
bool allow_fullscreen); |
+// Returns whether the window is always-on-top. |
+GFX_EXPORT bool IsNSWindowAlwaysOnTop(NSWindow* window); |
+ |
+// Sets whether the window is always-on-top. If the window is |transient| it |
+// will not appear in Expose and cannot be moved between workspaces. |
+GFX_EXPORT void SetNSWindowAlwaysOnTop(NSWindow* window, |
+ bool always_on_top, |
+ bool transient); |
+ |
+// Sets whether the window appears on all workspaces. |
+GFX_EXPORT void SetNSWindowVisibleOnAllWorkspaces(NSWindow* window, |
+ bool always_visible); |
+ |
// Sets the min/max size of the window as well as showing/hiding resize, |
// maximize, and fullscreen controls. |
// Sizes refer to the content size (inner bounds). |