Skip to content

Commit

Permalink
Add convenience methods for full screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Feb 10, 2009
1 parent 3f410ea commit 48fb8f0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions AppKit/CPView.j
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,15 @@ var DOMElementPrototype = nil,
}

// Fullscreen Mode

/*!
Puts the receiver into full screen mode.
*/
- (BOOL)enterFullScreenMode
{
return [self enterFullScreenMode:nil withOptions:nil];
}

/*!
Puts the receiver into full screen mode.
@param aScreen the that should be used
Expand Down Expand Up @@ -905,6 +914,14 @@ var DOMElementPrototype = nil,
return YES;
}

/*!
The receiver should exit full screen mode.
*/
- (void)exitFullScreenMode
{
[self exitFullScreenModeWithOptions:nil];
}

/*!
The receiver should exit full screen mode.
@param options configurations options
Expand Down

0 comments on commit 48fb8f0

Please sign in to comment.