Furhter platform window support.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-07-26 12:52:24 -07:00
parent ba81b1356d
commit d53207efd5
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -626,6 +626,9 @@ CPTexturedBackgroundWindowMask
*/
- (void)orderFront:(id)aSender
{
if (![_platformWindow isVisible])
[_platformWindow orderFront:self];
[_platformWindow order:CPWindowAbove window:self relativeTo:nil];
}
+8
View File
@@ -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)