+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
- (NSMenu *)menu;
@end
+#ifdef __LP64__
#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
+#endif // __LP64__
namespace WebKit {
{
refreshExistingServices();
+#ifdef __LP64__
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];
+#endif // __LP64__
}
void ServicesController::refreshExistingServices(bool refreshImmediately)