Changeset 33591 in webkit
- Timestamp:
- May 19, 2008 6:12:20 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r33581 r33591 1 2008-05-19 Alp Toker <alp@nuanti.com> 2 3 Reviewed by Anders and Beth. 4 5 http://bugs.webkit.org/show_bug.cgi?id=16495 6 [GTK] Accessibility support with ATK/AT-SPI 7 8 Initial ATK/AT-SPI accessibility support for the GTK+ port. 9 10 * wtf/Platform.h: 11 1 12 2008-05-19 Kevin McCullough <kmccullough@apple.com> 2 13 -
trunk/JavaScriptCore/wtf/Platform.h
r32988 r33591 237 237 #if PLATFORM(MAC) || PLATFORM(WIN) 238 238 #define ENABLE_DASHBOARD_SUPPORT 1 239 #endif 240 241 #if PLATFORM(MAC) || PLATFORM(WIN) || PLATFORM(GTK) 239 242 #define HAVE_ACCESSIBILITY 1 240 243 #endif -
trunk/WebCore/ChangeLog
r33590 r33591 1 2008-05-19 Alp Toker <alp@nuanti.com> 2 3 Reviewed by Anders and Beth. 4 5 http://bugs.webkit.org/show_bug.cgi?id=16495 6 [GTK] Accessibility support with ATK/AT-SPI 7 8 Initial ATK/AT-SPI accessibility support for the GTK+ port. 9 10 * GNUmakefile.am: 11 * page/AccessibilityObject.cpp: 12 (WebCore::AccessibilityObject::AccessibilityObject): 13 (WebCore::AccessibilityObject::detach): 14 * page/AccessibilityObject.h: 15 * page/gtk/AXObjectCacheAtk.cpp: Added. 16 (WebCore::AXObjectCache::detachWrapper): 17 (WebCore::AXObjectCache::attachWrapper): 18 (WebCore::AXObjectCache::postNotification): 19 (WebCore::AXObjectCache::postNotificationToElement): 20 (WebCore::AXObjectCache::handleFocusedUIElementChanged): 21 * page/gtk/AccessibilityObjectWrapperAtk.cpp: Added. 22 (WebCore::): 23 (WebCore::AccessibilityObject::wrapper): 24 (WebCore::AccessibilityObject::setWrapper): 25 * page/gtk/AccessibilityObjectWrapperAtk.h: Added. 26 1 27 2008-05-19 Anders Carlsson <andersca@apple.com> 2 28 -
trunk/WebCore/GNUmakefile.am
r33524 r33591 1031 1031 WebCore/platform/text/TextBoundariesICU.cpp \ 1032 1032 WebCore/platform/text/TextBreakIteratorICU.cpp \ 1033 WebCore/page/gtk/AXObjectCacheAtk.cpp \ 1034 WebCore/page/gtk/AccessibilityObjectWrapperAtk.cpp \ 1033 1035 WebCore/page/gtk/EventHandlerGtk.cpp \ 1034 1036 WebCore/page/gtk/FrameGtk.cpp \ -
trunk/WebCore/page/AccessibilityObject.cpp
r33510 r33591 64 64 : m_id(0) 65 65 , m_haveChildren(false) 66 #if PLATFORM(GTK) 67 , m_wrapper(0) 68 #endif 66 69 { 67 70 } … … 76 79 removeAXObjectID(); 77 80 #if HAVE(ACCESSIBILITY) 78 m_wrapper = 0;81 setWrapper(0); 79 82 #endif 80 83 } -
trunk/WebCore/page/AccessibilityObject.h
r33568 r33591 1 1 /* 2 2 * Copyright (C) 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2008 Nuanti Ltd. 3 4 * 4 5 * Redistribution and use in source and binary forms, with or without … … 56 57 @class WebCoreTextMarkerRange; 57 58 #else 58 class AccessibilityObjectWrapper;59 59 class NSArray; 60 60 class NSAttributedString; … … 66 66 class WebCoreTextMarker; 67 67 class WebCoreTextMarkerRange; 68 #if PLATFORM(GTK) 69 typedef struct _AtkObject AtkObject; 70 typedef struct _AtkObject AccessibilityObjectWrapper; 71 #else 72 class AccessibilityObjectWrapper; 73 #endif 68 74 #endif 69 75 … … 349 355 350 356 #if HAVE(ACCESSIBILITY) 357 #if PLATFORM(GTK) 358 AccessibilityObjectWrapper* wrapper() const; 359 void setWrapper(AccessibilityObjectWrapper*); 360 #else 351 361 AccessibilityObjectWrapper* wrapper() const { return m_wrapper.get(); } 352 362 void setWrapper(AccessibilityObjectWrapper* wrapper) … … 355 365 } 356 366 #endif 367 #endif 357 368 358 369 protected: … … 369 380 #elif PLATFORM(WIN) 370 381 COMPtr<AccessibilityObjectWrapper> m_wrapper; 382 #elif PLATFORM(GTK) 383 AtkObject* m_wrapper; 371 384 #endif 372 385 }; -
trunk/WebKit/gtk/ChangeLog
r32914 r33591 1 2008-05-19 Alp Toker <alp@nuanti.com> 2 3 Reviewed by Anders and Beth. 4 5 http://bugs.webkit.org/show_bug.cgi?id=16495 6 [GTK] Accessibility support with ATK/AT-SPI 7 8 Initial ATK/AT-SPI accessibility support for the GTK+ port. 9 10 * webkit/webkitwebview.cpp: 11 1 12 2008-05-06 Christian Dywan <christian@twotoasts.de> 2 13 -
trunk/WebKit/gtk/webkit/webkitwebview.cpp
r32914 r33591 5 5 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 6 6 * Copyright (C) 2008 Jan Alonzo <jmalonzo@unpluggable.com> 7 * Copyright (C) 2008 Nuanti Ltd. 7 8 * 8 9 * This library is free software; you can redistribute it and/or … … 29 30 #include "webkitwebhistoryitem.h" 30 31 32 #include "AXObjectCache.h" 31 33 #include "NotImplemented.h" 32 34 #include "BackForwardList.h" … … 37 39 #include "ContextMenuController.h" 38 40 #include "Cursor.h" 41 #include "Document.h" 39 42 #include "DragClientGtk.h" 40 43 #include "Editor.h" … … 715 718 } 716 719 720 static AtkObject* webkit_web_view_get_accessible(GtkWidget* widget) 721 { 722 WebKitWebView* webView = WEBKIT_WEB_VIEW(widget); 723 AXObjectCache::enableAccessibility(); 724 725 Frame* coreFrame = core(webView)->mainFrame(); 726 if (!coreFrame) 727 return NULL; 728 729 Document* doc = coreFrame->document(); 730 if (!doc) 731 return NULL; 732 733 AccessibilityObject* coreAccessible = doc->axObjectCache()->get(doc->renderer()); 734 if (!coreAccessible || !coreAccessible->wrapper()) 735 return NULL; 736 737 return coreAccessible->wrapper(); 738 } 739 717 740 static void webkit_web_view_class_init(WebKitWebViewClass* webViewClass) 718 741 { … … 1081 1104 widgetClass->popup_menu = webkit_web_view_popup_menu_handler; 1082 1105 widgetClass->focus_in_event = webkit_web_view_focus_in_event; 1106 widgetClass->get_accessible = webkit_web_view_get_accessible; 1083 1107 1084 1108 GtkContainerClass* containerClass = GTK_CONTAINER_CLASS(webViewClass);
Note: See TracChangeset
for help on using the changeset viewer.