- 02 Nov, 2009 2 commits
-
-
mitz@apple.com authored
video. Reviewed by Anders Carlsson. Made other cleanup. * WebView/WebVideoFullscreenHUDWindowController.h: Reverted the types of _timeline and _volumeSlider to the more generic NSControl. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Cleaned up style. (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Added an assertion that the cast to NSButton * is legal. Removed casts. (-[WebVideoFullscreenHUDWindowController updateTime]): Use -setValue:forKey: instead of an NSSlider method. (timeToString): Changed to support only non-negative values and simplified. (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Always prepend a “-” to the time. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
QuickTime Player X’s HUD. Reviewed by John Sullivan. * WebView/WebVideoFullscreenHUDWindowController.h: Removed unnecessary #import statements, cleaned up style, and changed _timeline, _volumeSlider and _playButton to have more specific types. * WebView/WebVideoFullscreenHUDWindowController.mm: Updated #import statements. (webkit_CGFloor): Added this helper function. (-[WebVideoFullscreenHUDWindowController init]): Cleaned up style. (createTimeTextField): Changed to use the bold system font. (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the subviews’ metrics and the text fields’ text alignment. (-[WebVideoFullscreenHUDWindowController updateTime]): Avoid conversion from double to float. (stringToTimeTextAttributed): Removed this useless function that returned an NSAttributedString masquerading as an NSString. (-[WebVideoFullscreenHUDWindowController remainingTimeText]): Removed call to stringToTimeTextAttributed(). (-[WebVideoFullscreenHUDWindowController elapsedTimeText]): Ditto. WebKitLibraries: WebKitSystemInterface part of making the appearance of the full-screen video HUD match QuickTime Player X’s HUD. Reviewed by John Sullivan. * libWebKitSystemInterfaceLeopard.a: * libWebKitSystemInterfaceSnowLeopard.a: * libWebKitSystemInterfaceTiger.a: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Nov, 2009 2 commits
-
-
mitz@apple.com authored
modifier keys are down. Made it do so without highlighting the Play/Pause button. Reviewed by Mark Rowe. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController keyDown:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mitz@apple.com authored
increasing and decreasing the volume by 1/10 of the range or, when combined with the Option key, all the way up or down. Reviewed by Mark Rowe. Made the volume buttons in the full-screen video HUD match the behavior of their equivalents in the QuickTime Player HUD by turning the volume all the way up or down. Made the volume slider update immediately when the keyboard or volume buttons are used to change the volume, rather than at the nearest 1/4 second interval. Made the elapsed and remaining time displays update immediately when the play head is dragged across the timeline, rather than at 1/4 second intervals. * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController keyDown:]): Handle the up and down arrow keys. (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Changed the actions of the volume up and volume down buttons. (-[WebVideoFullscreenHUDWindowController setCurrentTime:]): Call -updateTime. (-[WebVideoFullscreenHUDWindowController setVolumeToZero:]): Added this action for the volume down button. (-[WebVideoFullscreenHUDWindowController setVolumeToMaximum:]): Added this action for the volume up button. (-[WebVideoFullscreenHUDWindowController decrementVolume]): No longer and action method. (-[WebVideoFullscreenHUDWindowController incrementVolume]): Ditto. (-[WebVideoFullscreenHUDWindowController setVolume:]): Call -updateVolume. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 28 Oct, 2009 1 commit
-
-
eric.carlson@apple.com authored
Reviewed by Simon Fraser. <rdar://problem/7303145> Can't exit full screen mode or restart movie after pressing command -R. * html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::removedFromDocument): (WebCore::HTMLMediaElement::documentWillBecomeInactive): Exit from fullscreen if necessary. * html/HTMLMediaElement.h: 2009-10-28 Eric Carlson <eric.carlson@apple.com> Reviewed by Simon Fraser. <rdar://problem/7303145> Can't exit full screen mode or restart movie after pressing command -R. * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenController _requestExit]): New, call media element's exitFullscreen method. (-[WebVideoFullscreenController requestExitFullscreenWithAnimation:]): Call mediaElement->exitFullscreen() after a delay as it turns around and calls WebVideoFullscreenController:exitFullscreen. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindow resignFirstResponder]): New, don't give up responder status. (-[WebVideoFullscreenHUDWindow performKeyEquivalent:]): New, block all command key events. (-[WebVideoFullscreenHUDWindowController exitFullscreen:]): Remember when we are in the process of exiting fullscreen, don't allow recursion. * WebView/WebView.mm: (-[WebView _exitFullscreen]): Early return if fullscreen controller is nil. * WebView/WebWindowAnimation.h: Correct comment about _window retain status. * WebView/WebWindowAnimation.m: (-[WebWindowScaleAnimation dealloc]): Don't release _window, we never reatained it. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@50242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 23 Oct, 2009 1 commit
-
-
eric.carlson@apple.com authored
Reviewed by John Sullivan. <rdar://problem/7322847> Pressing space bar key in full screen mode should pause movie but doesn't * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController keyDown:]): New, toggle playback on space key. (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Play button action is now called togglePlaying. (-[WebVideoFullscreenHUDWindowController togglePlaying:]): Rename from playingChanged. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 22 Oct, 2009 1 commit
-
-
eric.carlson@apple.com authored
Reviewed by Dan Bernstein & Simon Fraser. <rdar://problem/7297717> https://bugs.webkit.org/show_bug.cgi?id=30323 Play/pause button in full-screen video controller does not reflect current state * WebView/WebVideoFullscreenController.mm: (-[WebVideoFullscreenController setMediaElement:WebCore::]): Register for QTMovieRateDidChangeNotification (-[WebVideoFullscreenController rateChanged:]): Call HUD controller when rate changes. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController scheduleTimeUpdate]): Call updateRate so play button reflects playback state. (-[WebVideoFullscreenHUDWindowController updateRate]): New, set play button state according to movie state. (-[WebVideoFullscreenHUDWindowController playingChanged:]): Only call [self playing] once. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 Oct, 2009 2 commits
-
-
eric.carlson@apple.com authored
Reviewed by Adele Peterson. <rdar://problem/7306052> Fullscreen max/min volume buttons non-functional * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController windowDidLoad]): Set volume buttons target and action. (-[WebVideoFullscreenHUDWindowController decrementVolume:]): New, decrement the volume by 10%. (-[WebVideoFullscreenHUDWindowController incrementVolume:]): New, increment the volume by 10%. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
eric.carlson@apple.com authored
Reviewed by Simon Fraser. <rdar://problem/7295738> No way to mute/unmute a movie in full screen video mode * WebCore.Video.exp: Export muted and setMute. 2009-10-15 Eric Carlson <eric.carlson@apple.com> Reviewed by Simon Fraser. <rdar://problem/7295738> No way to mute/unmute a movie in full screen video mode * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindowController setVolume:]): Unmute movie before changing volume. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 05 Oct, 2009 3 commits
-
-
simon.fraser@apple.com authored
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: http://svn.webkit.org/repository/webkit/trunk@49143 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Build fixes for Tiger. * WebView/WebVideoFullscreenHUDWindowController.h: * WebView/WebVideoFullscreenHUDWindowController.mm: (-[WebVideoFullscreenHUDWindow initWithContentRect:styleMask:backing:defer:]): (-[WebVideoFullscreenHUDWindowController dealloc]): (-[WebVideoFullscreenHUDWindowController closeWindow]): (-[WebVideoFullscreenHUDWindowController windowDidLoad]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
simon.fraser@apple.com authored
Reviewed by Simon Fraser Support fullscreen in MediaPlayer (Mac) https://bugs.webkit.org/show_bug.cgi?id=26742 Add a fullscreen button to the <video> controller if the media engine, and the theme have support for fullscreen, and can show appropriate controls. Clicking the button calls through the ChromeClient to the WebVideoFullscreenController in WebKit to do a nice animation to fullscreen, with a custom controller. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49136 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-