mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Furhter platform window support.
Reviewed by me.
This commit is contained in:
@@ -626,6 +626,9 @@ CPTexturedBackgroundWindowMask
|
||||
*/
|
||||
- (void)orderFront:(id)aSender
|
||||
{
|
||||
if (![_platformWindow isVisible])
|
||||
[_platformWindow orderFront:self];
|
||||
|
||||
[_platformWindow order:CPWindowAbove window:self relativeTo:nil];
|
||||
}
|
||||
|
||||
|
||||
@@ -118,6 +118,14 @@ var PlatformWindowClass = NULL;
|
||||
[self setContentRect:[self nativeContentRect]];
|
||||
}
|
||||
|
||||
- (BOOL)isVisible
|
||||
{
|
||||
#if PLATFORM(DOM)
|
||||
return _DOMWindow !== NULL;
|
||||
#endif
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#if PLATFORM(BROWSER)
|
||||
|
||||
Reference in New Issue
Block a user