* UIProcess/mac/ServicesController.mm:
(WebKit::ServicesController::ServicesController):
Don't dynamically refresh services in 32-bit apps. It's not possible
to write a 32-bit app with the Modern API, so this doesn't matter.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172369
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-08-08 Tim Horton <timothy_horton@apple.com>
+
+ Build fix for 32-bit.
+
+ * UIProcess/mac/ServicesController.mm:
+ (WebKit::ServicesController::ServicesController):
+ Don't dynamically refresh services in 32-bit apps. It's not possible
+ to write a 32-bit app with the Modern API, so this doesn't matter.
+
2014-08-08 Tim Horton <timothy_horton@apple.com>
[mac] Dynamically update serviceability when the set of services changes
2014-08-08 Tim Horton <timothy_horton@apple.com>
[mac] Dynamically update serviceability when the set of services changes
#if __has_include(<Foundation/NSExtension.h>)
#import <Foundation/NSExtension.h>
#else
#if __has_include(<Foundation/NSExtension.h>)
#import <Foundation/NSExtension.h>
#else
@interface NSExtension (Details)
+ (id)beginMatchingExtensionsWithAttributes:(NSDictionary *)attributes completion:(void (^)(NSArray *matchingExtensions, NSError *error))handler;
@end
@interface NSExtension (Details)
+ (id)beginMatchingExtensionsWithAttributes:(NSDictionary *)attributes completion:(void (^)(NSArray *matchingExtensions, NSError *error))handler;
@end
{
refreshExistingServices();
{
refreshExistingServices();
auto refreshCallback = [](NSArray *, NSError *) {
// We coalese refreshes from the notification callbacks because they can come in small batches.
ServicesController::shared().refreshExistingServices(false);
auto refreshCallback = [](NSArray *, NSError *) {
// We coalese refreshes from the notification callbacks because they can come in small batches.
ServicesController::shared().refreshExistingServices(false);
m_extensionWatcher = [NSExtension beginMatchingExtensionsWithAttributes:extensionAttributes completion:refreshCallback];
auto uiExtensionAttributes = @{ @"NSExtensionPointName" : @"com.apple.ui-services" };
m_uiExtensionWatcher = [NSExtension beginMatchingExtensionsWithAttributes:uiExtensionAttributes completion:refreshCallback];
m_extensionWatcher = [NSExtension beginMatchingExtensionsWithAttributes:extensionAttributes completion:refreshCallback];
auto uiExtensionAttributes = @{ @"NSExtensionPointName" : @"com.apple.ui-services" };
m_uiExtensionWatcher = [NSExtension beginMatchingExtensionsWithAttributes:uiExtensionAttributes completion:refreshCallback];
}
void ServicesController::refreshExistingServices(bool refreshImmediately)
}
void ServicesController::refreshExistingServices(bool refreshImmediately)