Changeset 170331 in webkit


Ignore:
Timestamp:
Jun 23, 2014 4:16:09 PM (10 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/17413498> [Cocoa] Expose WebPreferences::offlineWebApplicationCacheEnabled
https://bugs.webkit.org/show_bug.cgi?id=134217

Reviewed by Anders Carlsson.

  • UIProcess/API/Cocoa/WKPreferences.mm:

(-[WKPreferences _offlineApplicationCacheIsEnabled]):
(-[WKPreferences _setOfflineApplicationCacheIsEnabled:]):

  • UIProcess/API/Cocoa/WKPreferencesPrivate.h: Added _offlineWebApplicationCacheIsEnabled

property.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r170330 r170331  
     12014-06-23  Dan Bernstein  <mitz@apple.com>
     2
     3        <rdar://problem/17413498> [Cocoa] Expose WebPreferences::offlineWebApplicationCacheEnabled
     4        https://bugs.webkit.org/show_bug.cgi?id=134217
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/API/Cocoa/WKPreferences.mm:
     9        (-[WKPreferences _offlineApplicationCacheIsEnabled]):
     10        (-[WKPreferences _setOfflineApplicationCacheIsEnabled:]):
     11        * UIProcess/API/Cocoa/WKPreferencesPrivate.h: Added _offlineWebApplicationCacheIsEnabled
     12        property.
     13
    1142014-06-23  Grant Kennell  <gkennell@apple.com>
    215
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm

    r170253 r170331  
    154154}
    155155
     156- (BOOL)_offlineApplicationCacheIsEnabled
     157{
     158    return _preferences->offlineWebApplicationCacheEnabled();
     159}
     160
     161- (void)_setOfflineApplicationCacheIsEnabled:(BOOL)offlineApplicationCacheIsEnabled
     162{
     163    _preferences->setOfflineWebApplicationCacheEnabled(offlineApplicationCacheIsEnabled);
     164}
     165
    156166@end
    157167
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h

    r170032 r170331  
    4343@property (nonatomic, setter=_setStorageBlockingPolicy:) _WKStorageBlockingPolicy _storageBlockingPolicy;
    4444
     45// FIXME: This should be configured on the WKWebsiteDataStore.
     46@property (nonatomic, setter=_setOfflineApplicationCacheIsEnabled:) BOOL _offlineApplicationCacheIsEnabled;
     47
    4548@end
    4649
Note: See TracChangeset for help on using the changeset viewer.