Changeset 54584 in webkit
- Timestamp:
- Feb 9, 2010 8:01:48 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r54583 r54584 1 2010-02-09 Chris Guillory <ctguil@google.com> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Notify ChromeClientChromium of state change notifications. 6 7 https://bugs.webkit.org/show_bug.cgi?id=34464 8 9 * accessibility/chromium/AXObjectCacheChromium.cpp: 10 (WebCore::toChromeClientChromium): 11 (WebCore::AXObjectCache::postPlatformNotification): 12 * page/chromium/ChromeClientChromium.h: 13 1 14 2010-02-09 Kwang Yul Seo <skyul@company100.net> 2 15 -
trunk/WebCore/accessibility/chromium/AXObjectCacheChromium.cpp
r54466 r54584 27 27 #include "config.h" 28 28 #include "AXObjectCache.h" 29 30 29 #include "AccessibilityObject.h" 30 #include "Chrome.h" 31 #include "ChromeClientChromium.h" 32 #include "FrameView.h" 31 33 32 34 namespace WebCore { 35 36 static ChromeClientChromium* toChromeClientChromium(FrameView* view) 37 { 38 Page* page = view->frame() ? view->frame()->page() : 0; 39 if (!page) 40 return 0; 41 42 return static_cast<ChromeClientChromium*>(page->chrome()->client()); 43 } 33 44 34 45 void AXObjectCache::detachWrapper(AccessibilityObject* obj) … … 44 55 } 45 56 46 void AXObjectCache::postPlatformNotification(AccessibilityObject* , AXNotification)57 void AXObjectCache::postPlatformNotification(AccessibilityObject* obj, AXNotification notification) 47 58 { 59 if (notification != AXCheckedStateChanged) 60 return; 61 62 if (!obj || !obj->document() || !obj->documentFrameView()) 63 return; 64 65 ChromeClientChromium* client = toChromeClientChromium(obj->documentFrameView()); 66 if (client) 67 client->didChangeAccessibilityObjectState(obj); 48 68 } 49 69 -
trunk/WebCore/page/chromium/ChromeClientChromium.h
r54466 r54584 36 36 37 37 namespace WebCore { 38 class IntRect; 39 class PopupContainer; 38 class AccessibilityObject; 39 class IntRect; 40 class PopupContainer; 40 41 41 // Contains Chromium-specific extensions to the ChromeClient. Only put 42 // things here that don't make sense for other ports. 43 class ChromeClientChromium : public ChromeClient { 44 public: 45 // Notifies the client of a new popup widget. The client should place 46 // and size the widget with the given bounds, relative to the screen. 47 // If handleExternal is true, then drawing and input handling for the 48 // popup will be handled by the external embedder. 49 virtual void popupOpened(PopupContainer* popupContainer, const IntRect& bounds, 50 bool focusOnShow, bool handleExternal) = 0; 51 }; 42 // Contains Chromium-specific extensions to the ChromeClient. Only put 43 // things here that don't make sense for other ports. 44 class ChromeClientChromium : public ChromeClient { 45 public: 46 // Notifies the client of a new popup widget. The client should place 47 // and size the widget with the given bounds, relative to the screen. 48 // If handleExternal is true, then drawing and input handling for the 49 // popup will be handled by the external embedder. 50 virtual void popupOpened(PopupContainer* popupContainer, const IntRect& bounds, 51 bool focusOnShow, bool handleExternal) = 0; 52 53 // Notifies embedder that the state of an accessibility object has changed. 54 virtual void didChangeAccessibilityObjectState(AccessibilityObject*) = 0; 55 }; 52 56 53 57 } // namespace WebCore -
trunk/WebKit/chromium/ChangeLog
r54576 r54584 1 2010-02-09 Chris Guillory <ctguil@google.com> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Add function for accessibility object state change notifications. 6 7 https://bugs.webkit.org/show_bug.cgi?id=34464 8 9 * gyp_webkit: 10 * public/WebViewClient.h: 11 (WebKit::WebViewClient::didChangeAccessibilityObjectState): 12 * src/ChromeClientImpl.cpp: 13 (WebKit::ChromeClientImpl::didChangeAccessibilityObjectState): 14 * src/ChromeClientImpl.h: 15 1 16 2010-02-09 Mikhail Naganov <mnaganov@chromium.org> 2 17 -
trunk/WebKit/chromium/public/WebViewClient.h
r54466 r54584 253 253 virtual void focusAccessibilityObject(const WebAccessibilityObject&) { } 254 254 255 // Notifies embedder that the state of an accessibility object has changed. 256 virtual void didChangeAccessibilityObjectState(const WebAccessibilityObject&) { } 257 255 258 256 259 // Developer tools ----------------------------------------------------- -
trunk/WebKit/chromium/src/ChromeClientImpl.cpp
r54466 r54584 660 660 } 661 661 662 void ChromeClientImpl::didChangeAccessibilityObjectState(AccessibilityObject* obj) 663 { 664 // Alert assistive technology about the accessibility object state change 665 if (obj) 666 m_webView->client()->didChangeAccessibilityObjectState(WebAccessibilityObject(obj)); 667 } 668 669 662 670 #if ENABLE(NOTIFICATIONS) 663 671 NotificationPresenter* ChromeClientImpl::notificationPresenter() const -
trunk/WebKit/chromium/src/ChromeClientImpl.h
r54466 r54584 35 35 36 36 namespace WebCore { 37 class AccessibilityObject; 37 38 class HTMLParserQuirks; 38 39 class PopupContainer; … … 133 134 bool activatable, 134 135 bool handleExternally); 136 virtual void didChangeAccessibilityObjectState(WebCore::AccessibilityObject*); 135 137 136 138 // ChromeClientImpl:
Note: See TracChangeset
for help on using the changeset viewer.