Changeset 85366 in webkit
- Timestamp:
- Apr 29, 2011 4:17:54 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r85364 r85366 1 2011-04-29 Chris Fleizach <cfleizach@apple.com> 2 3 Reviewed by Beth Dakin. 4 5 AX: Remote accessibility should build on snow leopard 6 https://bugs.webkit.org/show_bug.cgi?id=59767 7 8 * UIProcess/API/mac/WKView.mm: 9 (-[WKView _updateRemoteAccessibilityRegistration:]): 10 (-[WKView viewDidMoveToWindow]): 11 (-[WKView _setAccessibilityWebProcessToken:]): 12 * WebProcess/WebPage/mac/WebPageMac.mm: 13 (WebKit::WebPage::platformInitialize): 14 (WebKit::WebPage::registerUIProcessAccessibilityTokens): 15 * WebProcess/mac/WebProcessMainMac.mm: 16 (WebKit::WebProcessMain): 17 1 18 2011-04-29 Sam Weinig <sam@webkit.org> 2 19 -
trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm
r85356 r85366 194 194 - (void)_updateRemoteAccessibilityRegistration:(BOOL)registerProcess 195 195 { 196 #if !defined(BUILDING_ON_SNOW_LEOPARD)197 196 // When the tree is connected/disconnected, the remote accessibility registration 198 197 // needs to be updated with the pid of the remote process. If the process is going … … 207 206 if (pid) 208 207 WKAXRegisterRemoteProcess(registerProcess, pid); 209 #endif210 208 } 211 209 … … 1720 1718 1721 1719 // Initialize remote accessibility when the window connection has been established. 1722 #if !defined(BUILDING_ON_SNOW_LEOPARD)1723 1720 NSData *remoteElementToken = WKAXRemoteTokenForElement(self); 1724 1721 NSData *remoteWindowToken = WKAXRemoteTokenForElement([self accessibilityAttributeValue:NSAccessibilityWindowAttribute]); … … 1726 1723 CoreIPC::DataReference windowToken = CoreIPC::DataReference(reinterpret_cast<const uint8_t*>([remoteWindowToken bytes]), [remoteWindowToken length]); 1727 1724 _data->_page->registerUIProcessAccessibilityTokens(elementToken, windowToken); 1728 #endif1729 1725 1730 1726 } else { … … 2220 2216 - (void)_setAccessibilityWebProcessToken:(NSData *)data 2221 2217 { 2222 #if !defined(BUILDING_ON_SNOW_LEOPARD)2223 2218 _data->_remoteAccessibilityChild = WKAXRemoteElementForToken(data); 2224 2219 [self _updateRemoteAccessibilityRegistration:YES]; 2225 #endif2226 2220 } 2227 2221 -
trunk/Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm
r84526 r85366 64 64 m_page->addSchedulePair(SchedulePair::create([NSRunLoop currentRunLoop], kCFRunLoopCommonModes)); 65 65 66 #if !defined(BUILDING_ON_SNOW_LEOPARD)67 66 AccessibilityWebPageObject* mockAccessibilityElement = [[[AccessibilityWebPageObject alloc] init] autorelease]; 68 67 … … 77 76 send(Messages::WebPageProxy::RegisterWebProcessAccessibilityToken(dataToken)); 78 77 m_mockAccessibilityElement = mockAccessibilityElement; 79 #endif80 78 } 81 79 … … 584 582 void WebPage::registerUIProcessAccessibilityTokens(const CoreIPC::DataReference& elementToken, const CoreIPC::DataReference& windowToken) 585 583 { 586 #if !defined(BUILDING_ON_SNOW_LEOPARD)587 584 NSData* elementTokenData = [NSData dataWithBytes:elementToken.data() length:elementToken.size()]; 588 585 NSData* windowTokenData = [NSData dataWithBytes:windowToken.data() length:windowToken.size()]; … … 592 589 593 590 [accessibilityRemoteObject() setRemoteParent:remoteElement]; 594 #endif595 591 } 596 592 -
trunk/Source/WebKit2/WebProcess/mac/WebProcessMainMac.mm
r80014 r85366 103 103 [[NSApplication sharedApplication] _installAutoreleasePoolsOnCurrentThreadIfNecessary]; 104 104 105 #if !defined(BUILDING_ON_SNOW_LEOPARD)106 105 WKAXRegisterRemoteApp(); 107 #endif108 106 109 107 RunLoop::run();
Note: See TracChangeset
for help on using the changeset viewer.