Changeset 155448 in webkit
- Timestamp:
- Sep 10, 2013, 9:20:01 AM (13 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
DumpRenderTree/AccessibilityController.h (modified) (2 diffs)
-
DumpRenderTree/atk/AccessibilityControllerAtk.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r155444 r155448 1 2013-09-10 Denis Nomiyama <d.nomiyama@samsung.com> 2 3 [GTK] Missing DRT AccessibilityController::addNotificationListener implementation 4 https://bugs.webkit.org/show_bug.cgi?id=70606 5 6 Reviewed by Mario Sanchez Prada. 7 8 Implemented the global notification listener for 9 AccessibilityController. The signal is generated by 10 AXObjectCache::postPlatformNotification() and received by 11 axObjectEventListener(). axObjectEventListener will then invoke 12 JSObjectCallAsFunction() with the respective callback function. 13 14 There is no additional test for this patch since its implementation will 15 be tested by a11y layout tests that are currently skipped (e.g. bug 16 98370). 17 18 * DumpRenderTree/AccessibilityController.h: Added a global notification 19 handler for GTK+. 20 * DumpRenderTree/atk/AccessibilityControllerAtk.cpp: 21 (AccessibilityController::AccessibilityController): Initializes the 22 global handler with 0. 23 (AccessibilityController::addNotificationListener): Creates the 24 notification handler and sets the notification function callback. 25 (AccessibilityController::removeNotificationListener): Removes the 26 global handler. 27 1 28 2013-09-10 Krzysztof Czech <k.czech@samsung.com> 2 29 -
trunk/Tools/DumpRenderTree/AccessibilityController.h
r145014 r155448 36 36 #endif 37 37 #if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL)) 38 #include "AccessibilityNotificationHandlerAtk.h" 38 39 #include <atk/atk.h> 39 40 #endif … … 89 90 RetainPtr<NotificationHandler> m_globalNotificationHandler; 90 91 #endif 92 93 #if PLATFORM(GTK) || PLATFORM(EFL) 94 RefPtr<AccessibilityNotificationHandler> m_globalNotificationHandler; 95 #endif 91 96 }; 92 97 -
trunk/Tools/DumpRenderTree/atk/AccessibilityControllerAtk.cpp
r154697 r155448 39 39 40 40 AccessibilityController::AccessibilityController() 41 : m_globalNotificationHandler(0) 41 42 { 42 43 } … … 80 81 } 81 82 82 bool AccessibilityController::addNotificationListener(JSObjectRef )83 bool AccessibilityController::addNotificationListener(JSObjectRef functionCallback) 83 84 { 84 return false; 85 if (!functionCallback) 86 return false; 87 88 // Only one global notification listener. 89 if (m_globalNotificationHandler) 90 return false; 91 92 m_globalNotificationHandler = AccessibilityNotificationHandler::create(); 93 m_globalNotificationHandler->setNotificationFunctionCallback(functionCallback); 94 95 return true; 85 96 } 86 97 87 98 void AccessibilityController::removeNotificationListener() 88 99 { 100 // Programmers should not be trying to remove a listener that's already removed. 101 ASSERT(m_globalNotificationHandler); 102 103 m_globalNotificationHandler = 0; 89 104 } 90 105
Note:
See TracChangeset
for help on using the changeset viewer.