Changeset 155726 in webkit


Ignore:
Timestamp:
Sep 13, 2013, 2:38:55 PM (12 years ago)
Author:
mitz@apple.com
Message:

[mac WK1] Introduce WebViewWillCloseNotification
https://bugs.webkit.org/show_bug.cgi?id=121321

Reviewed by Sam Weinig.

  • WebKit.exp: Exported WebViewWillCloseNotification.
  • WebView/WebView.mm:

(-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.

  • WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
Location:
trunk/Source/WebKit/mac
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r155683 r155726  
     12013-09-13  Dan Bernstein  <mitz@apple.com>
     2
     3        [mac WK1] Introduce WebViewWillCloseNotification
     4        https://bugs.webkit.org/show_bug.cgi?id=121321
     5
     6        Reviewed by Sam Weinig.
     7
     8        * WebKit.exp: Exported WebViewWillCloseNotification.
     9        * WebView/WebView.mm:
     10        (-[WebView _close]): Send WebViewWillCloseNotification before closing the WebView.
     11        * WebView/WebViewPrivate.h: Declared WebViewWillCloseNotification.
     12
    1132013-09-13  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WebKit/mac/WebKit.exp

    r142348 r155726  
    127127_WebViewProgressFinishedNotification
    128128_WebViewProgressStartedNotification
     129_WebViewWillCloseNotification
    129130__WebHTMLViewPrintingMaximumShrinkFactor
    130131__WebHTMLViewPrintingMinimumShrinkFactor
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r155512 r155726  
    507507
    508508NSString *_WebViewDidStartAcceleratedCompositingNotification = @"_WebViewDidStartAcceleratedCompositing";
     509NSString * const WebViewWillCloseNotification = @"WebViewWillCloseNotification";
    509510
    510511NSString *WebKitKerningAndLigaturesEnabledByDefaultDefaultsKey = @"WebKitKerningAndLigaturesEnabledByDefault";
     
    10841085    if (!_private || _private->closed)
    10851086        return;
     1087
     1088    [[NSNotificationCenter defaultCenter] postNotificationName:WebViewWillCloseNotification object:self];
    10861089
    10871090    _private->closed = YES;
  • trunk/Source/WebKit/mac/WebView/WebViewPrivate.h

    r153396 r155726  
    7171extern NSString *_WebViewDidStartAcceleratedCompositingNotification;
    7272
     73extern NSString * const WebViewWillCloseNotification;
     74
    7375#if ENABLE_DASHBOARD_SUPPORT
    7476typedef enum {
Note: See TracChangeset for help on using the changeset viewer.