RESOLVED FIXED 118094
Add an accessibility delegate interface to Windows solution
https://bugs.webkit.org/show_bug.cgi?id=118094
Summary Add an accessibility delegate interface to Windows solution
Roger Fong
Reported 2013-06-26 15:30:26 PDT
So client's can do stuff when Frame loads start and finish. Some accessibility programs like WE require that certain notifications be sent from OUTSIDE of webkit when a frame is being loaded. This API allows this.
Attachments
patch (11.37 KB, patch)
2013-06-26 16:20 PDT, Roger Fong
bfulgham: review-
patch v2 (13.39 KB, patch)
2013-06-26 16:56 PDT, Roger Fong
bfulgham: review+
Roger Fong
Comment 1 2013-06-26 15:30:43 PDT
Roger Fong
Comment 2 2013-06-26 16:20:47 PDT
Created attachment 205537 [details] patch tentative first patch
WebKit Commit Bot
Comment 3 2013-06-26 16:22:13 PDT
Attachment 205537 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/accessibility/win/AXObjectCacheWin.cpp', u'Source/WebCore/loader/EmptyClients.h', u'Source/WebCore/page/ChromeClient.h', u'Source/WebKit/ChangeLog', u'Source/WebKit/WebKit.vcxproj/Interfaces/Interfaces.vcxproj', u'Source/WebKit/WebKit.vcxproj/Interfaces/Interfaces.vcxproj.filters', u'Source/WebKit/win/ChangeLog', u'Source/WebKit/win/Interfaces/IWebView.idl', u'Source/WebKit/win/Interfaces/WebKit.idl', u'Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp', u'Source/WebKit/win/WebCoreSupport/WebChromeClient.h', u'Source/WebKit/win/WebView.cpp', u'Source/WebKit/win/WebView.h']" exit_code: 1 Source/WebKit/win/WebView.cpp:2875: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/win/WebView.cpp:2882: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/win/WebView.h:143: The parameter name "d" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit/win/WebView.h:143: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/win/WebView.h:146: The parameter name "d" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit/win/WebView.h:146: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 6 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Roger Fong
Comment 4 2013-06-26 16:23:06 PDT
style bot no like our COM syntax
Brent Fulgham
Comment 5 2013-06-26 16:25:17 PDT
Comment on attachment 205537 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=205537&action=review Looks good -- but we're missing the AccessibilityDelegate.idl file! > Source/WebKit/win/WebView.cpp:2885 > + return E_FAIL; I usually return E_POINTER
Roger Fong
Comment 6 2013-06-26 16:32:27 PDT
(In reply to comment #5) > (From update of attachment 205537 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=205537&action=review > > Looks good -- but we're missing the AccessibilityDelegate.idl file! > Doh. > > Source/WebKit/win/WebView.cpp:2885 > > + return E_FAIL; > > I usually return E_POINTER Hmm what's the difference? I was just copying what the other delegate getters in the file were returning.
Brent Fulgham
Comment 7 2013-06-26 16:34:24 PDT
(In reply to comment #6) > (In reply to comment #5) > > (From update of attachment 205537 [details] [details]) > > > Source/WebKit/win/WebView.cpp:2885 > > > + return E_FAIL; > > > > I usually return E_POINTER > Hmm what's the difference? I was just copying what the other delegate getters in the file were returning. E_POINTER is returned when the caller doesn't supply a valid pointer to the routine.
Roger Fong
Comment 8 2013-06-26 16:56:09 PDT
Created attachment 205543 [details] patch v2
Brent Fulgham
Comment 9 2013-06-26 16:57:27 PDT
Comment on attachment 205543 [details] patch v2 Looks good!
WebKit Commit Bot
Comment 10 2013-06-26 16:58:59 PDT
Attachment 205543 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/accessibility/win/AXObjectCacheWin.cpp', u'Source/WebCore/loader/EmptyClients.h', u'Source/WebCore/page/ChromeClient.h', u'Source/WebKit/ChangeLog', u'Source/WebKit/WebKit.vcxproj/Interfaces/Interfaces.vcxproj', u'Source/WebKit/WebKit.vcxproj/Interfaces/Interfaces.vcxproj.filters', u'Source/WebKit/win/ChangeLog', u'Source/WebKit/win/Interfaces/AccessibilityDelegate.idl', u'Source/WebKit/win/Interfaces/IWebView.idl', u'Source/WebKit/win/Interfaces/WebKit.idl', u'Source/WebKit/win/WebCoreSupport/WebChromeClient.cpp', u'Source/WebKit/win/WebCoreSupport/WebChromeClient.h', u'Source/WebKit/win/WebView.cpp', u'Source/WebKit/win/WebView.h']" exit_code: 1 Source/WebKit/win/WebView.cpp:2875: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/win/WebView.cpp:2882: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/win/WebView.h:143: The parameter name "d" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit/win/WebView.h:143: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Source/WebKit/win/WebView.h:146: The parameter name "d" adds no information, so it should be removed. [readability/parameter_name] [5] Source/WebKit/win/WebView.h:146: Weird number of spaces at line-start. Are you using a 4-space indent? [whitespace/indent] [3] Total errors found: 6 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 11 2013-06-26 17:10:22 PDT
Comment on attachment 205543 [details] patch v2 View in context: https://bugs.webkit.org/attachment.cgi?id=205543&action=review You might consider fixing the parameter name warnings from the style bot. I'd also get rid of the STDMETHODCALLTYPE declarations in the CPP file (leave them in the header file). > Source/WebKit/win/WebView.cpp:2874 > +HRESULT STDMETHODCALLTYPE WebView::setAccessibilityDelegate( You don't need STDMETHODCALLTYPE in the implementation -- only in the header. > Source/WebKit/win/WebView.cpp:2881 > +HRESULT STDMETHODCALLTYPE WebView::accessibilityDelegate( You can remove STDMETHODCALLTYPE
Roger Fong
Comment 12 2013-06-26 17:43:32 PDT
Note You need to log in before you can comment on or make changes to this bug.