Title: [191022] trunk/Source/WebKit2
- Revision
- 191022
- Author
- [email protected]
- Date
- 2015-10-13 17:25:34 -0700 (Tue, 13 Oct 2015)
Log Message
Use the correct notification strings for view service applications state change.
https://bugs.webkit.org/show_bug.cgi?id=150107
Use the correct notification names "_UIViewServiceHostDidEnterBackgroundNotification" and
"_UIViewServiceHostWillEnterForegroundNotification" to listen to view service application state changes.
Patch by Yongjun Zhang <[email protected]> on 2015-10-13
Reviewed by Gavin Barraclough.
* UIProcess/ApplicationStateTracker.mm:
(WebKit::ApplicationStateTracker::ApplicationStateTracker):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (191021 => 191022)
--- trunk/Source/WebKit2/ChangeLog 2015-10-14 00:15:53 UTC (rev 191021)
+++ trunk/Source/WebKit2/ChangeLog 2015-10-14 00:25:34 UTC (rev 191022)
@@ -1,3 +1,16 @@
+2015-10-13 Yongjun Zhang <[email protected]>
+
+ Use the correct notification strings for view service applications state change.
+ https://bugs.webkit.org/show_bug.cgi?id=150107
+
+ Use the correct notification names "_UIViewServiceHostDidEnterBackgroundNotification" and
+ "_UIViewServiceHostWillEnterForegroundNotification" to listen to view service application state changes.
+
+ Reviewed by Gavin Barraclough.
+
+ * UIProcess/ApplicationStateTracker.mm:
+ (WebKit::ApplicationStateTracker::ApplicationStateTracker):
+
2015-10-13 Myles C. Maxfield <[email protected]>
Split TypesettingFeatures into kerning and ligatures bools
Modified: trunk/Source/WebKit2/UIProcess/ApplicationStateTracker.mm (191021 => 191022)
--- trunk/Source/WebKit2/UIProcess/ApplicationStateTracker.mm 2015-10-14 00:15:53 UTC (rev 191021)
+++ trunk/Source/WebKit2/UIProcess/ApplicationStateTracker.mm 2015-10-14 00:25:34 UTC (rev 191022)
@@ -127,11 +127,10 @@
m_isInBackground = isBackgroundState([m_applicationStateMonitor mostElevatedApplicationStateForPID:applicationPID]);
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
- m_didEnterBackgroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostDidEnterBackgroundNotificationName" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
+ m_didEnterBackgroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostDidEnterBackgroundNotification" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
applicationDidEnterBackground();
}];
-
- m_willEnterForegroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostWillEnterForegroundNotificationName" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
+ m_willEnterForegroundObserver = [notificationCenter addObserverForName:@"_UIViewServiceHostWillEnterForegroundNotification" object:serviceViewController queue:nil usingBlock:[this](NSNotification *) {
applicationWillEnterForeground();
}];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes