2009-10-05 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Oct 2009 03:58:43 +0000 (03:58 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Oct 2009 03:58:43 +0000 (03:58 +0000)
        More build fixes for Tiger.

        * WebView/WebVideoFullscreenController.mm:
        * WebView/WebVideoFullscreenHUDWindowController.mm:
        (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]):
        (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]):
        (-[WebVideoFullscreenHUDWindowController fadeWindowIn]):
        (-[WebVideoFullscreenHUDWindowController fadeWindowOut]):
        (-[WebVideoFullscreenHUDWindowController closeWindow]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@49143 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/mac/ChangeLog
WebKit/mac/WebView/WebVideoFullscreenController.mm
WebKit/mac/WebView/WebVideoFullscreenHUDWindowController.mm

index 9b154cbcdf0bec1d67d023efa8b30edcfc0833ab..867ca0a129f66f1f5f4e0604bef6927ca4c53ade 100644 (file)
@@ -1,3 +1,15 @@
+2009-10-05  Simon Fraser  <simon.fraser@apple.com>
+
+        More build fixes for Tiger.
+
+        * WebView/WebVideoFullscreenController.mm:
+        * WebView/WebVideoFullscreenHUDWindowController.mm:
+        (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]):
+        (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]):
+        (-[WebVideoFullscreenHUDWindowController fadeWindowIn]):
+        (-[WebVideoFullscreenHUDWindowController fadeWindowOut]):
+        (-[WebVideoFullscreenHUDWindowController closeWindow]):
+
 2009-10-05  Simon Fraser  <simon.fraser@apple.com>
 
         Build fixes for Tiger.
index ab1f114bf8792091dc29a792a1c550383252146d..f1b3355ad1d98e1be42ed0d52c5139426a160994 100644 (file)
 #import "WebVideoFullscreenController.h"
 #import "WebVideoFullscreenHUDWindowController.h"
 #import "WebKitSystemInterface.h"
+#import "WebTypesInternal.h"
 #import "WebWindowAnimation.h"
 
 SOFT_LINK_FRAMEWORK(QTKit)
-
-
 SOFT_LINK_CLASS(QTKit, QTMovieView)
 
-
 @interface WebVideoFullscreenWindow : NSWindow
 #if !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_TIGER)
 <NSAnimationDelegate>
index d0767a8057bfa3e606f4da48bd9a5307e623209f..2edfccc15d9277631395fef7dc7f588d16df2d61 100644 (file)
 
 #import <QTKit/QTKit.h>
 #import "WebKitSystemInterface.h"
+#import "WebTypesInternal.h"
 #import <wtf/RetainPtr.h>
 
 #define HAVE_MEDIA_CONTROL (!defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD))
 
-#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
-#define WebNSUInteger unsigned int
-#else
-#define WebNSUInteger NSUInteger
-#endif
-
 @interface WebVideoFullscreenHUDWindowController (Private) <NSWindowDelegate>
 
 - (void)updateTime;
@@ -75,7 +70,7 @@
 
 @implementation WebVideoFullscreenHUDWindow
 
-- (id)initWithContentRect:(NSRect)contentRect styleMask:(WebNSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
+- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
 {
     UNUSED_PARAM(aStyle);
     self = [super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:bufferingType defer:flag];
@@ -189,7 +184,11 @@ static const NSTimeInterval HUDWindowFadeOutDelay = 3;
 
     // Note that this creates a retain cycle between the window and us.
     _timelineUpdateTimer = [[NSTimer timerWithTimeInterval:0.25 target:self selector:@selector(updateTime) userInfo:nil repeats:YES] retain];
+#if defined(BUILDING_ON_TIGER)
+    [[NSRunLoop currentRunLoop] addTimer:_timelineUpdateTimer forMode:(NSString*)kCFRunLoopCommonModes];
+#else
     [[NSRunLoop currentRunLoop] addTimer:_timelineUpdateTimer forMode:NSRunLoopCommonModes];
+#endif
 }
 
 - (void)unscheduleTimeUpdate
@@ -208,7 +207,11 @@ static const NSTimeInterval HUDWindowFadeOutDelay = 3;
         [window setAlphaValue:0];
 
     [window makeKeyAndOrderFront:self];
+#if defined(BUILDING_ON_TIGER)
+    [window setAlphaValue:1];
+#else
     [[window animator] setAlphaValue:1];
+#endif
     [self scheduleTimeUpdate];
 
     [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(fadeWindowOut) object:nil];
@@ -219,7 +222,11 @@ static const NSTimeInterval HUDWindowFadeOutDelay = 3;
 - (void)fadeWindowOut
 {
     [NSCursor setHiddenUntilMouseMoves:YES];
+#if defined(BUILDING_ON_TIGER)
+    [[self window] setAlphaValue:0];
+#else
     [[[self window] animator] setAlphaValue:0];
+#endif
     [self performSelector:@selector(unscheduleTimeUpdate) withObject:nil afterDelay:1];
 }
 
@@ -230,8 +237,8 @@ static const NSTimeInterval HUDWindowFadeOutDelay = 3;
     NSWindow *window = [self window];
 #if !defined(BUILDING_ON_TIGER)
     [[window contentView] removeTrackingArea:_area];
-#endif
     [self setArea:nil];
+#endif
     [window close];
     [window setDelegate:nil];
     [self setWindow:nil];