Changeset 225592 in webkit
- Timestamp:
- Dec 6, 2017 1:02:30 PM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r225590 r225592 1 2017-12-06 Nan Wang <n_wang@apple.com> 2 3 AX: [iOS] Post accessibility notification when a web process changes its suspended state 4 https://bugs.webkit.org/show_bug.cgi?id=180458 5 <rdar://problem/35869115> 6 7 Reviewed by Chris Dumez. 8 9 Post accessibility notification with the pid information when a web process 10 becomes suspended or resumes running. 11 12 * WebProcess/WebProcess.cpp: 13 (WebKit::WebProcess::actualPrepareToSuspend): 14 (WebKit::WebProcess::processDidResume): 15 * WebProcess/WebProcess.h: 16 * WebProcess/cocoa/WebProcessCocoa.mm: 17 (WebKit::WebProcess::accessibilityProcessSuspendedNotification): 18 1 19 2017-12-06 Ryan Haddad <ryanhaddad@apple.com> 2 20 -
trunk/Source/WebKit/WebProcess/WebProcess.cpp
r225289 r225592 1333 1333 #endif 1334 1334 1335 #if PLATFORM(IOS) 1336 accessibilityProcessSuspendedNotification(true); 1337 #endif 1338 1335 1339 markAllLayersVolatile([this, shouldAcknowledgeWhenReadyToSuspend] { 1336 1340 RELEASE_LOG(ProcessSuspension, "%p - WebProcess::markAllLayersVolatile() Successfuly marked all layers as volatile", this); … … 1419 1423 cancelMarkAllLayersVolatile(); 1420 1424 setAllLayerTreeStatesFrozen(false); 1425 1426 #if PLATFORM(IOS) 1427 accessibilityProcessSuspendedNotification(false); 1428 #endif 1421 1429 } 1422 1430 -
trunk/Source/WebKit/WebProcess/WebProcess.h
r225289 r225592 233 233 WebCacheStorageProvider& cacheStorageProvider() { return m_cacheStorageProvider.get(); } 234 234 235 #if PLATFORM(IOS) 236 void accessibilityProcessSuspendedNotification(bool); 237 #endif 238 235 239 private: 236 240 WebProcess(); -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r224806 r225592 71 71 72 72 #if PLATFORM(IOS) 73 #import <UIKit/UIAccessibility.h> 73 74 #import <pal/spi/ios/GraphicsServicesSPI.h> 75 76 #if USE(APPLE_INTERNAL_SDK) 77 #import <AXRuntime/AXDefines.h> 78 #import <AXRuntime/AXNotificationConstants.h> 79 #else 80 #define kAXPidStatusChangedNotification 0 81 #endif 82 74 83 #endif 75 84 … … 524 533 } 525 534 535 #if PLATFORM(IOS) 536 void WebProcess::accessibilityProcessSuspendedNotification(bool suspended) 537 { 538 UIAccessibilityPostNotification(kAXPidStatusChangedNotification, @{ @"pid" : @(getpid()), @"suspended" : @(suspended) }); 539 } 540 #endif 541 526 542 } // namespace WebKit
Note: See TracChangeset
for help on using the changeset viewer.