File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,6 +51,11 @@ - (void)setMouseDownCanMoveWindow:(BOOL)can_move;
5151 NSWindowCollectionBehaviorFullScreenAuxiliary = 1 << 8
5252};
5353
54+ enum {
55+ NSWindowDocumentVersionsButton = 6 ,
56+ NSWindowFullScreenButton
57+ };
58+
5459@interface NSWindow (LionSDKDeclarations)
5560- (void )toggleFullScreen : (id )sender ;
5661@end
@@ -256,6 +261,7 @@ - (void)showDevTools:(id)sender {
256261 [[window () standardWindowButton: NSWindowZoomButton] setHidden: YES ];
257262 [[window () standardWindowButton: NSWindowMiniaturizeButton] setHidden: YES ];
258263 [[window () standardWindowButton: NSWindowCloseButton] setHidden: YES ];
264+ [[window () standardWindowButton: NSWindowFullScreenButton ] setHidden: YES ];
259265
260266 InstallDraggableRegionViews ();
261267 }
@@ -428,6 +434,9 @@ - (void)showDevTools:(id)sender {
428434}
429435
430436void NativeWindowCocoa::AddToolbar () {
437+ if (!has_frame_)
438+ return ;
439+
431440 // create the toolbar object
432441 scoped_nsobject<NSToolbar > toolbar (
433442 [[NSToolbar alloc ] initWithIdentifier: @" node-webkit toolbar" ]);
You can’t perform that action at this time.
0 commit comments