Title: [242756] trunk/Source/WebKit
- Revision
- 242756
- Author
- [email protected]
- Date
- 2019-03-11 16:36:14 -0700 (Mon, 11 Mar 2019)
Log Message
Unreviewed build fix after r242745.
* UIProcess/Cocoa/WebProcessPoolCocoa.mm:
(WebKit::WebProcessPool::registerNotificationObservers):
(WebKit::WebProcessPool::unregisterNotificationObservers):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (242755 => 242756)
--- trunk/Source/WebKit/ChangeLog 2019-03-11 23:31:23 UTC (rev 242755)
+++ trunk/Source/WebKit/ChangeLog 2019-03-11 23:36:14 UTC (rev 242756)
@@ -1,3 +1,11 @@
+2019-03-11 Per Arne Vollan <[email protected]>
+
+ Unreviewed build fix after r242745.
+
+ * UIProcess/Cocoa/WebProcessPoolCocoa.mm:
+ (WebKit::WebProcessPool::registerNotificationObservers):
+ (WebKit::WebProcessPool::unregisterNotificationObservers):
+
2019-03-11 Chris Dumez <[email protected]>
Assert in WebPageProxy::suspendCurrentPageIfPossible()
Modified: trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (242755 => 242756)
--- trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2019-03-11 23:31:23 UTC (rev 242755)
+++ trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm 2019-03-11 23:36:14 UTC (rev 242756)
@@ -77,7 +77,7 @@
static NSString * const WebKitLogCookieInformationDefaultsKey = @"WebKitLogCookieInformation";
#endif
-#if PLATFORM(IOS_FAMILY)
+#if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
SOFT_LINK_PRIVATE_FRAMEWORK(BackBoardServices)
SOFT_LINK(BackBoardServices, BKSDisplayBrightnessGetCurrent, float, (), ());
#endif
@@ -386,7 +386,7 @@
return WTF::hasEntitlement(ensureNetworkProcess().connection()->xpcConnection(), entitlement.utf8().data());
}
-#if PLATFORM(IOS_FAMILY)
+#if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
float WebProcessPool::displayBrightness()
{
return BKSDisplayBrightnessGetCurrent();
@@ -401,7 +401,7 @@
void WebProcessPool::registerNotificationObservers()
{
-#if PLATFORM(IOS_FAMILY)
+#if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), this, backlightLevelDidChangeCallback, (CFStringRef)UIBacklightLevelChangedNotification, nullptr, CFNotificationSuspensionBehaviorCoalesce);
#else
// Listen for enhanced accessibility changes and propagate them to the WebProcess.
@@ -453,7 +453,7 @@
void WebProcessPool::unregisterNotificationObservers()
{
-#if PLATFORM(IOS_FAMILY)
+#if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
CFNotificationCenterRemoveObserver(CFNotificationCenterGetDarwinNotifyCenter(), this, (CFStringRef)UIBacklightLevelChangedNotification, nullptr);
#else
[[NSNotificationCenter defaultCenter] removeObserver:m_enhancedAccessibilityObserver.get()];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes