Changeset 140667 in webkit
- Timestamp:
- Jan 24, 2013 2:11:51 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r140656 r140667 1 2013-01-24 Krzysztof Czech <k.czech@samsung.com> 2 3 [EFL][WK2] Expose accessibility hierarchy in WebKit2-EFL. 4 https://bugs.webkit.org/show_bug.cgi?id=106216 5 6 Reviewed by Andreas Kling. 7 8 Create WebPage's accessibility object on WebPage initialization. 9 Wrap around WebCore's accessibility objects. 10 Updating accessibility hierarchy. Expands accessibility implementation 11 of WebKit-GTK to be used in EFL. 12 13 * PlatformEfl.cmake: 14 * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp: 15 (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld): 16 * WebProcess/WebPage/WebPage.h: 17 (WebPage): 18 * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp: 19 (webPageAccessibilityObjectGetIndexInParent): 20 (web_page_accessibility_object_init): 21 * WebProcess/WebPage/efl/WebPageEfl.cpp: 22 (WebKit::WebPage::platformInitialize): 23 (WebKit): 24 (WebKit::WebPage::updateAccessibilityTree): 25 1 26 2013-01-23 Seokju Kwon <seokju.kwon@gmail.com> 2 27 -
trunk/Source/WebKit2/PlatformEfl.cmake
r140542 r140667 137 137 WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp 138 138 139 WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp 139 140 WebProcess/WebPage/efl/WebInspectorEfl.cpp 140 141 WebProcess/WebPage/efl/WebPageEfl.cpp … … 412 413 ) 413 414 endif () 415 416 if (ENABLE_ACCESSIBILITY) 417 list(APPEND WebKit2_INCLUDE_DIRECTORIES 418 "${WEBKIT2_DIR}/WebProcess/WebPage/atk" 419 ${ATK_INCLUDE_DIRS} 420 ) 421 list(APPEND WebKit2_LIBRARIES 422 ${ATK_LIBRARIES} 423 ) 424 endif () -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp
r140285 r140667 1482 1482 webPage->injectedBundleLoaderClient().didClearWindowObjectForFrame(webPage, m_frame, world); 1483 1483 1484 #if PLATFORM(GTK)1484 #if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL)) 1485 1485 // Ensure the accessibility hierarchy is updated. 1486 1486 webPage->updateAccessibilityTree(); -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r140087 r140667 79 79 #endif 80 80 81 #if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL)) 82 #include "WebPageAccessibilityObject.h" 83 #include <wtf/gobject/GRefPtr.h> 84 #endif 85 81 86 #if PLATFORM(GTK) 82 87 #include "ArgumentCodersGtk.h" 83 #include "WebPageAccessibilityObject.h"84 88 #include "WebPrintOperationGtk.h" 85 89 #endif … … 461 465 void cancelComposition(); 462 466 #elif PLATFORM(GTK) 463 void updateAccessibilityTree();464 467 #if USE(TEXTURE_MAPPER_GL) 465 468 void setAcceleratedCompositingWindowId(int64_t nativeWindowHandle); 466 469 #endif 470 #endif 471 472 #if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL)) 473 void updateAccessibilityTree(); 467 474 #endif 468 475 … … 850 857 WebCore::KeyboardEvent* m_keyboardEventBeingInterpreted; 851 858 852 #elif PLATFORM(GTK)859 #elif HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL)) 853 860 GRefPtr<WebPageAccessibilityObject> m_accessibilityObject; 854 861 -
trunk/Source/WebKit2/WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
r139421 r140667 76 76 } 77 77 78 static gint webPageAccessibilityObjectGetIndexInParent(AtkObject *atkObject)78 static gint webPageAccessibilityObjectGetIndexInParent(AtkObject*) 79 79 { 80 80 // An AtkPlug is the only child an AtkSocket can have. … … 107 107 } 108 108 109 static void web_page_accessibility_object_init(WebPageAccessibilityObject* accessible)109 static void web_page_accessibility_object_init(WebPageAccessibilityObject*) 110 110 { 111 111 } -
trunk/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp
r132210 r140667 43 43 #include <WebCore/Settings.h> 44 44 45 #if HAVE(ACCESSIBILITY) 46 #include "WebPageAccessibilityObject.h" 47 #endif 48 45 49 using namespace WebCore; 46 50 … … 49 53 void WebPage::platformInitialize() 50 54 { 51 notImplemented(); 52 } 55 #if HAVE(ACCESSIBILITY) 56 m_accessibilityObject = adoptGRef(webPageAccessibilityObjectNew(this)); 57 #else 58 notImplemented(); 59 #endif 60 } 61 62 #if HAVE(ACCESSIBILITY) 63 void WebPage::updateAccessibilityTree() 64 { 65 if (!m_accessibilityObject) 66 return; 67 68 webPageAccessibilityObjectRefresh(m_accessibilityObject.get()); 69 } 70 #endif 53 71 54 72 void WebPage::platformPreferencesDidChange(const WebPreferencesStore&)
Note: See TracChangeset
for help on using the changeset viewer.