NEW 102315
Allow WebCoreFullScreenWarningView to animate visibility.
https://bugs.webkit.org/show_bug.cgi?id=102315
Summary Allow WebCoreFullScreenWarningView to animate visibility.
Jer Noble
Reported 2012-11-14 18:33:04 PST
Allow WebCoreFullScreenWarningView to animate visibility.
Attachments
Patch (3.89 KB, patch)
2012-11-14 19:01 PST, Jer Noble
no flags
Patch (3.77 KB, patch)
2013-01-15 10:50 PST, Jer Noble
no flags
Patch (3.65 KB, patch)
2013-01-15 15:51 PST, Jer Noble
darin: review+
Jer Noble
Comment 1 2012-11-14 19:01:12 PST
Benjamin Poulain
Comment 2 2013-01-08 23:57:34 PST
Comment on attachment 174317 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=174317&action=review > Source/WebCore/platform/mac/WebCoreFullScreenWarningView.h:41 > +- (void)show; > +- (void)showWithFade; > +- (void)showThenHideWithFade; > +- (void)hideWithFade; > +- (void)hide; Somethings that annoys me a bit with this is the disconnect between those and the hidden properties of NSView. It would be nice to set the completionHandler of [hideXXX] to hide the view for real, and to unhide it as the first operation of [showXXX]. You are not using all those methods in https://bugs.webkit.org/attachment.cgi?id=174319&action=review Do you need all of them?
Jer Noble
Comment 3 2013-01-14 11:13:25 PST
(In reply to comment #2) > (From update of attachment 174317 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=174317&action=review > > > Source/WebCore/platform/mac/WebCoreFullScreenWarningView.h:41 > > +- (void)show; > > +- (void)showWithFade; > > +- (void)showThenHideWithFade; > > +- (void)hideWithFade; > > +- (void)hide; > > Somethings that annoys me a bit with this is the disconnect between those and the hidden properties of NSView. How about renaming these to "fadeOut" and "fadeIn"? I can then override setHidden: to cancel any existing animations. > It would be nice to set the completionHandler of [hideXXX] to hide the view for real, and to unhide it as the first operation of [showXXX]. Sure. > You are not using all those methods in https://bugs.webkit.org/attachment.cgi?id=174319&action=review > Do you need all of them? The only one not currently used is -(void)show, and with the rename above, it'll go away.
Benjamin Poulain
Comment 4 2013-01-14 13:27:00 PST
Comment on attachment 174317 [details] Patch Sounds good! I r- this one in the meantime.
Jer Noble
Comment 5 2013-01-15 10:50:34 PST
Created attachment 182807 [details] Patch Addressed benjamin's comments. Will update dependant patches with the new method names.
Jer Noble
Comment 6 2013-01-15 15:51:40 PST
Created attachment 182861 [details] Patch Replaced the completion handler (unsupported in < 10.8) with a simple performSelectorAfterDelay:)
Andreas Kling
Comment 7 2014-02-05 11:09:02 PST
Comment on attachment 182861 [details] Patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Jer Noble
Comment 8 2014-02-05 11:13:03 PST
Comment on attachment 182861 [details] Patch Yep, still relevant.
Note You need to log in before you can comment on or make changes to this bug.